Test the local lifecycle cases T3 Code covers
Adds executor tests for restarts, crashes, stops and delegation that the local session lifecycle did not have.
New suites in apps/executor/test/ cover session and turn lifecycle cases for the local, single-Mac setup:
native-agent-restart.test.tsruns the realDeviceNativeAgentsagainst a scripted Codex app-server: restarts during an approval, resuming a saved thread, CLIs that die mid-turn or while idle, and clean shutdown.local-control-lifecycle.test.tscovers double crashes during reconciliation, retries after a restart, stop and steer racing a turn’s end, and old cursors after a version reset.local-delegation.test.tsgains restart cases for parent and child sessions.
The local-control harness moved to test/support/local-records.ts so the suites share it. Tests that exposed real bugs are kept out of this PR and land with their fixes.
Evidence
No screenshot: Backend tests only; nothing changes in the app.