xworkmate-app/lib
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
..
app fix(gateway): day-1 stability — stop infinite "running" and un-stoppable tasks 2026-06-26 10:48:45 +08:00
features chore: update macOS deployment target to 14.0 and commit pending changes 2026-06-25 09:52:33 +08:00
i18n Refine sidebar language toggle layout 2026-03-11 15:25:33 +08:00
models chore: update macOS deployment target to 14.0 and commit pending changes 2026-06-25 09:52:33 +08:00
runtime fix: preserve primary bridge auth token 2026-06-18 10:01:19 +08:00
theme refactor: unify app theme surfaces by scene 2026-03-30 15:31:01 +08:00
widgets chore: remove stale Flutter code 2026-06-12 14:52:23 +08:00
main.dart feat: add ui feature flag release docs pipeline 2026-03-22 10:49:13 +08:00