mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-28 20:21:50 +01:00
test(runner): keep v1 integrity fixtures free of v2 goal commands
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
b48689cb00
commit
4f3935ed52
1 file changed
+7
-1
@@ -641,7 +641,13 @@ describe("Codex protocol integrity propagation", () => {
|
||||
runtimeIdentity: { processId: process.pid },
|
||||
}),
|
||||
);
|
||||
await commandResult("session.goal.get", { goal: null });
|
||||
// This synthetic runner deliberately negotiates PRP v1. The transport
|
||||
// reports goals as unsupported locally and must never send it a v2
|
||||
// session.goal.get command during session admission.
|
||||
await vi.waitFor(() => expect(admitted).toHaveBeenCalledTimes(1));
|
||||
expect(core.store.state.commands.some(
|
||||
(command) => command.type === "session.goal.get",
|
||||
)).toBe(false);
|
||||
if (scenario !== "integrity-fault") {
|
||||
await vi.waitFor(() =>
|
||||
expect(
|
||||
|
||||
Reference in new issue
Block a user