From 39845695bac41c1f5a046e49eae40d8afa74e6bd Mon Sep 17 00:00:00 2001 From: Ryan Vogel Date: Thu, 5 Feb 2026 08:02:23 -0500 Subject: [PATCH] tui: show Discord bug report banner only for beta channel users The Discord bug report banner in the session header now only appears for beta channel installations instead of all preview channels. This ensures only beta testers see the bug report prompt, making it more targeted and relevant to users actively testing pre-release builds. --- packages/opencode/src/cli/cmd/tui/routes/session/index.tsx | 2 +- packages/opencode/src/installation/index.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx index 3d48deb914..c2e338e03e 100644 --- a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx +++ b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx @@ -232,7 +232,7 @@ export function Session() { ` █▀▀█ ${UI.Style.TEXT_DIM}${title}${UI.Style.TEXT_NORMAL}`, ` █ █ ${UI.Style.TEXT_DIM}opencode -s ${session()?.id}${UI.Style.TEXT_NORMAL}`, ] - if (Installation.isPreview()) { + if (Installation.CHANNEL === "beta") { lines.push( ` ▀▀▀▀ ${UI.Style.TEXT_DIM}found a bug? report it on discord at https://opencode.ai/discord${UI.Style.TEXT_NORMAL}`, ) diff --git a/packages/opencode/src/installation/index.ts b/packages/opencode/src/installation/index.ts index d18c9e31a1..9b9b74f4f4 100644 --- a/packages/opencode/src/installation/index.ts +++ b/packages/opencode/src/installation/index.ts @@ -53,6 +53,10 @@ export namespace Installation { return CHANNEL !== "latest" } + export function isBeta() { + return CHANNEL === "beta" + } + export function isLocal() { return CHANNEL === "local" }