Repository navigation
fix(runner): track Windows session trees with Job Objects - #349
Draft
techotaku39 wants to merge 1 commit into
Draft
techotaku39 wants to merge 1 commit into
techotaku39 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
StopSessionwhile protecting shared session roots. Record exit evidence by PID and process start marker only after the entire Job is empty.ProbeSessionExit. Keep contained generations unconfirmed when evidence is missing, and retain guarded cleanup for legacy sessions without Job containment.Validation
bun typecheck,bun run build, andbun run --cwd cli build:exe:allinonepassed on Windows 10 x64.StopSession, and legacy cleanup. Fromhub/,bun test src/sync/syncEngineArchiveSession.test.ts src/sync/rpcGateway.test.ts: 80 passed. Four of the five new Windows Archive cases failed on the dependency baseline; all five passed with this change.Invoke-HapiTaskPlaywright.ps1 -Name windows-job-containment-2660 -Suite Root terminal-wrap-fidelity.spec.ts --retries=0: 3 passed. Isolated Full acceptance with real Codex sessions also verified that the first Archive returned HTTP 200 after an unexpected wrapper exit, without a priorStopSession.hapi.exeacceptance verified graceful Runner shutdown, forced Runner termination, and restart. Both original sessions retained their process identity and Job membership. The restarted Runner stopped the recovered target Job and recorded full-tree exit; Archive succeeded and the other session stayed online.Related Issues
Refs tiann#2660. Depends on tiann#2659. Related: tiann#2035.
AI Disclosure
Implementation and validation were assisted by OpenAI Codex (GPT-6).