GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(server): provider updates restart that provider's idle sessions by incognitojam · Pull Request #1574 · incognitojam/styal Conversation
|
| When the update finishes | What happens |
|---|---|
| Session idle | Released before any waiting turn starts. A turn queued behind the update opens a fresh process on the new version, and the user sees nothing. |
Turn or /compact running (possible with a manual update) |
It finishes on the old process. The session is released about a second after its last turn ends. |
| A turn has opened the session but not reached the provider yet (checkpoint, context handoff) | Kept until the provider accepts or refuses the start, then as above. |
| A checkpoint rollback is using the session | Kept until the rollback is done, then released a second later. |
| The session was still opening when the update finished (manual update) | It starts out retiring: kept for whoever opened it, then released as above. |
| Background work still running (a command, a Codex subagent) | Kept until it ends, checked each minute; work silent for four hours stops counting, as for the idle release. Codex shares one process per instance, so one chat's work keeps every chat on that instance on the old process. |
| A question pending less than an hour | Kept until the question is an hour old (the background updater's cutoff) or the session's normal idle timeout passes, whichever comes first. |
| Another instance on the same install (same installer lock and package) | Same as above. |
| Instance on a different install, such as OpenCode under the same npm lock | Untouched. |
| Update failed, rejected, or already up to date | Nothing released. |
| Installer exited 0 but the new version could not be verified ("unchanged") | Nothing released, deliberately: releasing sessions when the new install may not work could leave no working process at all. |
Review notes:
server.ts.open, holds it until the rollback is done. The turn's hold is taken after its wait on the install gate, so a turn queued behind an update holds nothing and gets a fresh process. The release reads the hold in the same atomic update that removes the session.Relation to upstream pingdotgg#34606 (merged upstream, not yet in the fork): it adds a driver afterUpdate hook that refreshAfterUpdate calls before the version is read back, implemented only for OpenCode to replace OpenCode's own background server. This change acts one step later, in the runner after verification, on styal's own sessions. The two touch different code. Once both are in, an OpenCode update replaces the background server first and then releases styal's sessions on that install.
/compact: an idle session is released at once. A busy one stays live, survives a follow-up turn that opens it within the second and takes over a second to start, then is released one second after that turn ends, with the idle timeout set to an hour. A session opened by a start that is then refused stays live while held and is released a second after the hold ends. Removing the hold check fails both runs; removing the compaction tracking fails the /compact run.Not verified: no live provider update was run, and no real Codex app-server was exercised, so the original failure was not reproduced end to end. The Replay provider has no one-click update and every other provider would run its real installer, so the release path was not driven in the sandbox.
Written by claude/claude-opus-5-5 in styal 🧵.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Upstream divergenceBoth sides are compared with upstream at the in-order tip
Upstream files that start to differ (1)
Upstream files whose difference changes (12)
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Agent context growthAgent context is no longer larger than Agent context is the instructions and MCP tool list styal sends into every user's agent session. Sizes are UTF-8 bytes.
Compared |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
A successful, verified provider update now releases the live sessions of every instance on the same install while the install gate still holds new turns back. A session with a busy turn or background work stays, and retires shortly after it goes idle instead of after the 30-minute idle timeout. Failed, rejected and unverified updates release nothing. Installers that keep one folder per version delete the old one, and a long-lived process such as Codex's shared app-server then fails every turn that spawns a helper from it.
…ecent questions A turn now holds its provider session from before it opens it until the provider accepts or refuses the start, and a retiring session is kept while held. Compaction marks the session busy until its turn ends, like a turn. A retiring session is also kept for a question pending less than an hour, and one kept for background work or a question is checked each minute rather than after the full idle timeout.
…ng one no longer than idle A checkpoint rollback now holds its provider session from before it opens it until it is done, like a turn start. A question keeps a retiring session only until its normal idle timeout. A session whose open is still in flight when its instance retires starts out retiring. The turn-start test now checks that the hold outlasts the provider turn.
a202aec to
e6114c6
Compare
There was an error while loading. Please reload this page.
…nning forever (pingdotgg#33975) Fork adaptation: Keep fork #915 update outcome recording and #1574 post-verification session retirement while applying upstream's settled flag and uninterruptible final-state write. The fork's canary-gated background install and cross-process lock remain unchanged. (cherry picked from commit fe5b51e) Upstream-PR: 33975 Fork-Feature: provider-auto-updates, codex-exit-reason
…updates (pingdotgg#31186) Fork adaptation: The new service keys in `apps/server/src/provider/ProviderInstallationGate.ts` use the fork's package name. Keep fork #1574 retirement and holds: the new installation gate covers the install through verification and retiring replaced sessions, before queued launches resume. The existing ProviderInstallGate still gates turn starts and cross-process locks; upstream's reader/writer gate also protects session opens, Claude per-turn spawns and text generation. Gate each fallback attempt in the fork's provider-status/rate-limit selection (#732/#823/#845/#997, project filtering 500af6b), preserving its chosen instance. Retain #915 command telemetry and child PID recording. Remove a duplicate registry import from the combined tests and include the fork mentioned-time service stub. (cherry picked from commit 9ce9b1f) Upstream-PR: 31186 Fork-Feature: fork-distribution-identity, provider-auto-updates, text-generation-provider-preference, mentioned-time-chips
…nning forever (pingdotgg#33975) Fork adaptation: Keep fork #915 update outcome recording and #1574 post-verification session retirement while applying upstream's settled flag and uninterruptible final-state write. A verified install retires the replaced sessions inside that same uninterruptible write, so an interrupt after the installer succeeded cannot skip it; failed, unchanged and "Already up to date" outcomes retire nothing. The fork's canary-gated background install and cross-process lock remain unchanged. (cherry picked from commit fe5b51e) Upstream-PR: 33975 Fork-Feature: provider-auto-updates, codex-exit-reason
…updates (pingdotgg#31186) Fork adaptation: The new service keys in `apps/server/src/provider/ProviderInstallationGate.ts` use the fork's package name. Keep fork #1574 retirement and holds: the new installation gate covers the install through verification and retiring replaced sessions, before queued launches resume. The existing ProviderInstallGate still gates turn starts and cross-process locks; upstream's reader/writer gate also protects session opens, Claude per-turn spawns and text generation. Gate each fallback attempt in the fork's provider-status/rate-limit selection (#732/#823/#845/#997, project filtering 500af6b), preserving its chosen instance. Retain #915 command telemetry and child PID recording. Remove a duplicate registry import from the combined tests and include the fork mentioned-time service stub. (cherry picked from commit 9ce9b1f) Upstream-PR: 31186 Fork-Feature: fork-distribution-identity, provider-auto-updates, text-generation-provider-preference, mentioned-time-chips
… checkout (pingdotgg#35194) Fork adaptation: The change to CheckpointRollbackService.ts is not taken. Upstream's change makes a file rollback delete a managed worktree folder that still exists but has no .git, and create the checkout again in its place. That deletes the untracked files in the folder, also when the provider session or the checkpoint restore fails after the checkout was created, and a provider process whose working directory is that folder is left in a deleted directory. The fork does not move or delete such a folder, as before; a file restore into it behaves as it did before, which fails for a folder outside any checkout but, for a folder inside another checkout, can reach that enclosing repository; a missing managed worktree folder is still created again, as it already was. Without that case, upstream's reordering of the shared-workspace check changes nothing, so the file keeps the fork's code, which first restores a freed source checkout under its workspace lease. The test takes upstream's rows that still hold: a conversation-only rollback leaves the folder and its untracked file in place, and a shared-workspace rollback rejects before any session is held, so it expects only the cleanup call. Upstream's row where a file rollback replaces the folder instead expects the rollback to reach the file restore and fail there, leaving the folder and its untracked file as they were, for a folder outside any Git checkout. The fork's sparse-checkout rows keep their real worktree (which has a .git file) instead of upstream's .git directory, and the fork's session hold/release calls (from fork #1574) stay in the expected call lists. (cherry picked from commit 1032135) Upstream-PR: 35194 Fork-Feature: worktree-source-checkout
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.