Skip to content

Commit ae1a397

Browse files
committed
fix(tui): use sync themeMode getter (waitForThemeMode doesn't exist)
The line `await renderer.waitForThemeMode(1000)` calls a method that does not exist on CliRenderer in @opentui/[email protected] (the version pinned in the workspace catalog). Only the sync `themeMode` getter is available. Result: bun typecheck fails on dev with TS2339, blocking any push from a clean branch (the pre-push hook runs typecheck repo-wide). The `?? "dark"` fallback already handles the case where themeMode hasn't been detected yet, so swapping to the sync getter is a behavior-preserving fix. Fixes anomalyco#23504
1 parent 7a568a4 commit ae1a397

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/opencode/src/cli/cmd/tui

‎packages/opencode/src/cli/cmd/tui/app.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export function tui(input: {
129129
}
130130

131131
const renderer = await createCliRenderer(rendererConfig(input.config))
132-
const mode = (await renderer.waitForThemeMode(1000)) ?? "dark"
132+
const mode = renderer.themeMode ?? "dark"
133133

134134
await render(() => {
135135
return (

0 commit comments

Comments
 (0)