Skip to content

fix: herdr swap_pane_up + aarch64 kernel restart (#10231 #10232) - #12956

Closed
kvnloo wants to merge 8 commits into
omacom:quattrofrom
kvnloo:salvage/t4-chessing-20260922
Closed

kvnloo wants to merge 8 commits into
omacom:quattrofrom
kvnloo:salvage/t4-chessing-20260922

Conversation

@kvnloo

@kvnloo kvnloo commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Re-cut of two leftovers still missing on quattro after #11555 closed unmerged.

Cherry-picks unique hunks from:

Not in this PR

Why still needed

On quattro @ d3cfd53:

  • config/herdr/config.toml still binds close_workspace to prefix+shift+k (blocks swap_pane_up); herdr-keybindings-test.sh absent
  • bin/omarchy-update-restart still scans vmlinuz only; update-restart-kernel-test.sh absent

Test plan

  • ./test/shell — herdr-keybindings-test.sh, update-restart-kernel-test.sh
  • herdr: swap_pane_up reachable; close_workspace not on prefix+shift+k
  • aarch64: kernels without vmlinuz still detected for restart

Source heads: close #10231 #10232 as salvaged after this lands.

@kvnloo kvnloo changed the title salvage(chessing-leftovers): cluster (#10231 #10232) fix: herdr swap_pane_up + aarch64 kernel restart (#10231 #10232) Sep 22, 2026
@kvnloo

kvnloo commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

Verified against current quattro (fail-then-pass on scoped shell tests). Ready for maintainer review.

Scoped: herdr-keybindings-test, update-restart-kernel-test.

@llstrk

llstrk commented Sep 22, 2026

Copy link
Copy Markdown

Verified: No important actionable defect identified in the scoped review of b5a50dc0. The modules-directory check handles the intended no-vmlinuz layout, and the terminal configuration separates workspace closing from pane swapping.

The actual restart entry point produced these results with synthetic releases and package-ownership responses:

Modules-directory state Kernel reboot prompt
Running release owned, no vmlinuz No
Only a different release owned Yes
Running release present but unowned Yes

The shortcut change is explicit in the configuration:

                       Baseline                 PR
close_workspace        prefix+shift+k           prefix+shift+x
swap_pane_up           displaced default        prefix+shift+k

The updated configuration loaded without binding diagnostics; a deliberately duplicated chord produced the expected diagnostic. Existing user configurations are not automatically migrated by this PR.


Review information

Test scope: Targeted restart-script checks, both new shell tests, configuration loading and source inspection. Real pacman directory ownership was checked on one x86_64 installation; ARM layouts were modeled, not tested on hardware. No interactive shortcut dispatch, full shell suite or actual kernel upgrade was exercised.

Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review.

Automated AI review: Astra Medium initial inspection and synthesis, independent Opus 5.5 High and GPT 6 Sol Xhigh technical reviews, followed by verification against targeted evidence and a separate Astra Medium editorial check.

@omarchybot omarchybot added the bug Something isn't working label Sep 27, 2026
omarchybot and others added 2 commits October 3, 2026 00:34
Resolves the conflict in bin/omarchy-update-restart: quattro wrapped the kernel check in the --services-only guard, and the modules-directory loop moves inside it unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rectory

linux-omarchy-headers, linux-t2-headers and linux-aarch64-headers all install into /usr/lib/modules/<release>/build, so the release directory stays package-owned after its kernel package is gone. Asking pacman who owns the directory then suppresses the reboot prompt whenever the running release's headers outlive its kernel. modules.order is written by modules_install in every one of those kernel packages and by no headers package, so it identifies the kernel without depending on vmlinuz.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Codex Medium <noreply@openai.com>
@omarchybot omarchybot added verified Omarchy Triage has verified that this issue is ready for final review and removed bug Something isn't working labels Oct 2, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed at 866dc92, with quattro merged in, on a disposable Omarchy worker (x86_64, herdr 0.8.2). Both bugs reproduce on quattro, both are fixed on this head, and each new test fails with its fix reverted. I pushed two commits to the branch, described below. Codex Medium reviewed the diff in two rounds and compared it with #10231 and #10232; where it agrees with me, it could read my reasoning, so the agreement is not guaranteed to be independent.

Kernel reboot prompt (#10048). On the worker, with the running kernel's vmlinuz moved aside so the modules directory looks like linux-aarch64's, quattro asks "Linux kernel has been updated. Reboot?" and this head does not. With the stock layout, neither asks.

The original check, "some package owns /usr/lib/modules/<release>/", was too broad. linux-omarchy-headers (and linux-t2-headers, linux-aarch64-headers) also owns that directory through build/, so when headers outlive their kernel, the prompt was suppressed. I showed that on the worker by removing linux-omarchy and keeping its headers: quattro asked to reboot, the earlier head did not. Commit 866dc92 asks who owns modules.order instead. Every one of those kernel packages writes it with modules_install, no headers package ships it, and it does not depend on vmlinuz. The commit also adds a test case for leftover headers. Codex Medium raised the same headers problem in its first round, checked the packaging for each kernel against modules.order, and found the second round clean.

herdr prefix+shift+k (#10062). I drove herdr in a pty with a top/bottom split and two workspaces:

  • With herdr's own defaults, ctrl+space K swaps the focused pane up.
  • With quattro's config, it closes the whole workspace without asking.
  • With this head's config, it swaps the pane, and prefix+shift+x closes the workspace. With two tabs open, prefix+shift+x closes the workspace rather than the tab, so herdr's default close_tab on that chord does not fire.

Two things are left for the maintainer:

  • Existing installs keep the old binding (Codex Medium found the migration that shows it). migrations/1786273938.sh only seeds ~/.config/herdr/config.toml when it is missing, so the fix reaches new installs and anyone who runs omarchy-refresh-herdr, nobody else.
  • The config's header says it mirrors Omarchy's tmux config, where prefix K is kill-session. When rename_pane hit the same kind of clash, this file moved the herdr action, not the tmux chord. This PR does the reverse.

Also checked. The merge of quattro only conflicted in bin/omarchy-update-restart. The loop now sits inside quattro's --services-only guard, unchanged. update-restart-phases-test.sh, herdr-functions-test.sh and theme-set-herdr-machines-test.sh pass. The full shell suite and ./test/cli fail the same way on quattro as on this head: 8 shell test files and one test/cli check, none touched here.

Unsettled classification. I classified this as a bug; Codex Medium classified it as an enhancement. It carries no class label until the maintainer decides.

Competing PRs. #10232 and #10231 are the same author's originals, still open. This PR now has the better kernel fix: #10232 still has the directory check. The herdr half is identical to #10231. Splitting this PR into its two fixes would make each easier to review and revert.

Waiting on the maintainer: the classification, the herdr chord, and whether existing configs need a migration.

@greptile-apps

greptile-apps Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The current changes appear safe to merge.

Summary

Separates herdr’s workspace-close and pane-swap shortcuts.

  • Herdr keeps workspace closing and pane swapping on separate keys.

The current diff contains no kernel-restart changes.

Reviews (3) · Last reviewed commit: "chore(herdr): drop redundant config-valu..." · Reviewed by Greptile

@birkskyum

Copy link
Copy Markdown
Contributor

The aarch64 kernel restart part is on quattro since #14447, which checks modules.builtin, so that hunk and its test can go. The herdr swap_pane_up fix is still needed on its own.

Reconcile origin quattro while preserving the original omacom#12956 history.
Keep only the herdr close_workspace/swap_pane_up fix and its regression,
per maintainer review; kernel restart detection already landed through
birkskyum's omacom#14447 and is intentionally absent from this branch's diff.

Source: omacom#10231. No desktop-runtime acceptance claimed.
Comment thread test/shell.d/herdr-keybindings-test.sh Resolved
The keybinding change is declarative; the shell test only rereads the
same TOML values and conflicts with AGENTS.md's explicit test rules.
Keep the actual keybinding correction and all newer upstream config.

Review: omacom#12956 (Greptile P2).
@omarchybot

Copy link
Copy Markdown
Collaborator

Re-read at edf9fe1. With the kernel half dropped, as @birkskyum pointed out (#14447 already covers it on quattro), this pull request is now only the herdr keymap change: close_workspace moves from prefix+shift+k to prefix+shift+x, and swap_pane_up gets prefix+shift+k back.

Nothing was run for this pass. The two models classifying it disagree, so it has no class label. Opus 5.5 reads it as an enhancement. prefix+shift+k for closing a workspace mirrors bind K kill-session in Omarchy's config/tmux/tmux.conf, so moving it changes on purpose a binding that tmux users already know. Codex Medium reads it as a bug fix, because the binding shadows one of herdr's own defaults. Which reading applies decides whether this is worked as a fix, so it waits on the maintainer.

#10231, an older pull request of yours against quattro, makes exactly this config/herdr/config.toml change, comments included, so the maintainer will want to pick one of the two.

@kvnloo

kvnloo commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

Closing as a duplicate of my older #10231, which makes the identical config/herdr/config.toml change. The aarch64 kernel half is already on quattro via #14447. Prepared by Claude Opus 5.5 via Hermes Agent; reviewed under kvnloo's account.

@kvnloo kvnloo closed this Nov 24, 2026
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.

4 participants