fix(agents): mark a run failed when its process dies
- The agent run queue retries a run once, then sends it to a dead-letter queue. Its consumer marks the run failed, so the pull request, the Agents tab and a waiting CI job see that it ended instead of waiting forever.
5 files changed · +55 −15
apps/backend/agent-runs.ts+26 −10
apps/backend/index.ts+1 −1
apps/backend/test/agent-runs.test.ts+20 −1
workers/main.ts+6 −2
wrangler.jsonc+2 −1