Repository navigation
Conversation
omarchy-font-set and omarchy-display-text-size edited the alacritty, Ghostty and foot configs with plain sed -i, which replaces a symlinked config (a dotfiles checkout) with a regular file. Kitty's edits already pass --follow-symlinks; use it for the other three terminals too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Fvz7Kw8Ege88ZXUBR5MR7C
[Medium impact] The change is limited to font and text-size edits for three terminal configs. The command changes appear safe, but the test must follow the repository's requirement to extend the existing test before merging. Findings
SummaryBoth font commands now preserve symlinked Alacritty, Ghostty, and Foot configs by adding
Reviews (2) · Last reviewed commit: "Merge quattro into fix/terminal-config-s..." · Reviewed by Greptile |
chessing234
left a comment
There was a problem hiding this comment.
everything seems fine, ready to merge.
|
Reviewed at 6dc71b8 and verified on a fresh Omarchy worker: the fix works, and nothing in the diff needs changing. Reproduction. I wrote a separate check rather than relying on the included test. It links the stock alacritty, Ghostty and foot configs from a dotfiles directory, then runs Suite. Second opinion. Codex at medium effort reviewed the diff separately. It found no defects and agreed the change is proportionate and covers every edit to these three configs. It can read this session's working notes, so its agreement is not guaranteed to be independent. Overlaps, for the maintainer. #15060 removes the Ghostty Waiting on the maintainer. |
|
Just reporting I had the same issue and wanted to land a PR to fix it. I'm not opening a new issue as Claude has found this one! Are you guys going to merge it? :) |
From omacom#14343: link the stock alacritty, Ghostty and foot configs from a dotfiles directory, run the real omarchy-font-set and omarchy-display-text-size, and check the links survive and the edits land in their targets. sed-follow-symlinks-test.sh only checks the flag is spelled; this fails on quattro for the reason the fix exists. It extends the test that already drives both commands rather than adding a file. Co-Authored-By: Ali Yahya <alive@outlast.me> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Codex Medium <noreply@openai.com>
quattro now reads foot's primary font size before rewriting the font line; keep that, and write it with --follow-symlinks like the other terminal config edits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| test_dir=$(mktemp -d) | ||
| trap 'rm -rf "$test_dir"' EXIT | ||
| test_home="$test_dir/home" | ||
| dotfiles="$test_dir/dotfiles" | ||
| configs=(alacritty/alacritty.toml ghostty/config foot/foot.ini) |
There was a problem hiding this comment.
The new test repeats setup already in test/shell.d/kitty-config-test.sh, which runs both font commands. AGENTS.md requires extending the area's existing test rather than adding another *-test.sh. Move these symlink checks into that file before merging so the shared setup stays in one place.
File Used: AGENTS.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
|
The one conflict was in Tested on a fresh Omarchy worker:
Second opinion: Codex Medium and muse-wonder (pi, thinking high) reviewed the merge and found nothing to change. They agreed with my reading, and their independence is not guaranteed. #7309 overlaps this. It is older (opened 2026-08-17) and makes the same six @TheAdamBorek, thanks for confirming you hit this too. This waits on the maintainer. |
…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 <alive@outlast.me> Co-authored-by: Caleb White <cdwhite3@pm.me> * Write through symlinked shell.toml in omarchy-display-text-size Co-authored-by: Ali Yahya <alive@outlast.me> Co-authored-by: Caleb White <cdwhite3@pm.me> --------- Co-authored-by: Ali Yahya <alive@outlast.me> Co-authored-by: Caleb White <cdwhite3@pm.me>
…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 <alive@outlast.me> Co-authored-by: Caleb White <cdwhite3@pm.me> * Write through symlinked shell.toml in omarchy-display-text-size Co-authored-by: Ali Yahya <alive@outlast.me> Co-authored-by: Caleb White <cdwhite3@pm.me> --------- Co-authored-by: Ali Yahya <alive@outlast.me> Co-authored-by: Caleb White <cdwhite3@pm.me>
Summary
omarchy-font-setandomarchy-display-text-sizeedit the alacritty, Ghostty and foot configs with plainsed -i. GNU sed's-iwrites a temporary file and renames it over the path, so when one of those configs is a symlink into a dotfiles checkout, the link is replaced by a regular file. Later edits land in the copy, the dotfiles target goes stale, and the next dotfiles sync either overwrites the change or reports a conflict. It happens even when the substitution changes nothing.Both commands already pass
--follow-symlinksfor kitty's config (since 4cb9c75). This applies the same flag to the other six edits, so the change is written to the link target and the link stays.Notes
--follow-symlinkschanges nothing for regular files, so setups without symlinked configs behave as before.omarchy-display-text-sizealso detaches a symlinkedshell.tomlthrough itsmktemp+mvrewrite. Preserve shell.toml symlinks and metadata when changing text size #13990 covers that, so this PR leaves it alone to avoid a conflict.~/.config/ghostty/configand~/.config/foot/foot.iniwere both replaced by regular files with identical content, 10 ms apart.Verification
test/shell.d/terminal-config-symlink-test.shlinks the stock alacritty, Ghostty and foot configs from a fake dotfiles directory, runs both real commands against stub binaries, and asserts that the links survive and that the targets receive the new font and size. Onquattroit fails at the first assertion (alacritty/alacritty.toml stays a symlink); with this change it passes.test/shell.d/kitty-config-test.shstill passes../test/all, run headless (Wayland and Hyprland variables unset, so compositor tests skip): the CLI suite passes and 298 of 306 shell test files pass. The other 8 fail identically on an unmodifiedquattrocheckout on the same machine:config,passwordless-grant-lifecycle,snapperandunowned-system-pathsneed theomarchy-pkgscompanion checkout, andelsewhen-migration,elsewhen-pointer,launch-browserandpanel-key-catcherfail the same way without this change.🤖 Generated with Claude Code
https://claude.ai/code/session_01Fvz7Kw8Ege88ZXUBR5MR7C