From e55d31ff79595e2fab1168ef26aa59987a2ac5ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?La=C3=A9rcio=20de=20Sousa?= Date: Thu, 12 Nov 2026 23:55:32 -0300 Subject: [PATCH] fix(plugins): Agents' time cursor, and no pinning through a dev link Agents is pinned to ae84509, with the meters' time cursor and the elapsed-time tooltips; 5758af9 predates them. The pin task checked out the ref through ~/.config/omarchy/plugins/ even when that is a link to a plugin's working copy (its `just link`), detaching the developer's repository back to the pin. A linked plugin directory is now left on whatever it has checked out. Co-Authored-By: Claude Opus 5.5 --- group_vars/all/main.yml | 7 ++++--- playbooks/user/plugins.yml | 10 +++++++++- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/group_vars/all/main.yml b/group_vars/all/main.yml index 4075594..a099f2d 100644 --- a/group_vars/all/main.yml +++ b/group_vars/all/main.yml @@ -1132,12 +1132,13 @@ omarchy_plugins: # omarchy.agents bar panel (AI agents' usage, limits and pace). MIT. Its # manifest declares clonedFrom omarchy.agents, so enabling it makes the # shell disable the built-in (PluginRegistry.setEnabled): one Agents icon, - # in the built-in's section. No tags yet: pinned to a commit of main. - # Collectors are Python stdlib only. + # in the built-in's section. No tags yet: pinned to a commit of main + # (with the meters' time cursor and elapsed-time tooltips). Collectors + # are Python stdlib only. - name: Agents repo: https://github.com/lbssousa/agents-omarchy.git id: lbssousa.agents - ref: 5758af97e4615fe1677120fb1a5b29e15240ec59 + ref: ae845098d0d404dad68ea1065aca399795643d18 section: right packages: - python diff --git a/playbooks/user/plugins.yml b/playbooks/user/plugins.yml index 560c96f..0b06edc 100644 --- a/playbooks/user/plugins.yml +++ b/playbooks/user/plugins.yml @@ -149,11 +149,19 @@ # shell, the pinned ref is the record of what was reviewed. `omarchy # plugin update` fast-forwards a pinned clone off its tag (a detached # HEAD still takes the fast-forward) and the next run pins it back; - # bump `ref` to move forward on purpose. + # bump `ref` to move forward on purpose. A plugin directory that is a + # link is a working copy put there by hand (a plugin's own `just + # link`): it is left on whatever its developer checked out, since a + # checkout through the link would move their repository back to the + # pin. ansible.builtin.shell: cmd: | set -euo pipefail dir={{ (omarchy_plugins_dir ~ '/' ~ item.id) | quote }} + if [ -L "$dir" ]; then + echo "linked to $(readlink -f "$dir"), left as it is" + exit 0 + fi if ! target=$(git -C "$dir" rev-parse --verify --quiet {{ item.ref | quote }}^{commit}); then git -C "$dir" fetch --quiet origin {{ item.ref | quote }} target=$(git -C "$dir" rev-parse --verify {{ item.ref | quote }}^{commit})