Commit Graph

418 Commits

Author SHA1 Message Date
Haitao Pan
aa75364001 fix(gateway): harden OpenClaw task recovery tests 2026-06-26 18:30:34 +08:00
Haitao Pan
3676759472 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
65fabfe888 chore: update macOS deployment target to 14.0 and commit pending changes 2026-06-25 09:52:33 +08:00
Haitao Pan
de4b71c8a0 fix(settings): update account panel and assistant connection state 2026-06-17 21:01:56 +08:00
Haitao Pan
cb14c83af0 feat: add explicit gateway task case hints for openclaw-gateway-e2e-regression 2026-06-17 16:00:54 +08:00
Haitao Pan
d546690677 fix: prioritize managed bridge sync state 2026-06-16 06:20:13 +08:00
Haitao Pan
059156c90c feat(assistant): include attachment source paths in gateway prompts 2026-06-12 16:58:24 +08:00
Haitao Pan
d343f34887 chore: remove stale Flutter code 2026-06-12 14:52:23 +08:00
Haitao Pan
1744e8bb4d fix(app): bound OpenClaw artifact sync polling 2026-06-12 14:08:23 +08:00
Haitao Pan
15d4a68835 Fix gateway dispatch test pipeline 2026-06-08 15:52:26 +08:00
Haitao Pan
3c2394e848 Stabilize OpenClaw artifact sync 2026-06-08 10:49:09 +08:00
Haitao Pan
1d2e01f269 Improve assistant task UX 2026-06-07 12:03:08 +08:00
Haitao Pan
4f88421c48 fix: keep syncing partial OpenClaw artifacts 2026-06-07 07:38:04 +08:00
Haitao Pan
2328853061 fix: keep bridge token usable after sync block 2026-06-06 19:40:44 +08:00
Haitao Pan
e7314d48b6 fix: require OpenClaw artifact export before completion 2026-06-06 18:23:05 +08:00
Haitao Pan
38254caa4d fix: keep OpenClaw artifact sync polling 2026-06-06 18:02:13 +08:00
Haitao Pan
ebe505b59c fix: trim OpenClaw task prompt context 2026-06-06 17:40:43 +08:00
Haitao Pan
62b461ef0f fix: backfill OpenClaw artifacts on sidebar refresh 2026-06-06 14:50:16 +08:00
Haitao Pan
941edee480 Merge release/v1.1.4 into main 2026-06-06 11:51:09 +08:00
Haitao Pan
cc7bdca02a refactor: align OpenClaw session key state flow 2026-06-06 11:51:01 +08:00
Haitao Pan
8f8898bc6a refactor: explicitly pass openclawSessionKey in task start 2026-06-06 07:24:59 +08:00
Haitao Pan
1edf6b7b3f refactor/app-thread-key 2026-06-06 06:51:30 +08:00
Haitao Pan
94cf8bb39d feat: pass OpenClaw artifact dir whitelist 2026-06-05 21:25:29 +08:00
Haitao Pan
3a548717ba 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
Haitao Pan
aeecca0f1c refactor: Remove OpenClaw rigid time limits and false positive no-exported-artifacts judgment 2026-06-05 18:10:34 +08:00
Haitao Pan
e2c4f56ceb fix(assistant): clear pending tool calls when task completes to fix sticky running status 2026-06-05 17:51:18 +08:00
Haitao Pan
596704b6f7 fix: resolve openclaw partial artifacts and eliminate legacy fallback code 2026-06-05 17:30:14 +08:00
Haitao Pan
6219fcd1ee fix: sync openclaw terminal snapshots in app 2026-06-05 17:13:05 +08:00
Haitao Pan
db2310a54b fix: allow stopping archived tasks 2026-06-05 16:59:41 +08:00
Haitao Pan
bf3300ee31 fix: merged cleanup branch and stashed fixes 2026-06-05 13:42:21 +08:00
Haitao Pan
51173e97f8 fix(arch): conservative fallback for gateway error codes 2026-06-05 13:41:30 +08:00
Haitao Pan
4acc2a6a39 fix(arch): A1-A3 app layer anti-patterns cleanup 2026-06-05 13:05:04 +08:00
Haitao Pan
3b71944c06 fix(webrtc): resolve remote desktop black screen by properly binding remote video tracks and removing legacy Plan B constraints 2026-06-05 12:38:43 +08:00
Cowork 3P
d663877705 Merge branch 'codex/openclaw-final-deliverables' into release/v1.1.4
# Conflicts:
#	docs/architecture/cross-repo-task-state-workflow.md
#	test/runtime/assistant_execution_target_test.dart
2026-06-05 07:47:04 +08:00
Cowork 3P
468a2ff088 feat(xworkmate): optimize desktop thread actions and Go task service client 2026-06-05 07:40:25 +08:00
Cowork 3P
3df75eedfe fix: finalize openclaw task polling results 2026-06-05 07:30:51 +08:00
Cowork 3P
8667276894 fix: poll openclaw task handle to terminal snapshot 2026-06-05 06:16:05 +08:00
Cowork 3P
184baf0191 fix: preserve openclaw failure artifacts 2026-06-04 22:59:56 +08:00
Cowork 3P
5fb72adff3 refactor: remove stale runtime fallbacks 2026-06-04 22:38:09 +08:00
Cowork 3P
c84843d617 refactor: remove multi-agent orchestration subsystem (Path B)
Remove the entire multi-agent collaboration execution path, including:
- MultiAgentOrchestrator and its 4-phase pipeline (Architect→Engineer→Tester→Iteration)
- ARIS framework preset and mount infrastructure
- Hardcoded model defaults (kimi-k2.5, minimax-m2.7, glm-5)
- Deprecated runCliPromptInternal() and its fallback call chain
- All related types: MultiAgentConfig, AgentWorkerConfig, MultiAgentRole, etc.

