Repository navigation
Commit cd1ae7a
Zoo (VP)
fix(e2e-mock): replace sequenceIndex with predicate match for abandon parent fixture
The abandon-subtask parent fixture used userMessage + sequenceIndex: 0 for
matching. sequenceIndex shares a global counter (DEFAULT_TEST_ID) across all
e2e tests, making it fragile against stream interleaving from prior tests'
delayed mock responses. When the counter was stale or a delayed stream from
the previous test interleaved, the wrong fixture (interrupt parent
completion) could match, returning attempt_completion with new_task-style
arguments, causing a tool-call parse failure and 30s timeout.
Replace with a predicate match using lastUserMessageContains +
SUBTASK_RESULT_INJECTION exclusion, mirroring the pattern used by the
regular and fast parent fixtures. This eliminates the sequenceIndex
dependency and ensures the fixture only matches the parent's initial
request, not resume turns.1 parent 9218429 commit cd1ae7a
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
568 | 574 | | |
569 | 575 | | |
570 | | - | |
571 | | - | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
572 | 579 | | |
573 | 580 | | |
574 | 581 | | |
| |||
0 commit comments