Skip to content

Keep queued chat messages and respect turn cancellation - #151

Merged
m4rocks merged 1 commit into
mainfrom
chat-turn-lifecycle
Nov 22, 2026
Merged

m4rocks merged 1 commit into
mainfrom
chat-turn-lifecycle

Conversation

@m4rocks

@m4rocks m4rocks commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Problem

Interrupting a chat could discard queued prompts or miss a prompt that was still waiting for its Git snapshot. Concurrent approvals could leave an agent waiting on a request the user could no longer see.

Changes

  • Save pending prompts per session. Hold them after interruption, failure, and restart. Add Resume, Send now, and in-place queue editing that restores the current draft.
  • Resolve each pending approval by ID and skip dispatch if the user interrupted while the snapshot was running.
  • Use Codex steering when its ACP adapter advertises it. Keep the existing interrupt-and-restart behavior for adapters without native steering. Reinsert unread steers in submission order.
  • Track Claude's background shells by task ID. Add output and stop controls, and show completed shell output in the chat. Keep keyboard focus on the current pane when a hidden user shell exits.

Verification

Clippy with warnings denied, 484 Rust tests, three additional headless scenarios, three bridge tests, a mocked Claude bridge RPC smoke test, and all 30 mod tests with CI's pinned Claude Code version.

Live provider sessions and desktop interactions need a manual check. Claude's live output uses its local task files when available. File and image attachments and editing an earlier prompt with checkpoint restore are separate parity work.

@vercel

vercel Bot commented Nov 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
claudiu Ready Ready Preview Nov 22, 2026 9:31pm UTC

@m4rocks
m4rocks merged commit 496a62f into main Nov 22, 2026
5 checks passed
@m4rocks
m4rocks deleted the chat-turn-lifecycle branch November 24, 2026 22:38

This branch was successfully deployed

1 active deployment
Preview — 07717d49 Deployed Nov 22, 2026 by vercel[bot]
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