This collapses the architecture to a single clean path:
Flutter → GoTaskServiceClient → ACP Transport → Go Bridge → Remote Execution

2886 lines removed across 41 files.
2026-06-04 05:34:58 +00:00
Cowork 3P
f73dac3449 refactor(skills): clean Path B, add retry + auto-refresh, fix silent failures
- Remove Path B (direct WebSocket RPC), unify skills loading via ACP bridge sessionClient
- Delete skillsStatusPayloadInternal fragile nested-key parsing
- SkillsController: explicit error when offline (no more silent empty), auto-retry with 2s/4s backoff
- Auto-refresh on gateway connect via ChangeNotifier listener
- Gateway connect: concurrent Future.wait for independent controller refreshes
- UI: retry button in skill picker empty/error states
- Clean up skillsController from relayChildChangeInternal listeners
2026-06-04 03:48:29 +00:00
Haitao Pan
008b97b170 fix(runtime): restore skills loading and group rendering 2026-06-04 09:40:16 +08:00
Haitao Pan
0dce7096d4 fix: WebRTC remote desktop connection, cleanup local fallback, and ignore .gradle cache 2026-06-04 09:12:08 +08:00
Haitao Pan
4763a69e3b chore: prepare release v1.1.4 (app store compliance, remote desktop fixes, ci verification) 2026-06-03 15:52:44 +08:00
Haitao Pan
ffae5b312a feat: add runtime logs tab to settings page 2026-06-03 14:29:37 +08:00
Haitao Pan
1212f8cb41 feat: Remote Desktop UI and Client WebRTC Integration 2026-06-03 10:50:06 +08:00
Haitao Pan
b0544cfe05 Preserve artifacts after interrupted bridge responses 2026-06-02 16:21:17 +08:00
Haitao Pan
4bb846c674 Reassociate OpenClaw tasks through Bridge control plane 2026-06-02 11:58:40 +08:00
Haitao Pan
b30228ef18 feat(openclaw): implement artifact sync and ignore policies 2026-06-02 11:14:07 +08:00
Haitao Pan
e262ecf247 fix(openclaw): keep long artifact recovery synced 2026-06-02 07:36:05 +08:00