You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8bd44f2
Browse filesBrowse the repository at this point in the historyBrowse files
fix(server): keep provider sessions alive during background agent work
The provider session reaper stops sessions after 30 min of lastSeenAt
inactivity. Background agent work (dynamic workflows, subagents) keeps
running after the foreground turn settles, but the adapter session goes
"ready" with no active turn and nothing refreshes lastSeenAt — so the
reaper tears the session down mid-workflow, and the in-flight background
orchestration is lost.
Refresh lastSeenAt from runtime activity: ProviderService now bumps the
binding's last_seen_at when the adapter emits runtime events (e.g.
task.progress from background subagents), throttled per thread so an
event burst is at most one lightweight write per window. A new targeted
touchLastSeen on the runtime repository / session directory updates only
last_seen_at, and only for non-stopped rows so a reaped session is never
resurrected.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
0 commit comments