Skip to content

Update installed plugins with Omarchy - #7136

Open
crmne wants to merge 1 commit into
omacom:quattrofrom
crmne:cp/update-installed-plugins
Open

crmne wants to merge 1 commit into
omacom:quattrofrom
crmne:cp/update-installed-plugins

Conversation

@crmne

@crmne crmne commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

What changes

Git-managed shell plugins only update through a separate omarchy plugin update, so they fall behind the Omarchy they run on. omarchy update now runs the existing plugin updater when any plugin in ~/.config/omarchy/plugins is a git checkout.

It runs after the boot check, once sudo is released (plugins need none) and while Stay Awake still holds. An interactive update keeps the updater's per-plugin diff and confirmation; omarchy update -y passes --yes. If a plugin fails to fetch, fast-forward or validate, the update warns with how to retry (omarchy plugin update) and finishes as before. Plugins copied in without git add no step.

Rebased onto current quattro, where the update was restructured; the step moved from after the AUR packages to after the boot check accordingly.

Verification

  • test/shell.d/update-sequence-test.sh gains four cases: only copied plugins runs no plugin step; with a git-managed plugin, -y runs omarchy-plugin-update --yes right after omarchy-update-boot; a confirmed update runs it with no arguments, so the person reviews each diff; a failing plugin update still runs every later step and prints the retry command. The test now sets its own HOME, so the plugins installed on the machine running it don't change the expected steps.
  • Without the bin/omarchy-update change the new test fails (not ok - an update does not update git-managed plugins after the boot check, missing omarchy-plugin-update); with it, the whole file passes.
  • Passed locally: every test/shell.d/update-*-test.sh, the security and channel-switch tests that exercise omarchy-update, I18N_STRUCTURAL=1 test/shell.d/i18n-test.sh and scripts/i18n-sync.py extract-scan --check for the new English update.pluginsFailed string.
  • Not checked: a real omarchy update against live plugin remotes. The updater itself (omarchy-plugin-update) is unchanged.

Screenshots

No visible change: it adds a step to the terminal update flow, and the shell and panels render the same.

Copilot AI balanced review requested due to automatic review settings August 16, 2026 12:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds plugin update support to the main update flow, including unattended behavior, and extends the shell test to validate the new step and its arguments.

Changes:

  • Insert omarchy-plugin-update into the update sequence, gated on presence of Git-based plugins.
  • Pass --yes to plugin updates when running unattended (-y) and continue on failure with a warning.
  • Update the update-sequence shell test to include the new step, set HOME, and assert recorded args.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

File Description
test/shell.d/update-sequence-test.sh Extends sequence/argument assertions and sets up a plugin .git fixture under HOME.
bin/omarchy-update Runs omarchy-plugin-update when Git-based plugins are detected; adds unattended --yes behavior and non-fatal failure handling.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread test/shell.d/update-sequence-test.sh Resolved
Comment thread test/shell.d/update-sequence-test.sh Resolved
Copilot AI review requested due to automatic review settings August 16, 2026 12:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 2 changed files in this pull request and generated no new comments.

Suppressed comments (3)

test/shell.d/update-sequence-test.sh:94

  • These assertions became significantly less precise after adding the args= field to the stub output: they only check for unattended=… followed by a space, and don’t assert the expected args= field at all. This can allow false positives if the line format changes further or additional fields are introduced. Consider matching the full expected format for these steps (e.g., include args= explicitly and anchor the end of line), or switch to grep -F with an exact expected line when arguments are not expected.
grep -q '^omarchy-update-system-pkgs unattended=1 ' "$test_tmp/steps" ||
  fail "-y does not mark the update unattended"

test/shell.d/update-sequence-test.sh:101

  • These assertions became significantly less precise after adding the args= field to the stub output: they only check for unattended=… followed by a space, and don’t assert the expected args= field at all. This can allow false positives if the line format changes further or additional fields are introduced. Consider matching the full expected format for these steps (e.g., include args= explicitly and anchor the end of line), or switch to grep -F with an exact expected line when arguments are not expected.
grep -q '^omarchy-update-system-pkgs unattended= ' "$test_tmp/steps" ||
  fail "an update a person confirmed is treated as unattended"

test/shell.d/update-sequence-test.sh:39

  • Logging args via $* loses information (e.g., it flattens arguments and makes it ambiguous if any argument contains spaces). Since the test now depends on argument logging, consider logging arguments in a more robust, parseable way (for example, iterating over \"$@\" and printing each arg in a shell-escaped form such as %q, or emitting a delimiter-separated format). This reduces test fragility and makes failures easier to diagnose.
printf '%s unattended=%s args=%s\n' "${0##*/}" "${OMARCHY_UPDATE_UNATTENDED:-}" "$*" >>"$STEP_LOG"

Copilot AI review requested due to automatic review settings August 16, 2026 12:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 2 changed files in this pull request and generated no new comments.

Git-managed shell plugins needed a separate `omarchy plugin update`, so
they fell behind the Omarchy they run on. `omarchy update` now runs the
plugin updater once sudo is released and while Stay Awake still holds.
An interactive update shows each plugin's diff and asks; `-y` passes
`--yes`. A plugin that fails to update warns with how to retry and does
not stop the rest of the update.
@crmne
crmne force-pushed the cp/update-installed-plugins branch from ebbc811 to a6347d0 Compare November 29, 2026 20:37
@greptile-apps

greptile-apps Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Adds git-managed plugins to omarchy update.

  • Omarchy updates git-managed plugins as part of the system update.

No actionable issues found. Review was based on code inspection; no live update was run.

Reviews (1) · Last reviewed commit: "Update installed plugins with Omarchy" · Reviewed by Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants