Skip to content

Auto-Capture fails: HTTP session API endpoints not found (OpenCode v1.17.16) #162

Description

@Syuryuuki

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions