feat(tui): show session ID in sidebar on non-prod channels#23185
Merged
kitlangton merged 1 commit intodevfrom Apr 17, 2026
Merged
feat(tui): show session ID in sidebar on non-prod channels#23185kitlangton merged 1 commit intodevfrom
kitlangton merged 1 commit intodevfrom
Conversation
The TUI showed no stable identifier for the current session, which made correlating opencode runs with OpenTelemetry traces (e.g. in motel) awkward — you had to guess sessions by title, which is often auto-generated and can collide across runs. Render the full session ID under the session title in the sidebar on local, dev, and beta channels (gated on InstallationChannel !== "latest" so prod users don't see it). The footer keeps the channel/version line as the canonical 'which build am I on' indicator.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Render the current session ID under the session title in the TUI sidebar on local / dev / beta channels (gated on
InstallationChannel !== "latest").Why
There was no stable identifier visible anywhere in the TUI for the active session. Correlating a running opencode conversation with OpenTelemetry traces (e.g. when debugging with motel) required guessing by session title, which is auto-generated and often collides. The session ID is the only reliable key.
Scope
props.sessionIDas a muted line directly under the session title inside the existing sidebar title slot.latest(prod) channel; visible onlocal,dev,beta.Validation
bun typecheck✓