fix(agent): prevented consuming legacy steering queue during mid-batch interrupts

- Stopped calling the consuming `getSteeringMessages` getter during mid-batch interrupt polls to prevent stranding or dropping messages before they reach the injection boundary.
- Skip subsequent steering checks in the poll loop once an interrupt has already triggered.
- Added a regression test to ensure legacy steering remains queued until the injection boundary when no non-consuming peek exists.
This commit is contained in:
can1357
2026-07-02 03:34:14 +02:00
parent dfc6706032
commit 21f5728ef8
4 changed files with 80 additions and 13 deletions
@@ -137,7 +137,6 @@ describe("executeBash", () => {
expect(result.output.trim()).toBe(tempDir);
});
it("honors symlinked cwd requests in persistent shells", async () => {
if (process.platform === "win32") {
return;