Repository navigation
unable to use zen subscription: unexpected server error #48792
Copy link
Copy link
Closed
Description
Description
Today I am completely unable to use OpenCode on my laptop. It used to work perfectly until today; I don't know why today it is no longer working. I am unable to use my OpenCode Zen subscription.
I keep getting "unespected server error".
I used opencode --log-level DEBUG --print-logs and I captured the logs:
timestamp=2026-09-13T08:42:44.762Z level=INFO run=49957a72 message="creating instance" directory=/home/enrico/repositories/test
timestamp=2026-09-13T08:42:44.763Z level=INFO run=49957a72 message=fromDirectory directory=/home/enrico/repositories/test
timestamp=2026-09-13T08:42:44.770Z level=INFO run=49957a72 message=bootstrapping directory=/home/enrico/repositories/test
timestamp=2026-09-13T08:42:44.777Z level=INFO run=49957a72 message=loading path=/home/enrico/.config/opencode/config.json
timestamp=2026-09-13T08:42:44.777Z level=INFO run=49957a72 message=loading path=/home/enrico/.config/opencode/opencode.json
timestamp=2026-09-13T08:42:44.778Z level=INFO run=49957a72 message=loading path=/home/enrico/.config/opencode/opencode.jsonc
timestamp=2026-09-13T08:42:44.899Z level=INFO run=49957a72 message="all LSPs are disabled"
timestamp=2026-09-13T08:42:44.900Z level=INFO run=49957a72 message="all formatters are disabled"
timestamp=2026-09-13T08:42:44.900Z level=INFO run=49957a72 message=init
timestamp=2026-09-13T08:42:45.939Z level=ERROR run=49957a72 message=failed ref=err_1d3e0646 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-13bwg24f.js:2:1659)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:936)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1626)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:1166)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1626)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:1166)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1390)"
timestamp=2026-09-13T08:42:45.941Z level=ERROR run=49957a72 message=failed ref=err_47cfb029 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-13bwg24f.js:2:1659)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:936)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1626)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:1166)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1626)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:1166)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1390)"
timestamp=2026-09-13T08:42:45.942Z level=ERROR run=49957a72 message=failed ref=err_7bcb83a7 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-13bwg24f.js:2:1659)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:936)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1626)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:1166)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1626)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:1166)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1390)"
timestamp=2026-09-13T08:42:45.942Z level=ERROR run=49957a72 message=failed ref=err_8402ff4e 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-13bwg24f.js:2:1659)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:936)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1626)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:1166)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1626)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:1166)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1390)"
timestamp=2026-09-13T08:42:45.942Z level=ERROR run=49957a72 message=failed ref=err_76f95cf3 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-13bwg24f.js:2:1659)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:936)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1626)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:1166)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1626)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:1166)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1390)"
timestamp=2026-09-13T08:42:45.943Z level=ERROR run=49957a72 message=failed ref=err_ab4385da 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-13bwg24f.js:2:1659)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:936)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1626)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:1166)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1626)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:1166)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1390)"
timestamp=2026-09-13T08:42:45.943Z level=ERROR run=49957a72 message=failed ref=err_60613b2b 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-13bwg24f.js:2:1659)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:936)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1626)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:1166)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1626)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:1166)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1390)"
timestamp=2026-09-13T08:42:45.944Z level=ERROR run=49957a72 message=failed ref=err_b826d8f1 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-13bwg24f.js:2:1659)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:936)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1626)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:1166)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1626)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:1166)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1390)"
timestamp=2026-09-13T08:42:45.946Z level=INFO run=49957a72 message=init count=1
timestamp=2026-09-13T08:42:54.985Z level=INFO run=49957a72 message=created id=ses_f6610f576ffe7kCgcKxZK0pWYB slug=nimble-planet version=1.18.30 projectID=global directory=/home/enrico/repositories/test path=home/enrico/repositories/test workspaceID=undefined parentID=undefined title="New session - 2026-09-13T08:42:54.985Z" agent=plan model.id=big-pickle model.providerID=opencode metadata=undefined permission=undefined cost=0 tokens.input=0 tokens.output=0 tokens.reasoning=0 tokens.cache.read=0 tokens.cache.write=0 time.created=1789288974985 time.updated=1789288974985
timestamp=2026-09-13T08:42:55.037Z level=INFO run=49957a72 message=loop session.id=ses_f6610f576ffe7kCgcKxZK0pWYB step=0
timestamp=2026-09-13T08:42:55.047Z level=INFO run=49957a72 message="shell tool using shell" shell=/bin/bash
timestamp=2026-09-13T08:42:55.055Z level=ERROR run=49957a72 message=failed ref=err_bfd6eaf2 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-13bwg24f.js:2:1659)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:936)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1626)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:1166)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1626)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:1166)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1390)\n at SystemPrompt.environment (/$bunfs/root/chunk-6bzt19tm.js:50:13096)\n at SystemPrompt.environment (definition) (/$bunfs/root/chunk-6bzt19tm.js:4:14254)\n at SessionPrompt.run (/$bunfs/root/chunk-6bzt19tm.js:50:14576)\n at SessionPrompt.run (definition) (/$bunfs/root/chunk-6bzt19tm.js:50:10099)\n at SessionRunState.ensureRunning (/$bunfs/root/chunk-6bzt19tm.js:50:14545)\n at SessionRunState.ensureRunning (definition) (/$bunfs/root/chunk-6bzt19tm.js:2:6720)\n at SessionPrompt.loop (/$bunfs/root/chunk-6bzt19tm.js:50:9849)\n at SessionPrompt.loop (definition) (/$bunfs/root/chunk-6bzt19tm.js:50:14481)\n at SessionPrompt.prompt (/$bunfs/root/chunk-djrrnpzv.js:6:11695)\n at SessionPrompt.prompt (definition) (/$bunfs/root/chunk-6bzt19tm.js:50:9462)"
timestamp=2026-09-13T08:42:55.065Z level=INFO run=49957a72 message=stream providerID=opencode modelID=big-pickle session.id=ses_f6610f576ffe7kCgcKxZK0pWYB small=true agent=title mode=primary
timestamp=2026-09-13T08:42:55.072Z level=INFO run=49957a72 message="llm runtime selected" llm.runtime=ai-sdk llm.provider=opencode llm.model=big-pickle
timestamp=2026-09-13T08:43:54.547Z level=INFO run=49957a72 message="disposing instance" directory=/home/enrico/repositories/test
timestamp=2026-09-13T08:43:54.553Z level=INFO run=49957a72 message="creating instance" directory=/home/enrico/repositories/test
timestamp=2026-09-13T08:43:54.553Z level=INFO run=49957a72 message=fromDirectory directory=/home/enrico/repositories/test
timestamp=2026-09-13T08:43:54.562Z level=INFO run=49957a72 message=bootstrapping directory=/home/enrico/repositories/test
timestamp=2026-09-13T08:43:54.574Z level=INFO run=49957a72 message="all LSPs are disabled"
timestamp=2026-09-13T08:43:54.574Z level=INFO run=49957a72 message="all formatters are disabled"
timestamp=2026-09-13T08:43:54.574Z level=INFO run=49957a72 message=init
timestamp=2026-09-13T08:43:55.554Z level=INFO run=49957a72 message=init count=1
timestamp=2026-09-13T08:44:02.967Z level=INFO run=49957a72 message=loop session.id=ses_f6610f576ffe7kCgcKxZK0pWYB step=0
timestamp=2026-09-13T08:44:02.973Z level=INFO run=49957a72 message="shell tool using shell" shell=/bin/bash
timestamp=2026-09-13T08:44:02.977Z level=ERROR run=49957a72 message=failed ref=err_0a96ab57 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-13bwg24f.js:2:1659)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:936)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1626)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:1166)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1626)\n at a (/$bunfs/root/chunk-13bwg24f.js:2:1166)\n at map (native:1:11)\n at <anonymous> (/$bunfs/root/chunk-13bwg24f.js:2:1390)\n at SystemPrompt.environment (/$bunfs/root/chunk-6bzt19tm.js:50:13096)\n at SystemPrompt.environment (definition) (/$bunfs/root/chunk-6bzt19tm.js:4:14254)\n at SessionPrompt.run (/$bunfs/root/chunk-6bzt19tm.js:50:14576)\n at SessionPrompt.run (definition) (/$bunfs/root/chunk-6bzt19tm.js:50:10099)\n at SessionRunState.ensureRunning (/$bunfs/root/chunk-6bzt19tm.js:50:14545)\n at SessionRunState.ensureRunning (definition) (/$bunfs/root/chunk-6bzt19tm.js:2:6720)\n at SessionPrompt.loop (/$bunfs/root/chunk-6bzt19tm.js:50:9849)\n at SessionPrompt.loop (definition) (/$bunfs/root/chunk-6bzt19tm.js:50:14481)\n at SessionPrompt.prompt (/$bunfs/root/chunk-djrrnpzv.js:6:11695)\n at SessionPrompt.prompt (definition) (/$bunfs/root/chunk-6bzt19tm.js:50:9462)"
timestamp=2026-09-13T08:44:07.469Z level=INFO run=49957a72 message="disposing all instances"
timestamp=2026-09-13T08:44:07.470Z level=INFO run=49957a72 message="disposing instance" directory=/home/enrico/repositories/test
I even tried removing my ~/.local/share/opencode/ and ~/.config/opencode/ folders, but the error persists.
Plugins
No response
OpenCode version
1.18.30
Steps to reproduce
- start opencode
- enter any prompt
Screenshot and/or share link
https://opncd.ai/share/iZMCdprT
Operating System
Fedora 44 Workstation
Terminal
Gnome Terminal
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
github-actions commentedon Sep 13, 2026
This issue might be a duplicate of existing issues. Please check:
TypeError: undefined is not an object (evaluating 'a.name')crash inSystemPrompt.environment— every prompt failsSystemPrompt.environmenterrorsIf your issue matches either of those, consider adding a "+1" or additional context there rather than opening a new report.
enricogandini commentedon Sep 13, 2026
I had installed opencode with brew, using the formula from the homebrew team: https://formulae.brew.sh/formula/opencode .
I uninstalled that and reinstalled opencode from the anomalyco tap, and it is working again.
opencode-agent commentedon Oct 1, 2026
This crash affected downstream builds compiled with newer Bun 1.4 versions and code splitting enabled. OpenCode’s release build remained pinned to Bun 1.3.14. The newer bundler ordering exposed a runtime import cycle between
filesystem.tsandfilesystem/search.ts, leaving a layer dependency undefined before a provider request.We removed that cycle in #50439. The source fix shipped in v1.18.32; downstream packages need to be rebuilt from v1.18.32 or later to include it. We’re closing this report as fixed. If a build from that source still produces the same stack, please share its Bun build version and relevant log.