xworkmate-app/lib/app
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_capabilities.dart Clean C/S surfaces down to assistant and settings 2026-04-13 12:14:12 +08:00
app_controller_desktop_core.dart Fix gateway dispatch test pipeline 2026-06-08 15:52:26 +08:00
app_controller_desktop_external_acp_routing.dart refactor: remove stale runtime fallbacks 2026-06-04 22:38:09 +08:00
app_controller_desktop_gateway.dart refactor: align OpenClaw session key state flow 2026-06-06 11:51:01 +08:00
app_controller_desktop_navigation.dart refactor: remove stale runtime fallbacks 2026-06-04 22:38:09 +08:00
app_controller_desktop_runtime_coordination_impl.dart refactor: remove stale runtime fallbacks 2026-06-04 22:38:09 +08:00
app_controller_desktop_runtime_exceptions.dart Align bridge core path and secure account sync 2026-04-10 11:55:36 +08:00
app_controller_desktop_runtime_helpers.dart fix(gateway): day-1 stability — stop infinite "running" and un-stoppable tasks 2026-06-26 10:48:45 +08:00
app_controller_desktop_settings_runtime.dart refactor: align OpenClaw session key state flow 2026-06-06 11:51:01 +08:00
app_controller_desktop_settings.dart refactor: remove stale runtime fallbacks 2026-06-04 22:38:09 +08:00
app_controller_desktop_skill_permissions.dart refactor: remove stale runtime fallbacks 2026-06-04 22:38:09 +08:00
app_controller_desktop_thread_actions.dart fix(gateway): day-1 stability — stop infinite "running" and un-stoppable tasks 2026-06-26 10:48:45 +08:00
app_controller_desktop_thread_binding.dart fix: finalize openclaw task polling results 2026-06-05 07:30:51 +08:00
app_controller_desktop_thread_sessions_collaboration_impl.dart refactor: remove stale runtime fallbacks 2026-06-04 22:38:09 +08:00
app_controller_desktop_thread_sessions.dart fix: keep syncing partial OpenClaw artifacts 2026-06-07 07:38:04 +08:00
app_controller_desktop_thread_storage.dart Improve assistant task UX 2026-06-07 12:03:08 +08:00
app_controller_desktop_workspace_execution.dart refactor: align OpenClaw session key state flow 2026-06-06 11:51:01 +08:00
app_controller_desktop.dart chore: remove stale gateway settings and app ffi paths 2026-05-13 16:45:54 +08:00
app_controller_openclaw_task_queue.dart fix: unblock OpenClaw gateway task queue 2026-05-28 17:05:07 +08:00
app_controller.dart refactor: remove web surface from xworkmate-app 2026-04-09 11:19:40 +08:00
app_logger.dart chore: prepare release v1.1.4 (app store compliance, remote desktop fixes, ci verification) 2026-06-03 15:52:44 +08:00
app_metadata.dart feat(settings): refresh account sync, add about metadata, and rewrite task dialog modes 2026-04-13 18:02:30 +08:00
app_shell_desktop.dart feat: show sidebar task status chips 2026-05-19 15:39:23 +08:00
app_shell.dart refactor: remove web surface from xworkmate-app 2026-04-09 11:19:40 +08:00
app_store_policy.dart Clean C/S surfaces down to assistant and settings 2026-04-13 12:14:12 +08:00
app.dart Remove bridge fallback runtime code 2026-04-13 11:34:31 +08:00
task_thread_repositories.dart chore: remove stale Flutter code 2026-06-12 14:52:23 +08:00
ui_feature_manifest_core.dart chore: update macOS deployment target to 14.0 and commit pending changes 2026-06-25 09:52:33 +08:00
ui_feature_manifest.dart Remove bridge fallback runtime code 2026-04-13 11:34:31 +08:00
workspace_navigation.dart chore: remove stale gateway settings and app ffi paths 2026-05-13 16:45:54 +08:00
workspace_page_registry.dart feat(mobile): redesign mobile UX and iOS native experience 2026-05-26 07:05:55 +08:00