fix: continue agent after denied interactions

This commit is contained in:
2026-07-28 18:08:08 +08:00
parent 9286ca67e9
commit a37f06352c
2 changed files with 12 additions and 0 deletions
+3
View File
@@ -8,6 +8,9 @@
}
},
"model": "deepseek/deepseek-v4-flash",
"experimental": {
"continue_loop_on_deny": true
},
"server": {
"hostname": "127.0.0.1",
"port": 4096
+9
View File
@@ -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);
});
});