Skip to content

Fix e2e tmux cleanup to match by session name#50

Closed
selfcontained wants to merge 1 commit into
mainfrom
fix/dispatch-dev-focus
Closed

Fix e2e tmux cleanup to match by session name#50
selfcontained wants to merge 1 commit into
mainfrom
fix/dispatch-dev-focus

Conversation

@selfcontained

Copy link
Copy Markdown
Owner

Summary

  • The previous DB-query approach failed because tests delete agents via the API before the cleanup trap runs, leaving the agents table empty
  • Now matches e2e sessions by their name pattern (dispatch_agt_*e2e-agent*) which is reliable regardless of DB state

Test plan

  • npm run test:e2e — 23/23 pass, zero orphaned sessions after

🤖 Generated with Claude Code

The previous approach queried the test DB for agent IDs, but by then
the tests had already deleted the agents via the API. Matching session
names by the e2e-agent prefix is reliable regardless of DB state.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@selfcontained
selfcontained deleted the fix/dispatch-dev-focus branch April 9, 2026 03:01
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.

1 participant