Skip to content

fix(chat): stop active runs and cancel tool invocations#269

Open
AlphaCatMeow wants to merge 4 commits into
Stack-Cairn:mainfrom
AlphaCatMeow:codex/fix/chat-stop-not-actually-stopping
Open

fix(chat): stop active runs and cancel tool invocations#269
AlphaCatMeow wants to merge 4 commits into
Stack-Cairn:mainfrom
AlphaCatMeow:codex/fix/chat-stop-not-actually-stopping

Conversation

@AlphaCatMeow

Copy link
Copy Markdown
Contributor

Summary

  • release chat UI state immediately when a user stops an active or queued turn
  • propagate cancellation through MCP, shell, managed process, and SSH tool invocations
  • add runtime cancellation commands and token-safe cleanup in the Tauri backend
  • prevent locally cancelled gateway runs and queued turns from restarting or overwriting stopped state
  • keep desktop and gateway web chat/sidebar behavior in sync

Validation

  • pnpm --dir crates/agent-gui build
  • pnpm --dir crates/agent-gateway/web build
  • cargo check --manifest-path crates/agent-gui/src-tauri/Cargo.toml --tests
  • 72 targeted Node tests covering stop timing, gateway listeners, memory extraction, abortable invocation, MCP, shell, SSH, and sidebar state
  • git diff --check upstream/main..HEAD

Notes

The full frontend test commands exceeded the local runner's fixed 30-second execution window; the focused cancellation suites above completed successfully with no failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant