anomalyco / anomalyco/opencode

TUI crash: undefined is not an object (evaluating 'U.r')

Open
#40,186 2 comments 0 reactions 1 assignee View on GitHub

@kommander is already working on this.

Since Aug 2, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
Avg merge
7h 2m
Merged PRs (30d)
384

Description

Description

The opencode TUI crashed with an unexpected error.

Error: undefined is not an object (evaluating 'U.r')

Stack trace:

TypeError: undefined is not an object (evaluating 'U.r')
    at j0 (B:/~BUN/root/chunk-jwjk4syb.js:33:2237)
    at <anonymous> (B:/~BUN/root/chunk-jwjk4syb.js:45:1190)
    at mJ (B:/~BUN/root/chunk-n374cfc4.js:2:9650)
    at p (B:/~BUN/root/chunk-n374cfc4.js:2:9431)
    at ZJ (B:/~BUN/root/chunk-n374cfc4.js:2:11057)
    at vZ (B:/~BUN/root/chunk-n374cfc4.js:2:12168)
    at w (B:/~BUN/root/chunk-n374cfc4.js:2:11226)
    at yZ (B:/~BUN/root/chunk-n374cfc4.js:2:11863)
    at w (B:/~BUN/root/chunk-n374cfc4.js:2:11238)
    at <anonymous> (B:/~BUN/root/chunk-rsg7he52.js:2:32492)
    at emit (node:events:95:22)
    at insertText (B:/~BUN/root/chunk-ktc3gzhc.js:9:14462)
    at handleKeyPress (B:/~BUN/root/chunk-ktc3gzhc.js:9:11452)
    at <anonymous> (B:/~BUN/root/chunk-naqaftt1.js:72:63138)
    at emitWithPriority (B:/~BUN/root/chunk-naqaftt1.js:26:10570)
    at processParsedKey (B:/~BUN/root/chunk-naqaftt1.js:26:9634)
    at handleStdinEvent (B:/~BUN/root/chunk-naqaftt1.js:93:5055)
    at <anonymous> (B:/~BUN/root/chunk-naqaftt1.js:93:4924)
    at drain (B:/~BUN/root/chunk-naqaftt1.js:32:8396)
    at drainStdinParser (B:/~BUN/root/chunk-naqaftt1.js:93:4896)
    at <anonymous> (B:/~BUN/root/chunk-naqaftt1.js:93:2753)
    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)
Plugins

none

OpenCode version

1.18.11

Steps to reproduce

A theme file which does not have all the values set.
I create a theme file which has only 5 to 6 values set, but this resulted into this issue.
Once I asked LLM (grok 4.5) to update the full theme it worked fine.

Screenshot and/or share link

No response

Operating System

Windows 10.0.26200 (x64)

Terminal

Powershell

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.