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.
This commit is contained in:
Ryan Vogel
2026-02-05 08:02:23 -05:00
parent 09d410f6fc
commit 39845695ba
2 changed files with 5 additions and 1 deletions
@@ -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}`,
)
@@ -53,6 +53,10 @@ export namespace Installation {
return CHANNEL !== "latest"
}
export function isBeta() {
return CHANNEL === "beta"
}
export function isLocal() {
return CHANNEL === "local"
}