Skip to content

Comments

feat(tui): show session ID in /status dialog#14251

Open
ariane-emory wants to merge 6 commits intoanomalyco:devfrom
ariane-emory:feat/session-id-in-status
Open

feat(tui): show session ID in /status dialog#14251
ariane-emory wants to merge 6 commits intoanomalyco:devfrom
ariane-emory:feat/session-id-in-status

Conversation

@ariane-emory
Copy link
Contributor

@ariane-emory ariane-emory commented Feb 19, 2026

Issue for this PR

Closes #14239

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds the current Session ID to the /status command output in the TUI.

Changes

  • Modified dialog-status.tsx to display the session ID when viewing a session
  • Uses existing route context to retrieve the session ID
  • Only shown when actively in a session (not on home screen)

How did you verify your code works?

Manual testing, bun test, bun typecheck.

Screenshots / recordings

Session ID displayed when in an active session

Screenshot 2026-02-19 at 2 47 24 AM

No session ID displayed when not in an active session (i.e., on startup screen)

Screenshot 2026-02-19 at 2 47 00 AM

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@ariane-emory ariane-emory marked this pull request as ready for review February 19, 2026 07:53
@seekskyworld
Copy link

seekskyworld commented Feb 19, 2026

No session ID displayed when not in an active session (i.e., on startup screen)
Why doesn't it display?
@ariane-emory
What I want is that after entering "opencode", I can also enter commands to view the current session id

@ariane-emory
Copy link
Contributor Author

@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.

@seekskyworld
Copy link

seekskyworld commented Feb 19, 2026

@ariane-emory How can solve this problem? I see that no other cli has this issue

@ariane-emory
Copy link
Contributor Author

ariane-emory commented Feb 19, 2026

@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 /status modal is.

@seekskyworld
Copy link

@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.

@ariane-emory
Copy link
Contributor Author

ariane-emory commented Feb 19, 2026

@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.

@seekskyworld
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]:Show Session ID in /status List

2 participants