Environment
- opencode-mem: v2.18.0
- OpenCode: v1.17.16
- Provider: opencode-go (
opencode-go/deepseek-v4-flash)
- OS: macOS
Symptom
When session goes idle, auto-capture fails with toast:
Auto Capture Failed — Unable to connect. Is the computer able to access the url?
The user_prompts table shows capture_attempts=3 for all uncaptured prompts — all 3 retries exhausted.
Investigation
The plugin's generateStructuredOutput() function makes raw HTTP fetch calls to:
These return 404 Not Found on OpenCode v1.17.16.
The plugin intentionally bypasses the @opencode-ai/sdk v2 client due to SDK class layout shifts across releases (see Issue #110), but the raw HTTP API routes it falls back to are not exposed by the current OpenCode server.
Attempted Workarounds
| Config |
Result |
opencodeProvider: "opencode-go" + Go subscription models |
❌ auto-capture fails |
opencodeProvider: "opencode" + standard models |
❌ same failure |
Manual API: memoryApiUrl: "https://api.opencode.ai" in OpenAI-compatible format |
❌ returns HTTP 200 with body "Not Found" |
| Manual API: GitHub Models as backend |
✅ auto-capture works, but uses a different provider |
Note
Using Go subscription models (opencode-go/*) for auto-capture is one of the primary use cases. Manual memory tools (add/search/list) work fine, but automatic background capture is completely broken. It would be great if a compatible API route or a fallback SDK-based approach could be provided in a future release.
Environment
opencode-go/deepseek-v4-flash)Symptom
When session goes idle, auto-capture fails with toast:
The
user_promptstable showscapture_attempts=3for all uncaptured prompts — all 3 retries exhausted.Investigation
The plugin's
generateStructuredOutput()function makes raw HTTPfetchcalls to:These return
404 Not Foundon OpenCode v1.17.16.The plugin intentionally bypasses the
@opencode-ai/sdkv2 client due to SDK class layout shifts across releases (see Issue #110), but the raw HTTP API routes it falls back to are not exposed by the current OpenCode server.Attempted Workarounds
opencodeProvider: "opencode-go"+ Go subscription modelsopencodeProvider: "opencode"+ standard modelsmemoryApiUrl: "https://api.opencode.ai"in OpenAI-compatible format"Not Found"Note
Using Go subscription models (
opencode-go/*) for auto-capture is one of the primary use cases. Manualmemorytools (add/search/list) work fine, but automatic background capture is completely broken. It would be great if a compatible API route or a fallback SDK-based approach could be provided in a future release.