mirror of
https://github.com/0xrsydn/idx-cli.git
synced 2026-11-07 01:35:36 +00:00
test(agents): opencode answers only through the idx tools
opencode kept its built-in tools, so it could route around the server under test: on published 0.3.1 it answered a quote from web search, and on the live `changes` case it queried the ownership SQLite file with bash and timed out. Deny every tool but `idx_*`, as Claude, pi, and Hermes already are. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V3syn2fN2LNo5pvTSqc6eh
This commit is contained in:
parent
7ebf63ed42
commit
855ec0cdc3
2 changed files with 5 additions and 3 deletions
|
|
@ -276,7 +276,8 @@ setup_opencode() {
|
|||
mkdir -p "$work/opencode/cwd"
|
||||
jq -n --argjson s "$server_json" \
|
||||
'{"$schema": "https://opencode.ai/config.json",
|
||||
mcp: {idx: {type: "local", command: ([$s.command] + $s.args), environment: $s.env, enabled: true}}}' \
|
||||
mcp: {idx: {type: "local", command: ([$s.command] + $s.args), environment: $s.env, enabled: true}},
|
||||
permission: {"*": "deny", "idx_*": "allow"}}' \
|
||||
> "$work/opencode/cwd/opencode.json"
|
||||
}
|
||||
run_opencode() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue