Skip to content

Offer to resume a session's agent when it is not running - #265

Merged
Mpdreamz merged 1 commit into
mainfrom
feature/resume-banner
Nov 15, 2026
Merged

Mpdreamz merged 1 commit into
mainfrom
feature/resume-banner

Conversation

@Mpdreamz

Copy link
Copy Markdown
Contributor

A session that came back as a plain shell (Start empty, a skipped session, or an agent that exited) now says so with a banner over its panes: Resume its conversation (gu), Start fresh (gf), Dismiss (gq). Also in the right-click menu, the Session menu and the sidebar row ("agent not running · resume").

The rule (ResumeBanner.offer): not parked, not on a host; agent can resume; heed kept the agent session id and the agent still has the conversation; no agent or shell pane of the session has a running agent (AgentPresence: started by heed, hooks, screen reading, zmx reattach). Saved state is not used. Resume and Start fresh reuse Resume.candidates, so a lost conversation starts fresh from the prompt.

Verified: fmt, lint, test (2460), tutor-check (0 problems); mutations of the rule fail the new tests. Docs: docs/sessions/resume.md, shots sessions/resume-banner and resume-later.

🤖 Generated with Claude Code

…er its panes, keys, menus and a row hint

Start empty, a skipped session, or an agent that exited leave a plain shell. While heed has the agent's session id and the agent still has the conversation, a strip says so, with Resume its conversation (gu), Start fresh (gf) and Dismiss (gq). Resume reuses the launch dialog's code, including starting fresh when the agent lost the session.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added the enhancement New feature or request label Nov 15, 2026
@Mpdreamz
Mpdreamz merged commit 44da84e into main Nov 15, 2026
5 checks passed
@Mpdreamz
Mpdreamz deleted the feature/resume-banner branch November 15, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant