feat: keep replay session active on request
Merged
TH
2mo ago+494+494+012345678901234567890123456789-70-70-01234567890123456789
Summary
Add replay --keep-session and SDK keepSession support for native .ad replay.
- Native close-less scripts already retain their session; this option suppresses exactly an authored terminal
closeso an agent can continue interactively. - Interior closes retain authored behavior, and the existing replay-repair lifecycle shares the same terminal-close seam.
testand Maestro YAML reject the option because those runtimes own cleanup/lifecycle.- Scope: 16 files across contracts, CLI projection/help, replay runtime/tests, flag classification, and website docs. No platform backend changes.
- SkillGym was not updated because that harness is absent on current
main; command help and user docs carry the planning guidance.
Validation
pnpm check(5,105 unit tests and 35 smoke tests passed; 3 live lanes skipped by environment selectors)- Focused replay/runtime and CLI projection tests pass within the full suite
- Counterfactual removal of terminal-close suppression fails the dedicated runtime regression test
- No live-device run: the change only suppresses daemon dispatch of a terminal lifecycle action and does not alter platform behavior