Skip to content

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

Closed as not planned

Description

@badluma

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/[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 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/@[email protected]+81ecd8642a1892ca/node_modules/@opentui/core/index-ztfy2qy3.js:2350:38)
    at processInput (../../node_modules/.bun/@[email protected]+81ecd8642a1892ca/node_modules/@opentui/core/index-ztfy2qy3.js:2321:14)
    at <anonymous> (../../node_modules/.bun/@[email protected]+81ecd8642a1892ca/node_modules/@opentui/core/index-ztfy2qy3.js:14967:13)
    at emit (node:events:95:22)
    at process (../../node_modules/.bun/@[email protected]+81ecd8642a1892ca/node_modules/@opentui/core/index-ztfy2qy3.js:5940:12)
    at <anonymous> (../../node_modules/.bun/@[email protected]+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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 26, 2025
  2. github-actions commented on Nov 26, 2025

    @github-actions
    Contributor

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

    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.

  3. self-assigned this
    on Nov 26, 2025
  4. rekram1-node commented on Nov 27, 2025

    @rekram1-node
    Collaborator

    did you stop having this issue @badluma

  5. badluma commented on Nov 27, 2025

    @badluma
    Author

    did you stop having this issue @badluma

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions