You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: typecheck fails on dev — waitForThemeMode does not exist on CliRenderer #23504
@opentui/[email protected] (the version pinned in the workspace catalog) only exposes a synchronous themeMode getter on CliRenderer — there is no waitForThemeMode method.
Steps to reproduce
git checkout dev
bun install
bun typecheck
→ opencode#typecheck exits with the error above. The pre-push hook also blocks any push from a clean branch off dev.
Suspected cause
The line was likely written against an unreleased opentui API. Either opentui was supposed to be bumped alongside this commit, or the call site needs to fall back to the sync getter that is available today.
Suggested fix
Use the sync getter — the ?? "dark" fallback already handles the null case:
constmode=renderer.themeMode??"dark"
This restores typecheck and is a minimal, behavior-preserving change (the original waitForThemeMode(1000) was only ever waiting briefly for terminal background detection; if it hasn't completed the fallback fires anyway).
Happy to PR this.
opencode version
local install of dev HEAD 7a568a457
Operating System
macOS 25.3.0
Terminal
n/a (typecheck failure, no terminal interaction needed to reproduce)
Activity
fix(tui): use sync themeMode getter (waitForThemeMode doesn't exist)