Repository navigation
Conversation
An update replaced the binary but left Claude Code / Codex / opencode configs from the first setup until someone ran setup again. After a successful standalone install, refresh only agents that are already wired (never wire up new ones), then restart. doctor still reports out-of-date wiring for hand refresh. Fixes reason-machines#182
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.
Fixes #182 (option 2 from the issue).
What changed
After an auto-update replaces the binary, the agent wiring (Claude Code / Codex / opencode configs) stayed at whatever the first
setupwrote until someone ran setup again by hand.Now, after a successful standalone install, the updater refreshes the wiring for agents that are already wired, then restarts. It never wires up an agent that wasn't set up before.
doctorstill reports out-of-date wiring, so a hand refresh stays possible.src/daemon/update.rs: re-apply wiring for already-wired agents after a successful install, before restartsrc/setup.rs: small helper so the updater can refresh existing wiring onlyDESIGN.md: note the new update behaviourTesting
On this branch (rebased on
main5442c8b), rustc 1.99.1:cargo fmt --check: cleancargo clippy --all-targets -- -D warnings: cleancargo test: 343 + 5 + 2 passed, 0 failedI haven't run a real end-to-end auto-update against a released binary.
Written with help from an AI coding assistant; I reviewed the change and ran the checks above.