e2e: share the run-capture/deadline-wrap block across agent runners

Commit

Soph2mo ago

codex, copilot-cli, and gemini repeated the exit-code extraction and prompt-deadline wrapping after cmd.Run(); extract runCapture into agents/agent.go. The other runners don't take a prompt context and never wrapped the deadline, so they keep their direct handling. Verified with the Vogon canary suite (59/59).

Co-Authored-By: Claude Fable 5 noreply@anthropic.com Entire-Checkpoint: ab0d1ee8ae62

Checkpoints

/goal simplify this repo, make sure to de-slop it continue until you are happy, make sure to backfill tests and validate any significant change. The output of this should be a PR with green CI, review

Claude CodeFable 5
View session
Checkpoint 1