Commit Graph

679 Commits

Author SHA1 Message Date
Haitao Pan
75298b29b9 fix(gateway): harden OpenClaw task recovery tests 2026-06-26 18:30:34 +08:00
Haitao Pan
361d10fb64 fix(gateway): day-1 stability — stop infinite "running" and un-stoppable tasks
Symptom: a gateway turn shows "任务运行中..." forever and 停止 has no effect,
even though the OpenClaw gateway has already finished (ACP_HTTP_CONNECTION_CLOSED).

- T3: add a hard deadline to the running-handle poll branch so the client no
  longer polls forever when tasks.get keeps returning "running". Budget is
  derived from taskLoadClass (10/30/60min, aligned with the bridge) + grace;
  on timeout the turn lands in a recoverable `interrupted` state
  (OPENCLAW_RUN_POLL_TIMEOUT) prompting the user to resend.
- T4: make 停止 locally authoritative — capture the association, mark the turn
  aborted immediately (clears pending, exits the poll loop), then fire
  tasks.cancel best-effort so a hung/failed cancel RPC can't block termination.
- T6: applyGatewayChatFailureInternal now authoritatively clears the pending
  flag (both raw + normalized key). Previously runOpenClawGatewayQueuedTurnInternal's
  finally never cleared it, leaving "error shown but still running".

