Skip to content

fix(harness): recover stalled and failed agent runs - #142

Merged
akemmanuel merged 3 commits into
masterfrom
fix/idempotent-follow-up-removal
Aug 6, 2026
Merged

fix(harness): recover stalled and failed agent runs#142
akemmanuel merged 3 commits into
masterfrom
fix/idempotent-follow-up-removal

Conversation

@touch2be

@touch2be touch2be commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • make pending follow-up removal idempotent when dispatch wins the UI race
  • abort unresolved agent-tool work promptly and return connected-tool failures to the model instead of failing the run
  • keep shell timeout and force-kill timers alive so background process groups cannot stall sessions indefinitely
  • classify provider quota, network, connection, and WebSocket failures as actionable retryable errors

Regression coverage

  • repeated follow-up removal
  • unavailable connected tool continuation
  • background shell process timeout
  • provider limit and transport error normalization

Test plan

  • pnpm vp test packages/harness/src/harness.test.ts packages/harness/src/agent-tools.integration.test.ts packages/harness/src/models/transport-contracts.test.ts
  • pnpm vp check

@touch2be touch2be changed the title fix(harness): make follow-up removal idempotent fix(harness): recover stalled and failed agent runs Aug 6, 2026
@akemmanuel
akemmanuel merged commit 00068b1 into master Aug 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants