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
@@ -209,7 +209,7 @@ describe("code mode execute", () => {
expect(description).toContain("- zeta (1 tool)\n")
expect(description).toContain("tools.zeta.only_tool(input: { topic: string }): Promise<unknown>")
expect(description).toContain("tools.$codemode.search(")
expect(description).toContain("1. Find a tool (skip when it is already listed below)")
expect(description).toContain("1. If the exact signature is not listed below, first search:")
expect(description).toContain(
'- Browse one namespace: `await tools.$codemode.search({ query: "", namespace: "<name>" })`.',
)