mirror of
https://github.com/garrytan/gstack.git
synced 2026-05-05 05:05:08 +02:00
45df469909
5th paid run was 7/8 pass — only context-restore-list-delegates still
flaked, passing 1-of-3 attempts. Same root cause as the 4 tests fixed
in 0d7d3899: the agent sometimes stops after the Skill call with
result.output == "", so /context-save list/i regex finds nothing.
Switched the 3 remaining string-matching tests to fullOutputSurface():
- context-restore-list-delegates (the actual flake)
- context-save-then-restore-roundtrip (magic marker match)
- context-restore-fragment-match (FRAGMATCH markers)
All 6 string-matching tests now use the same broad assertion surface.
Only 2 tests still inspect result.output directly (context-save-routing
via files.length and skillCalls — no string match needed).
Expected outcome: 8/8 stable pass.