opentui: fatal: undefined is not an object (evaluating 'c3[mode2]') #3845

Closed
opened 2026-02-16 17:41:40 -05:00 by yindo · 2 comments
Owner

Originally created by @edheltzel on GitHub (Dec 24, 2025).

Originally assigned to: @kommander on GitHub.

Description

TypeError: undefined is not an object (evaluating 'c3[mode2]')
    at resolveColor (src/cli/cmd/tui/context/theme.tsx:113:25)
    at <anonymous> (src/cli/cmd/tui/context/theme.tsx:116:18)
    at map (native:1:11)
    at resolveTheme (src/cli/cmd/tui/context/theme.tsx:115:174)
    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)...

Updated to the latest release of opencode 1.0.198

OpenCode version

1.0.198

Steps to reproduce

  1. launch opencode
  2. used a slash command for theme
  3. see the TypeError

Screenshot and/or share link

Image

Operating System

macOS Tahoe 26.1

Terminal

Ghostty

Originally created by @edheltzel on GitHub (Dec 24, 2025). Originally assigned to: @kommander on GitHub. ### Description ``` TypeError: undefined is not an object (evaluating 'c3[mode2]') at resolveColor (src/cli/cmd/tui/context/theme.tsx:113:25) at <anonymous> (src/cli/cmd/tui/context/theme.tsx:116:18) at map (native:1:11) at resolveTheme (src/cli/cmd/tui/context/theme.tsx:115:174) 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)... ``` Updated to the latest release of opencode `1.0.198` ### OpenCode version 1.0.198 ### Steps to reproduce 1. launch opencode 2. used a slash command for theme 3. see the `TypeError` ### Screenshot and/or share link <img width="1452" height="941" alt="Image" src="https://github.com/user-attachments/assets/b6d7ebd6-7a8f-475c-9bd6-afe248d60e69" /> ### Operating System macOS Tahoe 26.1 ### Terminal Ghostty
yindo added the opentuibug labels 2026-02-16 17:41:40 -05:00
yindo closed this issue 2026-02-16 17:41:40 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 24, 2025):

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

  • #5828: opentui: fatal: undefined is not an object (evaluating 'c3[mode2]') - Same error, same reproduction steps (browsing/selecting themes)
  • #5308: opentui: fatal: undefined is not an object (evaluating 'c3[mode2]') - Same error when browsing themes
  • #4250: opentui: fatal: undefined is not an object (evaluating 'c3[mode2]') - Same error on Windows Terminal
  • #4236: Can't use custom themes that use ANSI colors - Related color resolution issue with same error

Feel free to ignore if your specific case differs from these.

@github-actions[bot] commented on GitHub (Dec 24, 2025): This issue might be a duplicate of existing issues. Please check: - #5828: opentui: fatal: undefined is not an object (evaluating 'c3[mode2]') - Same error, same reproduction steps (browsing/selecting themes) - #5308: opentui: fatal: undefined is not an object (evaluating 'c3[mode2]') - Same error when browsing themes - #4250: opentui: fatal: undefined is not an object (evaluating 'c3[mode2]') - Same error on Windows Terminal - #4236: Can't use custom themes that use ANSI colors - Related color resolution issue with same error Feel free to ignore if your specific case differs from these.
Author
Owner

@edheltzel commented on GitHub (Dec 24, 2025):

closing this since #5828 and #5308 are pretty much identical

@edheltzel commented on GitHub (Dec 24, 2025): closing this since #5828 and #5308 are pretty much identical
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3845