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
Commit 6737be5
Browse filesBrowse the repository at this point in the historyBrowse files
fix(opencode): resolve MCP env placeholders and unbreak the bash tool for local models
container.json's mcpServers.<name>.env can reference `${VAR_NAME}` placeholders
so secrets aren't duplicated into the DB-persisted config — the real value
lives in the container's own process env instead. Nothing ever resolved
these; every provider passed the env map straight through to the MCP
subprocess, so it received the literal unexpanded string as its credential.
Proton mail auth was failing with "no such user" — not a signed-out account,
just proton-mcp logging in with the literal text "${PROTON_BRIDGE_PASSWORD}".
Resolve placeholders in agent-runner's index.ts, the one point every
provider's mcpServers config flows through before spawn.
OpenCode's bash tool schema requires a `description` field that local/Ollama
models (Qwen here) don't reliably emit, failing every bash call with a Zod
validation error before the command runs. Confirmed against upstream
(anomalyco/opencode#13146, #24003) — both closed NOT_PLANNED, since
OpenCode's maintainers consider the schema correct and the gap model-specific,
so no version bump fixes it. Added container/opencode-notes.md to the
opencode provider's instructions set so the model is explicitly told to
always include it.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KmVSSumuigQ8QyLM4z8Nym
The `bash` tool's schema requires a `description` parameter (a short, 5-10 word summary of what the command does) alongside `command` — even though it is not always shown to you as required. Omitting it fails the call with a schema validation error before the command ever runs.
4
+
5
+
Correct: `bash(command="ls -la", description="List current directory files")`
6
+
Wrong: `bash(command="ls -la")` — fails with `description: Invalid input: expected string, received undefined`
7
+
8
+
Always include `description` on every `bash` call.
0 commit comments