summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorKit Langton <[email protected]>2026-01-15 20:39:35 -0500
committerGitHub <[email protected]>2026-01-15 19:39:35 -0600
commit4af9defb891405a9a7efb4b276850d9547080bb8 (patch)
treef68fd5466207062bd75a3ebe0d3999ee07bd3de1
parent12b621068ac30f2751167ac810ef636825a12957 (diff)
downloadopencode-4af9defb891405a9a7efb4b276850d9547080bb8.tar.gz
opencode-4af9defb891405a9a7efb4b276850d9547080bb8.zip
fix(tui): correct theme count tip (#8779)
-rw-r--r--packages/opencode/src/cli/cmd/tui/component/tips.tsx7
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/component/tips.tsx b/packages/opencode/src/cli/cmd/tui/component/tips.tsx
index 516d7e7e2..fe2e7ca21 100644
--- a/packages/opencode/src/cli/cmd/tui/component/tips.tsx
+++ b/packages/opencode/src/cli/cmd/tui/component/tips.tsx
@@ -1,5 +1,8 @@
import { createMemo, createSignal, For } from "solid-js"
-import { useTheme } from "@tui/context/theme"
+import { DEFAULT_THEMES, useTheme } from "@tui/context/theme"
+
+const themeCount = Object.keys(DEFAULT_THEMES).length
+const themeTip = `Use {highlight}/theme{/highlight} or {highlight}Ctrl+X T{/highlight} to switch between ${themeCount} built-in themes`
type TipPart = { text: string; highlight: boolean }
@@ -57,7 +60,7 @@ const TIPS = [
"Press {highlight}Ctrl+X E{/highlight} or {highlight}/editor{/highlight} to compose messages in your external editor",
"Run {highlight}/init{/highlight} to auto-generate project rules based on your codebase",
"Run {highlight}/models{/highlight} or {highlight}Ctrl+X M{/highlight} to see and switch between available AI models",
- "Use {highlight}/theme{/highlight} or {highlight}Ctrl+X T{/highlight} to switch between 50+ built-in themes",
+ themeTip,
"Press {highlight}Ctrl+X N{/highlight} or {highlight}/new{/highlight} to start a fresh conversation session",
"Use {highlight}/sessions{/highlight} or {highlight}Ctrl+X L{/highlight} to list and continue previous conversations",
"Run {highlight}/compact{/highlight} to summarize long sessions near context limits",