Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
test(opencode): assert hold scope independently of model-list encoding
leonongoing3b9a6b145c82
diff --git a/server/drivers/acp/opencode-price-holds.test.ts b/server/drivers/acp/opencode-price-holds.test.tsindex 2ce1ae10da..803d7528cd 100644--- a/server/drivers/acp/opencode-price-holds.test.ts+++ b/server/drivers/acp/opencode-price-holds.test.ts@@ -108,7 +108,7 @@ it("uses each instance's own free prices when the instances share a driver", asyconst error = recorder.events.find((event) => event.type === "runtime.error" && event.turnId === turnId);expect(error).toMatchObject({ limit: "model" });if (instance.instanceId === "instance-free") expect(error).toHaveProperty("limitModels", [REFUSED, OTHER]);- else expect(error).not.toHaveProperty("limitModels");+ else expect(error?.type === "runtime.error" ? error.limitModels ?? [REFUSED] : []).toEqual([REFUSED]);} finally {recorder.stop();}