Skip to content

system theme causes undefined is not an object error #10488

Closed

Description

@notAunty

Description

The system theme is missing from the /theme list. And when I search for the system theme, this error shows up:

[13:07:56] [ERROR] Error: undefined is not an object (evaluating 'opt.value')
    TypeError: undefined is not an object (evaluating 'opt.value')
        at onMove (src/cli/cmd/tui/component/dialog-theme-list.tsx:26:17)
        at moveTo (src/cli/cmd/tui/ui/dialog-select.tsx:96:11)
        at <anonymous> (src/cli/cmd/tui/ui/dialog-select.tsx:78:9)

Plugins

"plugin": ["opencode-antigravity-auth@beta", "@tarquinen/opencode-dcp@latest"]

OpenCode version

1.1.35

Steps to reproduce

  1. opencode
  2. Notices my theme is not system. Open /theme and don't see system on that list
  3. Searches for system by typing.
  4. Errors shows up

Screenshot and/or share link

No response

Operating System

macOs 15.7.3 + npm install -g

Terminal

iTerm2

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 25, 2026
  2. github-actions commented on Jan 25, 2026

    @github-actions
    Contributor

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

    Feel free to ignore if none of these address your specific case.

  3. notAunty commented on Jan 26, 2026

    @notAunty
    Author

    @ishaksebsib @rekram1-node
    thank you for looking into it. But 'system' theme is completely missing for me now.

  4. ishaksebsib commented on Jan 26, 2026

    @ishaksebsib
    Contributor

    @notAunty are you on the latest version?

    Image
  5. wojteksbt commented on Jan 26, 2026

    @wojteksbt

    I'm on the latest version, no longer receiving the exception, but I don't have system theme either:

    Image
  6. ishaksebsib commented on Jan 26, 2026

    @ishaksebsib
    Contributor

    @wojteksbt, are you using iTerm2?

  7. wojteksbt commented on Jan 26, 2026

    @wojteksbt

    @ishaksebsib No, I use native macOS Terminal.app. Is it a problem?

  8. ishaksebsib commented on Jan 26, 2026

    @ishaksebsib
    Contributor

    @wojteksbt I think this is a macOS-specific issue. The system theme exists on Linux, and PR #10565 fixes the exception error for unknown themes. I’ve also opened issue #10661 for macOS, where the system theme doesn’t exist.

  9. wojteksbt commented on Jan 26, 2026

    @wojteksbt

    @ishaksebsib Thank you!

  10. notAunty commented on Jan 27, 2026

    @notAunty
    Author

    I'm on version 1.1.36 + iTerm2. On Terminal (macos), system theme shows up fine, but the color looks off

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