Repository navigation
fix(updates): separate cli updates and shorten worker restarts - #1082
Merged
Merged
Conversation
Keep provider CLI installs in Settings. Batch native session checks when applying archived thread snapshots on worker reconnect. Fixes: #882
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
The Updates panel on phone, web and desktop now counts and installs Canopy updates only. Check, Update all and Retry no longer perform incidental work on provider CLIs. Agent CLIs keep their own check and install controls in Settings, including on linked workers.
The gateway retires CLI steps when reading an older saved run. It rotates the run ID when indices change so an older Retry cannot select a different target. New clients send distinct bulk action names, which also prevent an older gateway from starting a mixed update.
Worker reconnects used to start native session probes for every archived thread. The observed Linux worker took over three minutes to exit after the executable was staged and another three minutes to hand over after reconnect. Its final process applied configuration within a second. The worker now retains completed archive fences across connections and shares native session inventories across a batch. It still retries failed cleanup and closes resources belonging to the archived threads.
Fixes: #882
Related: #1079
Verification
Copy audit
Removed the sentence promising CLI updates after Canopy updates. The phone and web compatibility message directs the user to update Canopy on the gateway. CLI check errors stay with the CLI controls in Settings. Checked the status and action labels at both browser widths and in the Android sheet. No outstanding copy findings.