Overview
Archived historical project. The repository is read-only. opencode-plugin-fixes was never published to npm, so it is not a valid OpenCode package entry.opencode-plugin-fixes is a small dependency-free source bundle for OpenCode. It explores four boring but expensive tool-call failure modes: malformed question arguments, over-broad MCP object coercion, DCP compress range payload shape failures, and repeated question prompts while the user is still answering.
What It Includes
- FixQuestionSchema - normalizes stringified questions, bare question objects, and stringified options before OpenCode validates the question tool call.
- FixMcpNestedObject - parses only selected schema-like MCP fields such as metadata, arguments, and queries, while leaving JSON-looking file bodies and user content untouched.
- FixDcpCompressFlat - accepts flat DCP range payloads such as { topic, startId, endId, summary }, parses stringified native range arrays, and restores DCP's native content: [{ startId, endId, summary }] shape.
- BlockRepeatQuestion - holds a per-session lock so (no answer) placeholders do not trigger retry spam before the user replies.
Why It Exists
Historical Status
Verification
Bash
npm test
npm pack --dry-run