Full cross-repo analysis + remaining TODO in docs/cases/06.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-26 10:48:45 +08:00
Haitao Pan
c22cd049b3 chore: update macOS deployment target to 14.0 and commit pending changes 2026-06-25 09:52:33 +08:00
Haitao Pan
fb9f97ce10 fix: preserve primary bridge auth token 2026-06-18 10:01:19 +08:00
Haitao Pan
1c13702946 fix(settings): update account panel and assistant connection state 2026-06-17 21:01:56 +08:00
Haitao Pan
31cf5515ae feat: add explicit gateway task case hints for openclaw-gateway-e2e-regression 2026-06-17 16:00:54 +08:00
Haitao Pan
6f99e8b320 fix: prioritize managed bridge sync state 2026-06-16 06:20:13 +08:00
Haitao Pan
f170d0be93 feat(workspace): run remote setup script 2026-06-14 14:28:20 +08:00
Haitao Pan
e1573f010d fix(desktop): bound WebRTC offer wait 2026-06-13 07:10:28 +08:00
Haitao Pan
3e96062d7b chore(desktop): remove advanced options panel 2026-06-13 07:09:06 +08:00
Haitao Pan
8a464b4ef2 feat(assistant): include attachment source paths in gateway prompts 2026-06-12 16:58:24 +08:00
Haitao Pan
bd965bef6f chore: remove stale Flutter code 2026-06-12 14:52:23 +08:00
Haitao Pan
c87ae795b9 fix(app): bound OpenClaw artifact sync polling 2026-06-12 14:08:23 +08:00
Haitao Pan
7eea9629dd fix: split desktop mouse move data channel 2026-06-09 15:55:02 +08:00
Haitao Pan
8a7fd6ad63 fix: use renderer first-frame signal for desktop video 2026-06-09 15:25:53 +08:00
Haitao Pan
740fc6e2f7 fix: clear desktop first-frame overlay after decode 2026-06-09 15:20:45 +08:00
Haitao Pan
a358a6e826 feat: align workspace ready actions and naming 2026-06-09 10:58:15 +08:00
Haitao Pan
43bad6324b fix: smooth remote desktop input over webrtc 2026-06-09 10:47:05 +08:00
Haitao Pan
d9cfeac72f fix: isolate remote desktop webrtc sessions 2026-06-08 21:09:11 +08:00
Haitao Pan
c002eb59e2 Add default bridge save action 2026-06-08 18:35:20 +08:00
Haitao Pan
df6f3992ef Improve workspace status summary wording 2026-06-08 18:13:52 +08:00
Haitao Pan
876ffda6be Relax workspace prechecks and add post-deploy validation 2026-06-08 17:43:54 +08:00
Haitao Pan
52c3b98337 Clarify bridge DNS precheck message 2026-06-08 16:53:50 +08:00
Haitao Pan
1dacedfe8a Make workspace advanced configs extensible 2026-06-08 16:35:15 +08:00
Haitao Pan
9c8ab47e89 Relax workspace OS checks and add YAML import/export 2026-06-08 16:14:08 +08:00
Haitao Pan
2aae2ae2cf Harden workspace prechecks 2026-06-08 15:52:26 +08:00
Haitao Pan
c1f273aad7 Fix gateway dispatch test pipeline 2026-06-08 15:52:26 +08:00
Haitao Pan
b3a5cf9440 Add AI workspace management provisioning flow 2026-06-08 15:52:26 +08:00
Haitao Pan
6743ed8be2 Stabilize OpenClaw artifact sync 2026-06-08 10:49:09 +08:00
Haitao Pan
bab0d54dc9 chore: log remote desktop WebRTC stats 2026-06-07 22:25:42 +08:00
Haitao Pan
dbce4e128a fix: show remote desktop first-frame state 2026-06-07 21:57:53 +08:00
Haitao Pan
d985efccc5 Sync artifact sidebar with selected task 2026-06-07 12:13:58 +08:00
Haitao Pan
a3db2f3660 Improve assistant task UX 2026-06-07 12:03:08 +08:00
Haitao Pan
69e53c8d5d fix: keep syncing partial OpenClaw artifacts 2026-06-07 07:38:04 +08:00
Haitao Pan
4b5bbe0743 fix: accept review bridge token from account sync 2026-06-06 22:08:06 +08:00
Haitao Pan
2e94ea6f00 fix: keep bridge token usable after sync block 2026-06-06 19:40:44 +08:00
Haitao Pan
08ed4e9bcc fix: unify bridge auth token for desktop connect 2026-06-06 19:24:48 +08:00
Haitao Pan
1ffe28e636 fix: require OpenClaw artifact export before completion 2026-06-06 18:23:05 +08:00
Haitao Pan
51f8055025 fix: keep OpenClaw artifact sync polling 2026-06-06 18:02:13 +08:00
Haitao Pan
79f61d1d8f fix: trim OpenClaw task prompt context 2026-06-06 17:40:43 +08:00
Haitao Pan
eb0d29b334 fix: backfill OpenClaw artifacts on sidebar refresh 2026-06-06 14:50:16 +08:00
Haitao Pan
498db89a6a fix: align OpenClaw task key flow 2026-06-06 13:56:03 +08:00
Haitao Pan
52e4a4ebbf Merge release/v1.1.4 into main 2026-06-06 11:51:09 +08:00
Haitao Pan
8cf99b4681 refactor: align OpenClaw session key state flow 2026-06-06 11:51:01 +08:00
Haitao Pan
4cb4023bcc Merge OpenClaw thin adapter refactor 2026-06-06 07:56:47 +08:00
Haitao Pan
4813af5c31 Refactor OpenClaw task integration as thin adapter 2026-06-06 07:56:32 +08:00
Haitao Pan
fc254d3d2b refactor: explicitly pass openclawSessionKey in task start 2026-06-06 07:24:59 +08:00
Haitao Pan
2a572200e3 refactor/app-thread-key 2026-06-06 06:51:30 +08:00
Haitao Pan
80fac2f046 feat: pass OpenClaw artifact dir whitelist 2026-06-05 21:25:29 +08:00
Haitao Pan
470933cd5d fix(chat): drop root-level expectedArtifactDirs to satisfy chat.send schema
- Remove the unexpected property at the root of gateway task metadata.
  Keep the value nested in xworkmateTaskArtifactContract where the
  OpenClaw chat.send schema allows it (-32002: invalid chat.send params).
- Drop dead local vars and the unused asInt helper in OpenClaw task
  association parsing.
- Remove the obsolete 'sendChatMessage restarts before handling
  OpenClaw artifact guard results' test superseded by the new terminal
  artifact failure test.
2026-06-05 19:12:31 +08:00