Skip to content

Resume: type the continue prompt instead of sending it through Claude's inbox - #313

Merged
Mpdreamz merged 3 commits into
mainfrom
fix/continue-prompt-is-typed
Nov 22, 2026
Merged

Mpdreamz merged 3 commits into
mainfrom
fix/continue-prompt-is-typed

Conversation

@Mpdreamz

Copy link
Copy Markdown
Contributor

What

After a resume, a session that was mid-turn is nudged with `continue_prompt`. Since the inbox work (#239) and the hardening that followed, that nudge went through Claude's cross-session inbox. Claude can hold such a message for approval in the session (sessions that bypass permission prompts, or `crossSessionInbound = "hold"`), heed counts a held message as sent, and nothing retries, so a resumed agent could sit idle waiting for an approval nobody knew about.

  • The continue prompt is typed into the pane again (`viaChannel: false`): the resumed agent is idle and nobody is typing there. Other deliveries are unchanged.
  • A continue that could not be sent is now recorded on the session ("did not send … after the resume · why"). Before, nothing said so.
  • `docs/agents/messages.md` says the continue prompt is the one message that is always typed.

Checked

  • Build passes; the Delivery, Resume, Hook and Channel tests pass (they do not cover the changed lines, which are in the app target).
  • Not reproduced: I had no session to resume on this Mac and did not run a live resume, so this rests on reading the code and docs. If a resumed session's activity shows `sent “Continue where you left off.” · queued in Claude's inbox`, that confirms the cause.
  • Not addressed: an agent that does not launch at all after a resume (nothing found in the launch path), and a manual resume of a session that was not mid-turn, which by design gets no continue.

🤖 Generated with Claude Code

@github-actions github-actions Bot added the bug Something isn't working label Nov 20, 2026
@Mpdreamz

Copy link
Copy Markdown
Contributor Author

Added to this PR: a resume now records the command it ran on the session's activity, a pane whose worktree folder is gone says the agent was not started (and why) instead of opening a plain shell silently, and a session with no pane to start in flashes instead of being skipped. Build and the Resume, PaneLaunch and Delivery tests pass; not run against a live resume.

🤖 Generated with Claude Code

Mpdreamz and others added 3 commits November 22, 2026 22:06
…e's inbox; a continue not sent is recorded

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@Mpdreamz
Mpdreamz force-pushed the fix/continue-prompt-is-typed branch from 18876a9 to 63b60e1 Compare November 22, 2026 21:09
@Mpdreamz
Mpdreamz merged commit 001e0b9 into main Nov 22, 2026
6 checks passed
@Mpdreamz
Mpdreamz deleted the fix/continue-prompt-is-typed branch November 22, 2026 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant