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
Write tool SSE timeout with claude-opus-4.6 via GitHub Copilot when generating long markdown files #17578
When using claude-opus-4.6 via GitHub Copilot provider, the Write tool consistently
times out with "Error: SSE read timed out" when attempting to create markdown files
of moderate length (~150-200 lines).
The pattern is highly reproducible: the agent generates the file content, shows
"Preparing write...", and after ~2 minutes the operation aborts with the SSE timeout.
This appears to be the same root cause as #17574, #17318, and #17307 but specifically
affecting the GitHub Copilot provider (not local models).
Aggravating factor: Pyright LSP diagnostics
The project contains Python files with unresolved imports (virtual environment not
activated in the opencode context). Each Write operation triggers Pyright to re-analyze
the entire project, generating hundreds of lines of LSP diagnostics that are appended
to the tool response. This significantly increases the response payload size and
contributes to exceeding the SSE timeout.
Even writing a .md file (which Pyright should not analyze) triggers a full project
re-scan, suggesting the LSP diagnostics are not scoped to the file being written.
Plugins
context7 MCP server (unrelated to the issue)
OpenCode version
1.2.26
Steps to reproduce
Open a project with Python files that have unresolved imports (e.g., packages
installed in a venv that opencode doesn't activate)
Use claude-opus-4.6 via GitHub Copilot provider
Build up a moderate conversation context (~10-15 tool calls of reading files)
Ask the agent to write a markdown file of ~150+ lines using the Write tool
Observe "Preparing write..." followed by "Tool execution aborted - Error: SSE
read timed out" after ~2 minutes
The issue is 100% reproducible after step 4. Retrying the same Write call fails
identically every time.
Workaround attempted
Created pyrightconfig.json excluding docs/ directory -> no effect (LSP still triggers)
The Write tool should complete successfully for files of any reasonable size.
Ideally, LSP diagnostics should not be included in the tool response payload
(or should be streamed separately) to avoid inflating the SSE response.
Screenshot
~ Preparing write...
Tool execution aborted
|
| Error: SSE read timed out
|
Operating System
Linux (Arch-based), kernel 6.x, 32GB RAM, 16 cores, no resource constraints.
Activity
gauravyad69 commentedon Mar 16, 2026
got the same issue
lenuse commentedon Mar 16, 2026
OpenCode 1.2.25 use Qwen3.5-397B-A17B, got the same issue
buithehien1991 commentedon Mar 17, 2026
+1, me too
opencode: drop chunkTimeout, add root pyrightconfig for LSP-payload fix
opencode: drop chunkTimeout, add root pyrightconfig for LSP-payload fix
github-actions commentedon Jul 7, 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.
docs(failure-modes): document sse read timeouts and fix chunktimeout …