anomalyco / anomalyco/opencode
Error on every agent.
@jlongster is already working on this.
Since Sep 17, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- Avg merge
- 7h 2m
- Merged PRs (30d)
- 384
Description
Description
I get an error when sending prompts, for every agent when using the TUI. When sending a prompt the TUI shows a message: "Unexpected server error. Check server logs for details."
On the opencode.log file there this error:
timestamp=2026-09-17T15:40:58.992Z level=ERROR run=266a2bd8 message=failed ref=err_896227d4 error="TypeError: undefined is not an object (evaluating 'a.name')" cause="TypeError: undefined is not an object (evaluating 'a.name')\n at resolve (/$bunfs/root/chunk-2txybz4b.js:2:1659)\n at a (/$bunfs/root/chunk-2txybz4b.js:2:936)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-2txybz4b.js:2:1626)\n at a (/$bunfs/root/chunk-2txybz4b.js:2:1166)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-2txybz4b.js:2:1626)\n at a (/$bunfs/root/chunk-2txybz4b.js:2:1166)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-2txybz4b.js:2:1390)\n at SystemPrompt.environment (/$bunfs/root/chunk-bea263sy.js:50:13096)\n at SystemPrompt.environment (definition) (/$bunfs/root/chunk-bea263sy.js:4:14254)\n at SessionPrompt.run (/$bunfs/root/chunk-bea263sy.js:50:14576)\n at SessionPrompt.run (definition) (/$bunfs/root/chunk-bea263sy.js:50:10099)\n at SessionRunState.ensureRunning (/$bunfs/root/chunk-bea263sy.js:50:14545)\n at SessionRunState.ensureRunning (definition) (/$bunfs/root/chunk-bea263sy.js:2:6720)\n at SessionPrompt.loop (/$bunfs/root/chunk-bea263sy.js:50:9849)\n at SessionPrompt.loop (definition) (/$bunfs/root/chunk-bea263sy.js:50:14481)\n at SessionPrompt.prompt (/$bunfs/root/chunk-f9g4vqca.js:6:11695)\n at SessionPrompt.prompt (definition) (/$bunfs/root/chunk-bea263sy.js:50:9462)"
Plugins
No response
OpenCode version
1.18.30
Steps to reproduce
- Open opencode.
- Try to send a prompt
Screenshot and/or share link
Operating System
Linux 6.18.52 #1-NixOS SMP PREEMPT_DYNAMIC Mon Sep 14 11:36:19 UTC 2026 x86_64 GNU/Linux
Terminal
Ghostty
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.
Assessment
This issue has not been assessed yet.