opentui: fatal: Object.entries requires that input parameter not be null or undefined #3126

Closed
opened 2026-02-16 17:38:45 -05:00 by yindo · 3 comments
Owner

Originally created by @badluma on GitHub (Nov 25, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

TypeError: Object.entries requires that input parameter not be null or undefined
    at entries (unknown)
    at resolveTheme (src/cli/cmd/tui/context/theme.tsx:98:46)
    at runComputation (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:742:22)
    at updateComputation (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:724:3)
    at runTop (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:833:7)
    at runQueue (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:904:42)
    at completeUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:860:84)
    at runUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:850:5)
    at setStore (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/store/dist/dev.js:221:5)
    at set (src/cli/cmd/tui/context/theme.tsx:179:9)
    at onMove (src/cli/cmd/tui/component/dialog-theme-list.tsx:24:13)
    at moveTo (src/cli/cmd/tui/ui/dialog-select.tsx:79:11)
    at move (src/cli/cmd/tui/ui/dialog-select.tsx:75:5)
    at <anonymous> (src/cli/cmd/tui/ui/dialog-select.tsx:98:62)
    at emit (node:events:95:22)
    at emitWithPriority (../../node_modules/.bun/@opentui+core@0.1.50+81ecd8642a1892ca/node_modules/@opentui/core/index-ztfy2qy3.js:2350:38)
    at processInput (../../node_modules/.bun/@opentui+core@0.1.50+81ecd8642a1892ca/node_modules/@opentui/core/index-ztfy2qy3.js:2321:14)
    at <anonymous> (../../node_modules/.bun/@opentui+core@0.1.50+81ecd8642a1892ca/node_modules/@opentui/core/index-ztfy2qy3.js:14967:13)
    at emit (node:events:95:22)
    at process (../../node_modules/.bun/@opentui+core@0.1.50+81ecd8642a1892ca/node_modules/@opentui/core/index-ztfy2qy3.js:5940:12)
    at <anonymous> (../../node_modules/.bun/@opentui+core@0.1.50+81ecd8642a1892ca/node_modules/@opentui/core/index-ztfy2qy3.js:14909:23)
    at emit (node:events:95:22)
    at addChunk (internal:streams/readable:264:47)
    at readableAddChunkPushByteMode (internal:streams/readable:242:18)
    at internalRead (native:38:40)
    at processTicksAndRejections (native:7:39)...

OpenCode version

1.0.114

Steps to reproduce

i just clicked the arrow down button, idk if that was the cause

Screenshot and/or share link

No response

Operating System

macOS

Terminal

Standard Macos terminal

Originally created by @badluma on GitHub (Nov 25, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description ``` TypeError: Object.entries requires that input parameter not be null or undefined at entries (unknown) at resolveTheme (src/cli/cmd/tui/context/theme.tsx:98:46) at runComputation (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:742:22) at updateComputation (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:724:3) at runTop (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:833:7) at runQueue (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:904:42) at completeUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:860:84) at runUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:850:5) at setStore (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/store/dist/dev.js:221:5) at set (src/cli/cmd/tui/context/theme.tsx:179:9) at onMove (src/cli/cmd/tui/component/dialog-theme-list.tsx:24:13) at moveTo (src/cli/cmd/tui/ui/dialog-select.tsx:79:11) at move (src/cli/cmd/tui/ui/dialog-select.tsx:75:5) at <anonymous> (src/cli/cmd/tui/ui/dialog-select.tsx:98:62) at emit (node:events:95:22) at emitWithPriority (../../node_modules/.bun/@opentui+core@0.1.50+81ecd8642a1892ca/node_modules/@opentui/core/index-ztfy2qy3.js:2350:38) at processInput (../../node_modules/.bun/@opentui+core@0.1.50+81ecd8642a1892ca/node_modules/@opentui/core/index-ztfy2qy3.js:2321:14) at <anonymous> (../../node_modules/.bun/@opentui+core@0.1.50+81ecd8642a1892ca/node_modules/@opentui/core/index-ztfy2qy3.js:14967:13) at emit (node:events:95:22) at process (../../node_modules/.bun/@opentui+core@0.1.50+81ecd8642a1892ca/node_modules/@opentui/core/index-ztfy2qy3.js:5940:12) at <anonymous> (../../node_modules/.bun/@opentui+core@0.1.50+81ecd8642a1892ca/node_modules/@opentui/core/index-ztfy2qy3.js:14909:23) at emit (node:events:95:22) at addChunk (internal:streams/readable:264:47) at readableAddChunkPushByteMode (internal:streams/readable:242:18) at internalRead (native:38:40) at processTicksAndRejections (native:7:39)... ``` ### OpenCode version 1.0.114 ### Steps to reproduce i just clicked the arrow down button, idk if that was the cause ### Screenshot and/or share link _No response_ ### Operating System macOS ### Terminal Standard Macos terminal
yindo added the opentuibug labels 2026-02-16 17:38:45 -05:00
yindo closed this issue 2026-02-16 17:38:45 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 25, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #4429: Crash when using theme with ANSI color indexes (terminal palette numbers)
  • #4237: opentui: fatal: undefined is not an object (evaluating 'c3[mode2]')
  • #4250: opentui: fatal: undefined is not an object (evaluating 'c3[mode2]')
  • #4365: opentui: fatal: undefined is not an object (evaluating 'c3[mode2]') when using custom theme
  • #4368: opentui: fatal: undefined is not an object (evaluating 'c3[mode2]') using a custom theme that worked in 0.15.31
  • #4304: Theme error

All of these issues involve crashes in the theme resolution logic (src/cli/cmd/tui/context/theme.tsx) when navigating themes or loading custom themes. While your error message mentions 'Object.entries', these other issues have similar symptoms (crashes triggered by theme selection/navigation).

Feel free to ignore if your issue has different root causes.

@github-actions[bot] commented on GitHub (Nov 25, 2025): This issue might be a duplicate of existing issues. Please check: - #4429: Crash when using theme with ANSI color indexes (terminal palette numbers) - #4237: opentui: fatal: undefined is not an object (evaluating 'c3[mode2]') - #4250: opentui: fatal: undefined is not an object (evaluating 'c3[mode2]') - #4365: opentui: fatal: undefined is not an object (evaluating 'c3[mode2]') when using custom theme - #4368: opentui: fatal: undefined is not an object (evaluating 'c3[mode2]') using a custom theme that worked in 0.15.31 - #4304: Theme error All of these issues involve crashes in the theme resolution logic (src/cli/cmd/tui/context/theme.tsx) when navigating themes or loading custom themes. While your error message mentions 'Object.entries', these other issues have similar symptoms (crashes triggered by theme selection/navigation). Feel free to ignore if your issue has different root causes.
Author
Owner

@rekram1-node commented on GitHub (Nov 27, 2025):

did you stop having this issue @badluma

@rekram1-node commented on GitHub (Nov 27, 2025): did you stop having this issue @badluma
Author
Owner

@badluma commented on GitHub (Nov 27, 2025):

did you stop having this issue @badluma

Ye I noticed that the error was because of a custom theme

@badluma commented on GitHub (Nov 27, 2025): > did you stop having this issue @badluma Ye I noticed that the error was because of a custom theme
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3126