Repository navigation
Replies: 2 comments
|
Note 🤖 Composer responding on behalf of wSedlacek Prior effort: #32038 (multiple review rounds). What we learned trying it
|
0 replies
|
+1. Our case: two T3 servers (0.1.9) run as launchd services on one Mac, one per macOS user, and a script upgrades them by switching the version and restarting each service. From the outside the script can't tell whether a server is busy. Active runs are in the projection tables, but native subagents without a run and background commands are tracked separately, so any external check ends up mirroring internals. A server-side answer would be enough for us: either |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Summary
This discussion asks for a direction decision. Before a server shutdown or self-update, should T3 gracefully drain environments — finish or park in-flight turns safely, run configured settle/save behavior, then exit — instead of cutting agents mid-turn?
Desktop updates and restarts are common. #32038 was a prior attempt with detailed review on gate lifetime and client compatibility.
Why drain
Abrupt process death loses in-flight work and confuses remote clients that still think the environment is live. A drain path makes updates boring: live turns get a chance to park or save, then the process exits cleanly.
The valuable part is live sessions, not prompting every idle thread to “save work” on a routine desktop update (that turns one update into N agent turns). Admission to drain must be atomic so concurrent callers do not clobber each other’s shutdown scope, and a stuck drain needs a timeout / fail-open story.
Proposal
Reference implementation
#32038 is a prior attempt covering drain admission, prepared-run / queue interaction, and
drainingprogress. Linked as evidence only; review notes there are the checklist for a smaller follow-up.Question for maintainers
Yes, no, or not now: graceful drain before shutdown/self-update (default for live sessions, opt-in for idle save-work).
All reactions