Skip to content

fix(doctor): tie update badges to their binary and label bundled ACPs#879

Merged
matt2e merged 1 commit into
mainfrom
stop-suggesting-acp-upgrades
Jul 14, 2026
Merged

fix(doctor): tie update badges to their binary and label bundled ACPs#879
matt2e merged 1 commit into
mainfrom
stop-suggesting-acp-upgrades

Conversation

@matt2e

@matt2e matt2e commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Doctor rows previously collected all update badges into one list rendered after both path lines, so a bridge update badge could appear visually attached to the wrong binary. Bundled ACP bridges also displayed their raw app-internal resource path, which read as a user install.

  • Render each update badge directly under its own binary's path line (main under path, bridge under bridgePath) instead of a combined list at the end of the row.
  • Add an optional bundled flag to AgentVersionInfo in the doctor crate. The crate never populates it — the embedding app stamps it after checks run.
  • In the Tauri layer, mark bridge readouts as bundled when their resolved path lives inside the app's bundled ACP tools dir (the same dir apply_bundled_tools_env injects into PATH).
  • Show "ACP bundled with Staged" in place of the internal resource path for bundled bridges.

Testing

  • Unit tests cover stamping only bridges inside the bundled dir and the no-bundled-dir no-op.
  • Pre-push CI hooks passed (crates-fmt, crates-test, crates-lint, differ-ci, staged-ci).

🤖 Generated with Claude Code

Render each update badge directly under the path of the binary it
describes (main CLI vs ACP bridge) instead of stacking both badges
after both paths, so a main-CLI update can no longer read as a nag
about the bridge.

When the resolved bridge lives in the app's bundled ACP tools dir,
show "ACP bundled with Staged" instead of the app-internal resource
path. A new optional `bundled` field on AgentVersionInfo carries this;
the doctor crate never sets it — the app stamps it post-report in
mark_bundled_bridges by prefix-matching bridge paths against the same
dir apply_bundled_tools_env injects into the doctor PATH.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@matt2e
matt2e requested review from baxen and wesbillman as code owners July 14, 2026 00:56
@matt2e
matt2e merged commit 7bdae83 into main Jul 14, 2026
6 checks passed
@matt2e
matt2e deleted the stop-suggesting-acp-upgrades branch July 14, 2026 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant