diff --git a/opencode.json b/opencode.json index 09749a0..7f024a5 100644 --- a/opencode.json +++ b/opencode.json @@ -8,6 +8,9 @@ } }, "model": "deepseek/deepseek-v4-flash", + "experimental": { + "continue_loop_on_deny": true + }, "server": { "hostname": "127.0.0.1", "port": 4096 diff --git a/tests/runtime/opencodeConfig.test.ts b/tests/runtime/opencodeConfig.test.ts new file mode 100644 index 0000000..7debf74 --- /dev/null +++ b/tests/runtime/opencodeConfig.test.ts @@ -0,0 +1,9 @@ +import { describe, expect, test } from "bun:test"; + +describe("OpenCode runtime config", () => { + test("continues the agent loop after a question or permission is denied", async () => { + const config = await Bun.file(new URL("../../opencode.json", import.meta.url)).json(); + + expect(config.experimental?.continue_loop_on_deny).toBe(true); + }); +});