feat(tui): show session ID in /status dialog#14251
feat(tui): show session ID in /status dialog#14251ariane-emory wants to merge 6 commits intoanomalyco:devfrom
Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
No session ID displayed when not in an active session (i.e., on startup screen) |
|
@seekskyworld When not in an active session (for example, on the startup screen), before sending a message to cause a session to begin, there simply is no session ID available to display. |
|
@ariane-emory How can solve this problem? I see that no other cli has this issue |
|
@seekskyworld I'm not aware of any reasonable way to allow for 'empty' sessions without unwanted side effects... OpenCode begins sessions when the first message is sent... changing that would be a much more complex change than simply showing the session ID, when available, in the |
|
@ariane-emory I think the Session ID should be present when opening opencode. If the window is closed and no Session is sent, the Session ID should be discarded. This is more intuitive. codex, claude code and gemini cli all do it this way. |
|
@seekskyworld That's an entirely different - and much more complicated - change than what was described in your original feature request issue. A change of that level would be be totally out-of-scope for what was described in the original issue. If you want that change, it would be best submitted as a separate issue, but to be honest I would be surprised it anyone were interested in trying to resolve it since it would be such a drastic change to the basic lifecycle of sessions. |
|
@ariane-emory Let's solve it this way for now. Later, I'll submit the problem. If no one comes, I'll study it myself. Thank you |
Issue for this PR
Closes #14239
Type of change
What does this PR do?
Adds the current Session ID to the /status command output in the TUI.
Changes
How did you verify your code works?
Manual testing,
bun test,bun typecheck.Screenshots / recordings
Session ID displayed when in an active session
No session ID displayed when not in an active session (i.e., on startup screen)
Checklist