Conversation
PR SummaryLow Risk Overview Introduces Written by Cursor Bugbot for commit c54d1ea. Configure here. |
There was a problem hiding this comment.
Pull request overview
This PR addresses flakiness in OpenCode-driven e2e tests by adding a synchronization point that waits for interactive sessions to fully complete their turn-end hook work before proceeding with user-driven file edits/commits.
Changes:
- Added a new e2e test helper that polls
.git/entire-sessions/*.jsonuntil no session is in"active"phase (or times out). - Updated an interactive e2e test to call the new helper after the agent prompt completes, mitigating a TUI-prompt-vs-hook-execution race.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| e2e/testutil/assertions.go | Adds WaitForSessionIdle to poll session state files and block until sessions are no longer active. |
| e2e/tests/existing_files_test.go | Uses WaitForSessionIdle to stabilize TestInteractiveContentOverlapRevertNewFile before overwriting and committing. |
Entire-Checkpoint: f2cf04c438d8
https://github.com/entireio/cli/actions/runs/22437583923/job/64971337382