xworkmate-app/docs
Haitao Pan 40c59269e9 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
..
ai-context fix: align OpenClaw task key flow 2026-06-06 13:56:03 +08:00
architecture fix: prioritize managed bridge sync state 2026-06-16 06:20:13 +08:00
cases fix(gateway): day-1 stability — stop infinite "running" and un-stoppable tasks 2026-06-26 10:48:45 +08:00
codex-integration chore: retire rust ffi scaffold 2026-06-06 12:00:13 +08:00
compliance/dsa-trader-identity chore: add ios release verification assets 2026-05-25 08:54:48 +08:00
feature Fix gateway routing when provider catalog is empty 2026-04-16 13:54:33 +08:00
howto Refactor bridge runtime routing 2026-04-21 16:28:26 +08:00
plans chore: retire rust ffi scaffold 2026-06-06 12:00:13 +08:00
quality docs: consolidate core integration cases 2026-04-05 18:24:10 +08:00
releases Release v1.1.3 2026-05-27 15:10:07 +08:00
reports chore: retire rust ffi scaffold 2026-06-06 12:00:13 +08:00
runbooks Remove managed local bridge mode 2026-04-12 22:09:20 +08:00
security Remove managed local bridge mode 2026-04-12 22:09:20 +08:00
testing test,docs: fix all stale references to deleted multi-agent subsystem 2026-06-04 06:31:45 +00:00
README_TESTING.md Remove Patrol from macOS package 2026-06-05 21:47:08 +08:00
xworkmate-app-core-functional-test-plan-v1.md Remove OpenClaw direct ACP route 2026-05-26 11:06:22 +08:00