Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions bench/run.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,11 @@ async function runAgent(task, arm, wt) {
const pid = proxy && sig !== 'SIGKILL' ? innerPid(child.pid) : null;
try { if (pid) process.kill(pid, sig); else child.kill(sig); } catch {}
};
/* An agent that exits before it reads stdin closes the pipe, and the
write fails with EPIPE. Its exit code and output are recorded
below, so the failed write is not the run's error. Unhandled, it
ended the harness (seen with the mock agent on Windows). */
child.stdin.on('error', () => {});
child.stdin.end(SCRIPTED[agent] ? '' : PROMPT(task));
const transcript = [];
const { m, onEvent } = createMeter({ wt, gold: task.gold, stopAt });
Expand Down
Loading