Skip to content

The open-source app everyone uses to manage agents at work

test(runner): use the production close budget for settled callbacks (#15720)

Devin Foley712671068e15
diff --git a/packages/paperclip-runner/src/live/runnerd-codex-transport.test.ts b/packages/paperclip-runner/src/live/runnerd-codex-transport.test.ts
index fd3c6da214..a024eb20d9 100644
--- a/packages/paperclip-runner/src/live/runnerd-codex-transport.test.ts
+++ b/packages/paperclip-runner/src/live/runnerd-codex-transport.test.ts
@@ -896,7 +896,10 @@ it.each(["after_budget", "within_budget", "interrupted_within_budget", "persiste
"--split-event-prefix-count", "2", "--split-event-suffix-count", "2",
),
stateDirectory,
- closeGraceMs: 5_000,
+ // Successful cases use the production close budget for the real
+ // semantic-result, stop, drain and suspension round trips. Keep the
+ // shorter deadline only for intentionally unfinishable callbacks.
+ ...(settles ? {} : { closeGraceMs: 5_000 }),
controlPlaneRegistration: async (authority) => {
core = authority;
await authority.start();