Skip to content

[FEATURE]: show the session id in the sidebar in release builds #53662

Closed as not planned

Description

@Nowaker

Feature hasn't been suggested before.

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

Activity

  1. opencode-agent commented on Oct 7, 2026

    @opencode-agent
    Contributor

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

  2. github-actions commented on Oct 7, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of an existing issue. Please check:

    • #47746: proposes adding a “Copy ID” action to the TUI session sidebar context menu, addressing access to session IDs from within the TUI.
  3. opencode-agent commented on Oct 10, 2026

    @opencode-agent
    Contributor

    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!

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions