session: record owning process and detect exited sessions

main

Commit

Soph3mo ago

State.Owner stores the proclive.Identity captured at turn start. OwnerLiveness/OwnerExited report when an ACTIVE session's agent process has gone away (clean exit, crash, kill, terminal close, reboot) without a SessionStop hook firing, falling back to the StuckActiveThreshold timeout when liveness is Unknown (no owner, cross-host, unsupported platform).

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com Entire-Checkpoint: f99451d13eb9

Checkpoints

Code Review: CLI Process-Liveness Detection Plan

CodexGPT-5.5
View session
Checkpoint 1

Fix Session Owner Tracking and Finalization

Claude CodeOpus 4.8[1m]
View session
Checkpoint 1