fix: harden OpenCode ACP bind dispatch

This commit is contained in:
Peter Steinberger
2026-04-25 13:38:00 +01:00
parent 42514156e0
commit dd78b7f773
19 changed files with 348 additions and 31 deletions

View File

@@ -497,6 +497,12 @@ describe("scripts/test-projects changed-target routing", () => {
});
describe("scripts/test-projects local heavy-check lock", () => {
const localCheckEnv = () => ({
...process.env,
OPENCLAW_TEST_HEAVY_CHECK_LOCK_HELD: undefined,
OPENCLAW_TEST_PROJECTS_FORCE_LOCK: undefined,
});
it("skips the lock for a single scoped tooling run", () => {
expect(
shouldAcquireLocalHeavyCheckLock(
@@ -507,7 +513,7 @@ describe("scripts/test-projects local heavy-check lock", () => {
watchMode: false,
},
],
process.env,
localCheckEnv(),
),
).toBe(false);
});
@@ -522,7 +528,7 @@ describe("scripts/test-projects local heavy-check lock", () => {
watchMode: false,
},
],
process.env,
localCheckEnv(),
),
).toBe(true);
});
@@ -538,7 +544,7 @@ describe("scripts/test-projects local heavy-check lock", () => {
},
],
{
...process.env,
...localCheckEnv(),
OPENCLAW_TEST_HEAVY_CHECK_LOCK_HELD: "1",
},
),
@@ -556,7 +562,7 @@ describe("scripts/test-projects local heavy-check lock", () => {
},
],
{
...process.env,
...localCheckEnv(),
OPENCLAW_TEST_PROJECTS_FORCE_LOCK: "1",
},
),