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
Select OpenCode provider with model opencode/deepseek-v4-flash-free
First message works normally (responds in ~9s)
Second message immediately fails with Error: JSON-RPC input closed (~1s)
Model discovery works fine (11 models discovered)
No errors in Obsidian developer console
Analysis (provided by OpenCode CLI during debugging):
The error originates from AcpJsonRpcTransport at line 73038-73040 when the subprocess stdout closes. The ACP protocol itself is stable — directly tested opencode acp from Node.js and multi-turn conversations work perfectly. The subprocess stays alive through initialize, session creation, prompt, cancel, and second prompt.
The issue appears to be on the plugin side: something calls cleanup() or shutdownProcess() between turns, killing the ACP subprocess before the second prompt can be sent.
Environment:
Bug:
Analysis (provided by OpenCode CLI during debugging):
The error originates from AcpJsonRpcTransport at line 73038-73040 when the subprocess stdout closes. The ACP protocol itself is stable — directly tested opencode acp from Node.js and multi-turn conversations work perfectly. The subprocess stays alive through initialize, session creation, prompt, cancel, and second prompt.
The issue appears to be on the plugin side: something calls cleanup() or shutdownProcess() between turns, killing the ACP subprocess before the second prompt can be sent.