Skip to content

fix: agentflare update never verifies the swap either: same stale-install bug as dev-install, unfixed on the twin path - #795

Merged
getappz merged 1 commit into
masterfrom
task/627-agentflare-update-never-verifies-the-swa
Sep 22, 2026
Merged

getappz merged 1 commit into
masterfrom
task/627-agentflare-update-never-verifies-the-swa

Conversation

@getappz

@getappz getappz commented Sep 22, 2026

Copy link
Copy Markdown
Owner

Status: no new work needed — this task was already resolved, but by a different PR.

What I found: The fix was already implemented on this branch (commit 215620c) exactly per the ask — verify_installed/digest moved from dev_install/mod.rs into swap.rs, update::run now calls swap::verify_installed after Ok(SwapOutcome::Installed), with a regression test mirroring dev_install's. cargo fmt --check passes clean.

But: this branch's PR (#794) was opened and then closed minutes later by the bot as a duplicate of PR #792 (fix/update-verify-swap), which implements the same fix plus the "nice-to-have" dedupe (collapses the two SwapOutcome match blocks into a shared install_verified/InstallOutcome helper) — the more complete version item 627 asked for. #792 is still open, CI is green, and CodeRabbit flagged one outstanding risk there (a recovery message that could be wrong on verification failure after a successful swap) that still needs a push.

Concern / recommendation: Opening another new PR from this worktree would just create a second duplicate. The live thread to watch is #792 — it needs that CodeRabbit finding addressed before merge. I did not touch #792 or push anything further from here; let me know if you want me to go fix that finding on fix/update-verify-swap instead.


Opened by claude-code on flared:c997d745ae66 for item #627 via agentflare.

…nstall (item 627)

verify_installed/digest moved from dev_install::run into the shared
update::swap module so agentflare update's self-upgrade path calls the
same byte-level check dev-install already runs after replace_binary
(item 624) instead of trusting SwapOutcome::Installed on its own.

Agentflare-Agent: claude-code
Agentflare-Branch: task/627-agentflare-update-never-verifies-the-swa
Agentflare-Item: 627
Agentflare-Session: f0fc45e8-94ad-4f09-b663-89b425da180d
@coderabbitai

coderabbitai Bot commented Sep 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 18 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 60 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository: getappz/agentflare/.coderabbit.yaml

Review profile: CHILL

Plan: Essentials

Run ID: 8a1013d7-c002-4c88-b89c-aa41bbbcd57b

📥 Commits

Reviewing files that changed from the base of the PR and between 46cfc3b and 215620c.

📒 Files selected for processing (3)
  • src/dev_install/mod.rs
  • src/update/mod.rs
  • src/update/swap.rs

Comment @coderabbitai help to get the list of available commands.

@getappz
getappz merged commit 0ac4c1f into master Sep 22, 2026
17 checks passed
@getappz
getappz deleted the task/627-agentflare-update-never-verifies-the-swa branch September 22, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant