You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
1.18.30 (Homebrew, macOS arm64): every prompt fails with "failed to send prompt" — TypeError 'a.name' in SystemPrompt.environment #48903
opencode 1.18.30, installed via Homebrew (anomalyco/tap, bottle opencode--1.18.30.arm64_tahoe)
macOS, arm64 (Apple Silicon / Tahoe)
Global config ~/.config/opencode/opencode.json has no references field (only $schema, plugin, lsp, mcp, model, model_small, provider)
Upgraded with brew upgrade; the in-app autoupdater also reports method=brew target=1.18.30
Bug
Every prompt fails immediately with Failed to send prompt. Unexpected server error. Check server logs for details. The request never reaches the provider — it crashes client-side in SystemPrompt.environment, before any model call.
Reproduces on a fresh session, first message, in any directory (confirmed in 4 unrelated dirs across 2 runs), so it is not project- or config-specific.
Log (~/.local/share/opencode/log/opencode.log)
level=ERROR message=failed ref=err_1c01250f
error="TypeError: undefined is not an object (evaluating 'a.name')"
at resolve (/$bunfs/root/chunk-36bwgd4p.js:2:1659)
...
at SystemPrompt.environment (/$bunfs/root/chunk-y88jw4qv.js:50:13096)
at SessionPrompt.run
at SessionRunState.ensureRunning
at SessionPrompt.loop
at SessionPrompt.prompt
Reacted by boreBoar, Dieter Oberkofler, Somraj Saha, Danny Thuering, La, Max Kammler, Timo Webler, Maksim Posysoev, Tommaso Desiderio, fabiansawatzki1234 and 13 more
Activity
github-actions commentedon Sep 14, 2026
This issue might be a duplicate of existing issues. Please check:
TypeError: undefined is not an object (evaluating 'a.name')inSystemPrompt.environmenton 1.18.30SystemPrompt.environmentTypeError on 1.18.30, extensively isolated (clean HOME, clean CWD, multiple models)Arkghem commentedon Sep 15, 2026
Duplicate of #48372 Close this to keep the issue in one place.