opencode
opencode copied to clipboard
Session hangs after file write tool execution with massive latency spike
Description
Bug Description
When models execute file write tool calls, the write operation completes successfully but control never returns to the session. The session hangs indefinitely.
Model Provider
This happened with big pickle and my llama.cpp server hosing gpt-oss-20b.
Log Highlight
INFO 2025-11-08T00:27:35 +89884ms service=default directory=/home/actellim/Projects/dll-experiment disposing instance
I manually killed it after ~1.5m with ctrl+c.
Expected Behavior
After file write completion, control should return to the session immediately for continued interaction.
Actual Behavior
Session hangs indefinitely after file write, requiring manual termination.
Additional Context
- The file write operation itself succeeds (files are created/modified).
- The issue appears to be in the post-write cleanup or response handling.
- The massive ms timestamp suggests a timeout or deadlock in the cleanup process.
OpenCode version
1.0.39-1.0.44
Steps to reproduce
(I suspect this isn't a problem for everyone so I'm not sure what exactly is going sideways here).
- Start an opencode session.
- Request a model perform a file write operation.
- Session hangs and never returns control to the user
Screenshot and/or share link
Operating System
Ubuntu 24.04
Terminal
Kitty