feat(opencode): gate execute tool behind code mode flag (#35185)

This commit is contained in:
Aiden Cline
2026-07-03 13:41:15 -05:00
committed by GitHub
parent 96d53c6716
commit ed6dc879be
10 changed files with 174 additions and 15 deletions
@@ -182,7 +182,8 @@ describe("code mode integration (real MCP server)", () => {
expect(description).toContain("// Add two numbers and return the structured sum")
expect(description).not.toContain("$codemode")
expect(description).toContain("## Workflow")
expect(description).toContain("`const res = await tools.<namespace>.<tool>(input)`")
expect(description).toContain("Do not infer or normalize tool names")
expect(description).toContain("bracket notation and quotes are part of the path")
expect(description).not.toContain("total_count")
})