1888d4280e
renewLeases renewed whenever a session existed and PaneCapture succeeded, so a pane that opened and never accepted a prompt held its lease forever. That is the mechanism behind the July stuck task: the launch failed and nothing ever let go. Renewal now needs the agent to be busy, or the pane capture to differ from the one recorded at the previous renewal. The first renewal has no baseline, so it records one and passes; the next must show movement. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>