anomalyco / anomalyco/opencode
TUI crash: undefined is not an object (evaluating 's().tailHygiene.evaluable')
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
The opencode TUI crashed with an unexpected error.
Error: undefined is not an object (evaluating 's().tailHygiene.evaluable')
Stack trace:
TypeError: undefined is not an object (evaluating 's().tailHygiene.evaluable')
at warning (/home/elkin/.cache/opencode/packages/@cortexkit/opencode-magic-context@latest/node_modules/@cortexkit/opencode-magic-context/src/tui-compiled/slots/sidebar-content.tsx:872:27)
at <anonymous> (/home/elkin/.cache/opencode/packages/@cortexkit/opencode-magic-context@latest/node_modules/@cortexkit/opencode-magic-context/src/tui-compiled/slots/sidebar-content.tsx:338:9)
at mJ (/$bunfs/root/chunk-qekj7dwg.js:2:9650)
at p (/$bunfs/root/chunk-qekj7dwg.js:2:9431)
at ZJ (/$bunfs/root/chunk-qekj7dwg.js:2:11057)
at rJ (/$bunfs/root/chunk-qekj7dwg.js:2:11931)
at yZ (/$bunfs/root/chunk-qekj7dwg.js:2:11333)
at w (/$bunfs/root/chunk-qekj7dwg.js:2:11238)
at oJ (/$bunfs/root/chunk-qekj7dwg.js:2:9106)
at <anonymous> (/home/elkin/.cache/opencode/packages/@cortexkit/opencode-magic-context@latest/node_modules/@cortexkit/opencode-magic-context/src/tui-compiled/slots/sidebar-content.tsx:568:7)
at processTicksAndRejections (native:7:39)
Plugins
magiccontext + AFT
OpenCode version
1.18.31
Steps to reproduce
Reported automatically from the opencode crash screen. If you can, describe what you were doing when it crashed.
Screenshot and/or share link
No response
Operating System
Linux 7.1.1-76070101-generic (x64)
Terminal
ghostty 1.3.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the stack trace location in @cortexkit/opencode-magic-context/src/tui-compiled/slots/sidebar-content.tsx, especially warning at line 872, and reproduce the crash with magiccontext + AFT on OpenCode 1.18.31. Determine why s().tailHygiene is undefined; done means the TUI no longer crashes in the reported configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100