Skip to content

Commit 2b73a08

Browse files
authored
feat(tui): show session ID in sidebar on non-prod channels (#23185)
1 parent 11c0ad2 commit 2b73a08

File tree

1 file changed

+4
-1
lines changed
  • packages/opencode/src/cli/cmd/tui/routes/session

1 file changed

+4
-1
lines changed

packages/opencode/src/cli/cmd/tui/routes/session/sidebar.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useSync } from "@tui/context/sync"
33
import { createMemo, Show } from "solid-js"
44
import { useTheme } from "../../context/theme"
55
import { useTuiConfig } from "../../context/tui-config"
6-
import { InstallationVersion } from "@/installation/version"
6+
import { InstallationChannel, InstallationVersion } from "@/installation/version"
77
import { TuiPluginRuntime } from "../../plugin"
88

99
import { getScrollAcceleration } from "../../util/scroll"
@@ -62,6 +62,9 @@ export function Sidebar(props: { sessionID: string; overlay?: boolean }) {
6262
<text fg={theme.text}>
6363
<b>{session()!.title}</b>
6464
</text>
65+
<Show when={InstallationChannel !== "latest"}>
66+
<text fg={theme.textMuted}>{props.sessionID}</text>
67+
</Show>
6568
<Show when={session()!.workspaceID}>
6669
<text fg={theme.textMuted}>
6770
<span style={{ fg: workspaceStatus() === "connected" ? theme.success : theme.error }}></span>{" "}

0 commit comments

Comments
 (0)