Skip to content

Recover interrupted provider turns after server restarts#9

Open
tim-smart wants to merge 3 commits into
t3code/session-dashboard-boardfrom
t3code/investigate-thread-resume
Open

Recover interrupted provider turns after server restarts#9
tim-smart wants to merge 3 commits into
t3code/session-dashboard-boardfrom
t3code/investigate-thread-resume

Conversation

@tim-smart

Copy link
Copy Markdown
Owner

Summary

  • Persist restart-recovery markers for active provider turns during shutdown and resume them safely on startup.
  • Reconcile pending and interrupted turns without replaying the original user message or repeating completed recoveries.
  • Isolate recovery failures, validate persisted provider state, and record recovery outcomes through metrics and activity events.
  • Add focused coverage for restart recovery, disabled or missing providers, archived threads, and multi-runtime persistence.

Testing

  • Not run (PR content generated from the supplied commit and diff).

@tim-smart
tim-smart force-pushed the t3code/investigate-thread-resume branch 3 times, most recently from f7912f9 to 035cc97 Compare July 23, 2026 21:12
@tim-smart
tim-smart force-pushed the t3code/investigate-thread-resume branch from 035cc97 to 20d5585 Compare July 24, 2026 00:44
@tim-smart
tim-smart force-pushed the t3code/investigate-thread-resume branch 2 times, most recently from d46e5bc to 40077d0 Compare July 24, 2026 03:34
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XXL labels Jul 24, 2026
@tim-smart
tim-smart changed the base branch from main to t3code/session-dashboard-board July 24, 2026 03:34
@tim-smart
tim-smart force-pushed the t3code/session-dashboard-board branch from c992a50 to 5395c7f Compare July 24, 2026 08:52
@tim-smart
tim-smart force-pushed the t3code/investigate-thread-resume branch from 40077d0 to 083a72d Compare July 24, 2026 08:52
@github-actions github-actions Bot added size:XL and removed size:XXL labels Jul 24, 2026
@github-actions
github-actions Bot force-pushed the t3code/investigate-thread-resume branch from 083a72d to af4fd7f Compare July 24, 2026 09:40
@github-actions
github-actions Bot force-pushed the t3code/session-dashboard-board branch 2 times, most recently from 49cbba0 to db299c1 Compare July 24, 2026 14:12
@github-actions
github-actions Bot force-pushed the t3code/investigate-thread-resume branch from af4fd7f to 2e4ca57 Compare July 24, 2026 14:12
- Reconcile pending and interrupted turns during startup
- Persist restart markers and clear them after recovery begins
- Track recovery outcomes and isolate per-thread failures
- Scope the event-forwarding fiber to the session lifecycle
- Cover events emitted after the start-session caller exits
- Clear stale recovery bindings when the projected turn is already settled
- Preserve pending turn-start recovery unless restart recovery actually begins
@tim-smart
tim-smart force-pushed the t3code/investigate-thread-resume branch from 2e4ca57 to b181832 Compare July 25, 2026 10:26
@tim-smart
tim-smart force-pushed the t3code/session-dashboard-board branch from db299c1 to d9f8e4d Compare July 25, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant