opencode
opencode copied to clipboard
opentui: fatal: undefined is not an object (evaluating 'c3[mode2]')
Description
TypeError: undefined is not an object (evaluating 'c3[mode2]')
at resolveColor (src/cli/cmd/tui/context/theme.tsx:107:25)
at <anonymous> (src/cli/cmd/tui/context/theme.tsx:110:18)
at map (native:1:11)
at resolveTheme (src/cli/cmd/tui/context/theme.tsx:109:174)
at runComputation (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:742:22)
at updateComputation (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:724:3)
at runTop (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:833:7)
at runQueue (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:904:42)
at completeUpdates (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:860:84)
at runUpdates (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:850:5)
at setStore (../../node_modules/.bun/[email protected]/node_modules/solid-js/store/dist/dev.js:221:5)
at <anonymous> (src/cli/cmd/tui/context/theme.tsx:221:7)
at processTicksAndRejections (native:7:39)...
OpenCode version
1.0.141
Steps to reproduce
Happened while browsing themes
Screenshot and/or share link
No response
Operating System
macOS 26.1
Terminal
Ghostty
This issue might be a duplicate of existing issues. Please check:
- #5307: opentui: fatal: A Proxy's 'target' should be an Object - Also crashed while using the theme picker on macOS 26.1 with the same OpenCode version (1.0.141)
- #5151: opentui: fatal: Object.entries requires that input parameter not be null or undefined - Theme-related crash in the resolveTheme function in src/cli/cmd/tui/context/theme.tsx
Feel free to ignore if your specific case differs from these issues.
you have some theme thats invalid we wikl fix this