From 8c1808ab74a80c15659ffcc54200f497c5263e53 Mon Sep 17 00:00:00 2001 From: Kit Langton Date: Mon, 13 Jul 2026 15:01:48 -0400 Subject: [PATCH] fix(tui): standardize OpenCode product casing (#36717) --- packages/tui/src/attention.ts | 2 +- packages/tui/src/component/error-component.tsx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/tui/src/attention.ts b/packages/tui/src/attention.ts index eb3cd9e00b..e210a745d6 100644 --- a/packages/tui/src/attention.ts +++ b/packages/tui/src/attention.ts @@ -38,7 +38,7 @@ type TuiAttentionHost = TuiAttention & { dispose(): void } -const DEFAULT_TITLE = "opencode" +const DEFAULT_TITLE = "OpenCode" const DEFAULT_PACK_ID = "opencode.default" const TITLE_LIMIT = 80 const MESSAGE_LIMIT = 240 diff --git a/packages/tui/src/component/error-component.tsx b/packages/tui/src/component/error-component.tsx index 1141da8382..8d778badca 100644 --- a/packages/tui/src/component/error-component.tsx +++ b/packages/tui/src/component/error-component.tsx @@ -108,7 +108,7 @@ export function ErrorComponent(props: { error: Error; reset: () => void; mode?: {/* Headline */} - opencode crashed + OpenCode crashed An unexpected error stopped the session. @@ -192,7 +192,7 @@ export function ErrorComponent(props: { error: Error; reset: () => void; mode?: ? "Report copied — paste it into a new GitHub issue." : "Copy the report and open a GitHub issue to help us fix this."} - opencode {InstallationVersion} + OpenCode {InstallationVersion} @@ -211,7 +211,7 @@ function buildIssueURL(message: string, stack: string) { url.searchParams.set("terminal", describeTerminal()) url.searchParams.set( "reproduce", - "Reported automatically from the opencode crash screen. If you can, describe what you were doing when it crashed.", + "Reported automatically from the OpenCode crash screen. If you can, describe what you were doing when it crashed.", ) // Budget the stack against the fully URL-encoded length (not the raw length) so @@ -220,7 +220,7 @@ function buildIssueURL(message: string, stack: string) { // so measuring url.toString() is both correct and safe on any input. const MAX_URL_LENGTH = 6000 const marker = "\n... (truncated)" - const head = `The opencode TUI crashed with an unexpected error.\n\n**Error:** ${message}\n\n**Stack trace:**\n` + const head = `The OpenCode TUI crashed with an unexpected error.\n\n**Error:** ${message}\n\n**Stack trace:**\n` const setBody = (body: string) => url.searchParams.set("description", head + "```\n" + body + "\n```") setBody(stack)