system theme causes undefined is not an object error #7505

Closed
opened 2026-02-16 18:07:22 -05:00 by yindo · 9 comments
Owner

Originally created by @notAunty on GitHub (Jan 25, 2026).

Originally assigned to: @rekram1-node on GitHub.

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

Originally created by @notAunty on GitHub (Jan 25, 2026). Originally assigned to: @rekram1-node on GitHub. ### 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
yindo added the opentuibug labels 2026-02-16 18:07:22 -05:00
yindo closed this issue 2026-02-16 18:07:22 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 25, 2026):

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

  • #8873: theme selector crashes when filtering produces no results (same error and code location: dialog-theme-list.tsx:26:17)
  • #4768: 'System' Theme does not show on Wezterm terminal (missing system theme)
  • #8480: System theme doesn't apply Ghostty transparency on load
  • #4027: System theme in macOS with ghostty doesn't apply opacity
  • #1587: Updating system theme requires hard reboot to fix

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

@github-actions[bot] commented on GitHub (Jan 25, 2026): This issue might be a duplicate of existing issues. Please check: - #8873: theme selector crashes when filtering produces no results (same error and code location: dialog-theme-list.tsx:26:17) - #4768: 'System' Theme does not show on Wezterm terminal (missing system theme) - #8480: System theme doesn't apply Ghostty transparency on load - #4027: System theme in macOS with ghostty doesn't apply opacity - #1587: Updating system theme requires hard reboot to fix Feel free to ignore if none of these address your specific case.
Author
Owner

@notAunty commented on GitHub (Jan 25, 2026):

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

@notAunty commented on GitHub (Jan 25, 2026): @ishaksebsib @rekram1-node thank you for looking into it. But 'system' theme is completely missing for me now.
Author
Owner

@ishaksebsib commented on GitHub (Jan 25, 2026):

@notAunty are you on the latest version?

Image
@ishaksebsib commented on GitHub (Jan 25, 2026): @notAunty are you on the latest version? <img width="895" height="676" alt="Image" src="https://github.com/user-attachments/assets/582b2870-4fd5-40a3-93d2-a3acc285b4f9" />
Author
Owner

@wojteksbt commented on GitHub (Jan 26, 2026):

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

Image
@wojteksbt commented on GitHub (Jan 26, 2026): I'm on the latest version, no longer receiving the exception, but I don't have system theme either: <img width="673" height="419" alt="Image" src="https://github.com/user-attachments/assets/0530567b-7590-4e7e-9cfd-c09f469143ce" />
Author
Owner

@ishaksebsib commented on GitHub (Jan 26, 2026):

@wojteksbt, are you using iTerm2?

@ishaksebsib commented on GitHub (Jan 26, 2026): @wojteksbt, are you using iTerm2?
Author
Owner

@wojteksbt commented on GitHub (Jan 26, 2026):

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

@wojteksbt commented on GitHub (Jan 26, 2026): @ishaksebsib No, I use native macOS Terminal.app. Is it a problem?
Author
Owner

@ishaksebsib commented on GitHub (Jan 26, 2026):

@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.

@ishaksebsib commented on GitHub (Jan 26, 2026): @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.
Author
Owner

@wojteksbt commented on GitHub (Jan 26, 2026):

@ishaksebsib Thank you!

@wojteksbt commented on GitHub (Jan 26, 2026): @ishaksebsib Thank you!
Author
Owner

@notAunty commented on GitHub (Jan 26, 2026):

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

@notAunty commented on GitHub (Jan 26, 2026): I'm on version `1.1.36` + iTerm2. On Terminal (macos), `system` theme shows up fine, but the color looks off
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7505