Skip to content

Fix hibernation cleanup, CLI flag loops, font escaping, and URI/Taildrop bugs - #19969

Merged
dhh merged 1 commit into
quattrofrom
audit/bin-desktop-bugfixes
Nov 24, 2026
Merged

dhh merged 1 commit into
quattrofrom
audit/bin-desktop-bugfixes

Conversation

@dhh

@dhh dhh commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Fixes five concrete bugs across desktop CLI helpers:

  • omarchy-hibernation-remove: Remove /etc/limine-entry-tool.d/resume.conf and /var/lib/omarchy/hibernation-resume-rebuild alongside /etc/mkinitcpio.conf.d/omarchy_resume.conf before rebuilding initramfs, preventing stale resume= / resume_offset= parameters from persisting after removal or blocking fresh offsets on re-setup.
  • CLI option loops (omarchy-clipboard-open, omarchy-clipboard-paste-text, omarchy-theme-color): Validate argument count before shift 2 on --history-index and --file so a missing option value exits 1 instead of looping infinitely without set -e. Also pass -- before typed text in omarchy-clipboard-paste-text so leading-dash strings are not parsed as wtype flags.
  • omarchy-font-set: Escape sed and quote characters in font names for Alacritty, Ghostty, and Foot, add --follow-symlinks to preserve symlinked configs, and XML-escape font family names written into ~/.config/fontconfig/fonts.conf.
  • omarchy-transcode: Percent-encode file:// URI path segments when copying transcoded files to the clipboard as text/uri-list.
  • omarchy-tailscale-receive: Treat broken symlinks (-L) as taken names in claim_path so delivery advances to a suffixed name instead of aborting, and NUL-delimit find output in deliver.

Verified by Codex

@greptile-apps

greptile-apps Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new blocking issue was found.

Summary

The PR fixes cleanup and input handling across desktop helpers.

  • Hibernation removal clears old resume settings before rebuilding initramfs.
  • Font names stay intact in terminal and fontconfig settings.
  • Taildrop saves files past broken links and keeps unusual names intact.
  • Clipboard and theme commands stop when an option value is missing.
  • Clipboard paste types leading-dash text instead of treating it as an option.
  • Transcoded files copy as valid file links even with special characters.

No new actionable issues were found. dhh accepted the separate clipboard regression tests intentionally to avoid conflicts with PR #19966. Greptile agreed with that explanation.

Reviews (2) · Last reviewed commit: "Fix hibernation cleanup, CLI flag loops,..." · Reviewed by Greptile

Comment thread test/shell.d/desktop-helpers-test.sh Resolved
@omarchybot omarchybot added the bug Something isn't working label Nov 23, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Codex High read the diff, surrounding helpers and callers, the existing reviews, and the overlapping pull requests. This is not a duplicate of a whole pull request: it also contains separate CLI argument and Taildrop fixes. The hibernation cleanup overlaps #8199 and #13584, font escaping overlaps #12457, terminal symlink preservation overlaps #14343 and #7309, and transcode URI encoding overlaps #13360. The rebuild-marker cleanup and additional font quote escaping are differences worth preserving when those changes are reconciled.

The comparison needs the maintainer's decision. Opus 5.5 High could not review it because its weekly allowance is exhausted, confirmed with the reviewer availability check. No second opinion on the code comparison was obtained. I did not run the reproduction or test suite, push any changes, or mark this revision verified. The allocated worker was destroyed unused. This remains open, waiting on the maintainer to resolve the overlapping work before verification continues.

@dhh
dhh merged commit 4574aa8 into quattro Nov 24, 2026
3 of 4 checks passed
@dhh
dhh deleted the audit/bin-desktop-bugfixes branch November 24, 2026 06:44
dhh added a commit that referenced this pull request Nov 24, 2026
…troArch commands (#20002)

* Preserve symlinked user configs in text-size, glass, Sunshine, and RetroArch commands

Extracted from #14343 and #7309 on top of #19969.

Co-authored-by: Ali Yahya <[email protected]>
Co-authored-by: Caleb White <[email protected]>

* Write through symlinked shell.toml in omarchy-display-text-size

Co-authored-by: Ali Yahya <[email protected]>
Co-authored-by: Caleb White <[email protected]>

---------

Co-authored-by: Ali Yahya <[email protected]>
Co-authored-by: Caleb White <[email protected]>
dhh added a commit that referenced this pull request Nov 24, 2026
…20000)

* Clean up stale hibernation resume drop-ins and keep setup retryable

Extracted from #8199 and #13584 on top of #19969.

Co-authored-by: JustNak <[email protected]>
Co-authored-by: Daniel Moore <[email protected]>

* Keep hibernation removal retryable when only rebuild marker remains

* Guard empty resume device, keep failed lookups non-fatal, and clean partial setups

Co-authored-by: JustNak <[email protected]>
Co-authored-by: Daniel Moore <[email protected]>

* Keep resume.conf removal in factory reset so failed lookup leaves no stale offset

Co-authored-by: JustNak <[email protected]>
Co-authored-by: Daniel Moore <[email protected]>

---------

Co-authored-by: JustNak <[email protected]>
Co-authored-by: Daniel Moore <[email protected]>
cursor Bot pushed a commit to mark-groves/omarchy that referenced this pull request Nov 24, 2026
cursor Bot pushed a commit to mark-groves/omarchy that referenced this pull request Nov 24, 2026
…troArch commands (omacom#20002)

* Preserve symlinked user configs in text-size, glass, Sunshine, and RetroArch commands

Extracted from omacom#14343 and omacom#7309 on top of omacom#19969.

Co-authored-by: Ali Yahya <[email protected]>
Co-authored-by: Caleb White <[email protected]>

* Write through symlinked shell.toml in omarchy-display-text-size

Co-authored-by: Ali Yahya <[email protected]>
Co-authored-by: Caleb White <[email protected]>

---------

Co-authored-by: Ali Yahya <[email protected]>
Co-authored-by: Caleb White <[email protected]>
cursor Bot pushed a commit to mark-groves/omarchy that referenced this pull request Nov 24, 2026
…macom#20000)

* Clean up stale hibernation resume drop-ins and keep setup retryable

Extracted from omacom#8199 and omacom#13584 on top of omacom#19969.

Co-authored-by: JustNak <[email protected]>
Co-authored-by: Daniel Moore <[email protected]>

* Keep hibernation removal retryable when only rebuild marker remains

* Guard empty resume device, keep failed lookups non-fatal, and clean partial setups

Co-authored-by: JustNak <[email protected]>
Co-authored-by: Daniel Moore <[email protected]>

* Keep resume.conf removal in factory reset so failed lookup leaves no stale offset

Co-authored-by: JustNak <[email protected]>
Co-authored-by: Daniel Moore <[email protected]>

---------

Co-authored-by: JustNak <[email protected]>
Co-authored-by: Daniel Moore <[email protected]>
@emirb emirb added this to the 4.6.0 milestone Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants