Skip to content

fix(updates): leave externally managed components out of update all - #159

Merged
nixuuu merged 1 commit into
devfrom
fix/update-all-external
Nov 5, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/update-all-external

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 5, 2026

Copy link
Copy Markdown
Member

On a gateway running from the Docker image, "Update all" planned the gateway and then failed with "[failed_precondition] Managed externally — Managed externally…", leaving "Updates stopped" in the popover.

Cause: #99 added Docker and other externally managed components to the update-all plan, then rejected them when it ran.

Fix

  • The plan: Update all includes only what Canopy updates itself.
    • It skips externally managed gateways (Docker), external workers and CLIs installed by external managers.
    • Skipped items never fail the run.
    • An empty plan is refused without recording a failed run.
    • An old failure caused only by an external gateway is hidden once nothing is actionable.
  • The UI:
    • Update all appears only when something is actionable.
    • External items show "Managed externally" instead of "Available" or "External". Their info icon gives the steps, e.g. pull the new image tag, then recreate the gateway container.
    • When only external updates exist, the header says "Updates available outside Canopy".
  • Error text: the duplicated "Managed externally — Managed externally" wording is fixed where it is built.

Tests: gateway integration tests for the planner.

  • External gateway, external CLIs and one Canopy-managed worker: only the worker updates, and the run succeeds.
  • Only external items: the run is refused and no failure is recorded.

Copy audit (docs/copy.md §8):

  • "Available" and "External" became "Managed externally" on external items.
  • The summary for external-only updates is "Updates available outside Canopy".
  • Update instructions are imperative.
  • No fact is repeated.

Fixes: #99

@nixuuu
nixuuu merged commit 3c97062 into dev Nov 5, 2026
9 checks passed
@nixuuu
nixuuu deleted the fix/update-all-external branch November 5, 2026 09:30
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