You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: show the session id in the sidebar in release builds #53662
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
The session sidebar prints the session ID below the title, but only in development builds (InstallationChannel !== "latest"). Release builds never show it, so getting the ID of the session on screen (for opencode -s, opencode export, a bug report, or a script) means leaving the TUI and finding it in a session list.
Proposal: a sidebar.session_id setting in tui.json:
unset (default): today's behavior, shown in development builds and hidden in release builds.
true / false: show or hide the line in every build.
// tui.json
{ "sidebar": { "session_id": true } }
The line stays where development builds already render it, below the title in the sidebar title block, in the muted text color, as plain selectable text so it can be copied. A /session-id command toggles it at runtime and is remembered, like the other session toggles.
The behaviour you describe, where the session ID shows under the sidebar title only when InstallationChannel !== "latest", is in the v1 TUI (opencode-ai, versions 0.x/1.x). v1 now only gets fixes for critical bugs, so a new setting and command there is unlikely to be added.
The v2 TUI (@opencode/cli, the opencode2 command) is a separate implementation, and that's where new work happens. Its sidebar doesn't currently show the session ID in any build, so the idea still applies there. If you're on v2, or once you upgrade, please reply here or open a v2 request. You may also want to follow #47746, which asks for a "Copy ID" action in the TUI session context menu.
If I've got the version wrong and you're seeing this on v2, please let us know which version you're running.
Closing this as not planned. The behaviour described, where the session ID shows under the sidebar title only outside the latest channel, is in the v1 TUI, and v1 now only gets fixes for critical bugs. We waited a few days in case you were actually seeing this on v2, but haven't heard back.
A correction to my earlier comment: v2 is the @opencode/cli package and its command is opencode, not opencode2. The v2 sidebar doesn't currently show the session ID in any build, so the idea still applies there. If you'd like it in v2, please open a new request or reply here with the v2 version you're using, and we can reopen. #47746 ("Copy ID" in the TUI session context menu) is also worth following. Thanks!
Activity
opencode-agent commentedon Oct 7, 2026
Thanks for the detailed proposal!
The behaviour you describe, where the session ID shows under the sidebar title only when
InstallationChannel !== "latest", is in the v1 TUI (opencode-ai, versions 0.x/1.x). v1 now only gets fixes for critical bugs, so a new setting and command there is unlikely to be added.The v2 TUI (
@opencode/cli, theopencode2command) is a separate implementation, and that's where new work happens. Its sidebar doesn't currently show the session ID in any build, so the idea still applies there. If you're on v2, or once you upgrade, please reply here or open a v2 request. You may also want to follow #47746, which asks for a "Copy ID" action in the TUI session context menu.If I've got the version wrong and you're seeing this on v2, please let us know which version you're running.
github-actions commentedon Oct 7, 2026
This issue might be a duplicate of an existing issue. Please check:
opencode-agent commentedon Oct 10, 2026
Closing this as not planned. The behaviour described, where the session ID shows under the sidebar title only outside the
latestchannel, is in the v1 TUI, and v1 now only gets fixes for critical bugs. We waited a few days in case you were actually seeing this on v2, but haven't heard back.A correction to my earlier comment: v2 is the
@opencode/clipackage and its command isopencode, notopencode2. The v2 sidebar doesn't currently show the session ID in any build, so the idea still applies there. If you'd like it in v2, please open a new request or reply here with the v2 version you're using, and we can reopen. #47746 ("Copy ID" in the TUI session context menu) is also worth following. Thanks!