Suggestion: Display session resume command in exit message, similar to Codex CLI #8531

Closed
opened 2026-02-16 18:10:12 -05:00 by yindo · 3 comments
Owner

Originally created by @probecat on GitHub (Feb 4, 2026).

Originally assigned to: @rekram1-node on GitHub.

Codex CLI has a helpful exit message to reattach to the session you just quit. For opencode, this could display something like: "To resume this session, run opencode -s sess_id" upon exit.

Originally created by @probecat on GitHub (Feb 4, 2026). Originally assigned to: @rekram1-node on GitHub. Codex CLI has a helpful exit message to reattach to the session you just quit. For opencode, this could display something like: "To resume this session, run `opencode -s sess_id`" upon exit.
yindo closed this issue 2026-02-16 18:10:12 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 4, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #11937: feat: add /session-id command to copy session ID to clipboard

Both issues are related to improving the user experience around session IDs. While #11937 focuses on adding a command to copy the session ID, your suggestion (#12150) focuses on displaying the resume command in the exit message. These could potentially be complementary features, but you may want to check that issue to see if it addresses your use case or if there's overlap in the proposed solutions.

@github-actions[bot] commented on GitHub (Feb 4, 2026): This issue might be a duplicate of existing issues. Please check: - #11937: feat: add /session-id command to copy session ID to clipboard Both issues are related to improving the user experience around session IDs. While #11937 focuses on adding a command to copy the session ID, your suggestion (#12150) focuses on displaying the resume command in the exit message. These could potentially be complementary features, but you may want to check that issue to see if it addresses your use case or if there's overlap in the proposed solutions.
Author
Owner

@justfortheloveof commented on GitHub (Feb 4, 2026):

This was already introduced recently:

Image (within the TUI, I just started a new session with "hi" as a prompt and exited)

You probably just need to upgrade

@justfortheloveof commented on GitHub (Feb 4, 2026): This was already introduced recently: <img width="462" height="171" alt="Image" src="https://github.com/user-attachments/assets/4dd5e6e2-f3fb-45cb-9612-34b5d9f95fb7" /> (within the TUI, I just started a new session with "hi" as a prompt and exited) You probably just need to upgrade
Author
Owner

@R44VC0RP commented on GitHub (Feb 4, 2026):

You can use the syntax opencode -c to reattach to the most recent session or use the comment that @justfortheloveof mentioned to reattach to a specific session.

@R44VC0RP commented on GitHub (Feb 4, 2026): You can use the syntax `opencode -c` to reattach to the most recent session or use the comment that @justfortheloveof mentioned to reattach to a specific session.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8531