Skip to content
Source
Sign inSign up
pingdotgg/t3code

Provider loss during update can leave turns permanently running or starting #5750

Closedmikeyperes(GitHub profile, opens in a new tab) opened this issue 0 comments

Problem

When a T3 server update or restart stops a provider subprocess, persisted projection state can remain running or starting even though provider inventory has no live session. The UI then reports “Working” indefinitely. Messages can be durably accepted but never receive a provider response.

A second race exists in the in-app updater: a turn can start while the candidate is downloading, after the updater's initial idle decision but before process handoff.

Expected behavior

  • Refuse an update whenever foreground or background work exists, including a second check immediately before handoff.
  • On startup, reconcile projected active work against actual provider inventory.
  • During normal runtime, automatically interrupt a confirmed missing running provider.
  • Automatically clear a provider that remains absent while a session is starting, after a bounded startup grace period.
  • Do not interrupt a transient inventory gap or a genuinely live provider.
  • Let external update automation reject releases that remove this recovery contract.

Proposed fix

The tested source change implements those guarantees and exposes a versioned provider-lifecycle recovery capability through the service preflight. A focused PR follows.

  1. juliusmarminge closed this

Sign in to join this conversation.