Skip to content

feat(tui): show session ID in sidebar on non-prod channels#23185

Merged
kitlangton merged 1 commit intodevfrom
kit/tui-session-id
Apr 17, 2026
Merged

feat(tui): show session ID in sidebar on non-prod channels#23185
kitlangton merged 1 commit intodevfrom
kit/tui-session-id

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

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

  • Renders the full props.sessionID as a muted line directly under the session title inside the existing sidebar title slot.
  • Hidden on the latest (prod) channel; visible on local, dev, beta.
  • Footer still shows the build version — unchanged.

Validation

  • bun typecheck

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.
@kitlangton kitlangton enabled auto-merge (squash) April 17, 2026 22:41
@kitlangton kitlangton merged commit 2b73a08 into dev Apr 17, 2026
16 of 17 checks passed
@kitlangton kitlangton deleted the kit/tui-session-id branch April 17, 2026 22:47
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.

1 participant