Repository navigation
Windows desktop local sessions can hang/terminate on exact-file tasks (glob NotFoundError / undici terminated) #26180
Description
Description
On Windows Desktop 1.14.40, local sessions against a repo that contains both CLAUDE.md and .claude/* can repeatedly hang or fail even when the user gives an exact absolute file path.
In my case the target file was:
D:\BNS\BunkerProject\TableTools\XLSX\Slot.xlsx
Observed behavior inside OpenCode was inconsistent but always stayed inside the planner/tool/runtime path instead of completing the requested file task:
- auto-read
CLAUDE.md - auto-read
.claude/system.md - auto-read
.claude/spec.md - earlier runs tried
skill(table-tools) - later runs called
glob(**/Slot.xlsx)even though the user had already supplied the exact path - later runs bypassed Excel MCP and started shell-level ZIP/XML parsing of the xlsx internals
- failures then surfaced as one of:
service=server error=NotFoundError failedAbortError: AbortedAI_APICallErrorwithECONNRESETTypeError: terminatedfromundici/TLSSocket.onHttpSocketClose
This does not look like a model-only problem. The same task pattern is stable outside OpenCode with the same model family, while OpenCode keeps failing in intermediate planning/runtime layers.
Plugins
No plugin appears required to reproduce this exact bug.
The machine had historical plugin load failures from oh-my-opencode / opencode-antigravity-auth, but the reproductions above still occurred after disabling those problematic paths and after restarting the app.
OpenCode version
OpenCode Desktop 1.14.40
Steps to reproduce
- On Windows Desktop, open a repo that contains a root
CLAUDE.mdplus.claude/system.mdand.claude/spec.md. - Start a local session with
openai/gpt-5.4. - Ask OpenCode to operate on an exact file path, for example:
D:\BNS\BunkerProject\TableTools\XLSX\Slot.xlsx - Make the request explicitly say not to inherit old context and to inspect the current file contents first.
- Observe that OpenCode still auto-loads repo instruction files and may choose extra discovery/planning steps such as
skill(...),glob(...), or shell detours instead of using the provided path directly. - After one or more of those detours, observe one of these failures:
service=server error=NotFoundError failedAbortError: AbortedAI_APICallErrorwithECONNRESETTypeError: terminatedinundici
Screenshot and/or share link
Relevant local evidence from logs and sessions:
-
Session
ses_1fdec0041ffexMS1ywSKsx9oGn- read
.claude/system.md - read
.claude/spec.md - then
glob(path=D:\\BNS\\BunkerProject, pattern=**/Slot.xlsx) - corresponding sidecar log contained only repeated:
service=server error=NotFoundError failed
- read
-
Session
ses_1fde8c7f6ffepAajQn17yEYH12- successfully ran local shell checks against
Slot.xlsx - then sidecar log ended with:
TypeError: terminated- stack includes
Fetch.onAborted/undici/TLSSocket.onHttpSocketClose
- successfully ran local shell checks against
-
Earlier log also showed:
AI_APICallError- cause
ECONNRESET - URL
https://api.openai.com/v1/responses - model
openai/gpt-5.4
These were observed in:
C:\Users\<user>\.local\share\opencode\log\2026-05-07T105425.logC:\Users\<user>\.local\share\opencode\log\2026-05-07T105838.logC:\Users\<user>\.local\share\opencode\log\2026-05-07T034524.log
Operating System
Windows 11 x64
Terminal
OpenCode Desktop embedded local runtime on Windows
Expected behavior
When the user already provides an exact absolute file path, OpenCode should:
- use that path directly,
- avoid unnecessary
glob/skill/ repo-spec detours, - avoid inflating the request with large incompatible repo instruction files unless actually needed,
- complete the session or fail with a clear actionable error, instead of hanging or terminating mid-stream.
Actual behavior
Windows desktop local sessions repeatedly hang or fail before the intended file task completes, with the failure point moving between planner/tool/runtime layers.
Related issue
This may overlap partly with #21979 on the stream termination side, but this report also includes the Windows local exact-path / glob / repo auto-injection behavior that appears earlier in the chain.
Activity
github-actions commentedon May 7, 2026
This issue doesn't fully meet our contributing guidelines.
What needs to be fixed:
Please edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue may be related to existing issues. Please check:
TypeError: terminated, undici, stream dying before terminal event) — overlapping symptoms on the LLM stream failure sideIf you believe this was flagged incorrectly, please let a maintainer know.
github-actions commentedon May 7, 2026
Thank you for updating the issue! It now meets our contributing guidelines — the bug report is clear, includes specific reproduction steps, version info, and observed error details. We appreciate you taking the time to improve it.
SAKURAAUA commentedon May 7, 2026
补充说明:这是我在真实使用 OpenCode Desktop 时持续遇到的问题,已经明显影响正常工作流,并不是单次遇到后草率上报。
在我已经提供明确文件路径的情况下,OpenCode 仍会额外走文件发现/仓库指令注入/中间工具步骤,最后卡住或 terminated。上面的内容是基于本机排查整理出的复现和证据。
最近甚至刚开始会话就会报错。
感谢opencode团队开发的软件!不管怎样软件很棒。
SAKURAAUA commentedon May 7, 2026
Silver2Yv commentedon May 9, 2026
+1
github-actions commentedon Jul 9, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.