Skip to content

feat(coding-agent): print resume hint on interactive exit#5176

Merged
badlogic merged 1 commit into
earendil-works:mainfrom
yzhg1983:myu003/resume-hint-on-exit
May 29, 2026
Merged

feat(coding-agent): print resume hint on interactive exit#5176
badlogic merged 1 commit into
earendil-works:mainfrom
yzhg1983:myu003/resume-hint-on-exit

Conversation

@yzhg1983

Copy link
Copy Markdown
Contributor

Summary

Print a short resume command after clean interactive exits:

  To resume this session: pi --session <id>

This makes persisted sessions easier to recover after leaving the TUI, without requiring users to remember or search for the right resume command.

Details

  • Prints only for clean interactive shutdown.
  • Suppresses the hint for signal shutdown, non-TTY stdout, in-memory sessions, and sessions without a persisted file.
  • Includes --session-dir for non-default session directories.
  • Quotes custom session dirs when needed for copy-paste safety.
  • Reuses the existing --session flow; no new CLI flag.

Testing

  cd packages/coding-agent
  node ../../node_modules/vitest/dist/cli.js --run test/format-resume-command.test.ts test/suite/regressions/5080-signal-shutdown-extension-cleanup.test.ts
  cd ../..
  npm run check

@badlogic badlogic merged commit 0c448e1 into earendil-works:main May 29, 2026
3 checks passed
@badlogic

Copy link
Copy Markdown
Collaborator

cheers!

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.

2 participants