Skip to content

Commit 31830a4

Browse files
Kuo, Josephsisyphus-dev-ai
andcommitted
fix(tui): use available OpenTUI theme mode API
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <[email protected]>
1 parent 02992e9 commit 31830a4

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
@@ -133,7 +133,7 @@ export function tui(input: {
133133
}
134134

135135
const renderer = await createCliRenderer(rendererConfig(input.config))
136-
const mode = (await renderer.waitForThemeMode(1000)) ?? "dark"
136+
const mode = renderer.themeMode ?? "dark"
137137

138138
await render(() => {
139139
return (

0 commit comments

Comments
 (0)