Repository navigation
Conversation
0fc8536 to
31d682d
Compare
Automated AI review
Verified: at One gap remains on the other branch of the same Faces stay stale when
|
|
Addressed in The face loop now runs after both Replacing every non- |
Automated AI review
Outcome: Follow-up to the earlier review, checked at head
Resolved: faces now sync on the first font setVerified: the escaped name is now computed before the The same holds for a file with only face lines, an empty file, a missing file with kitty present, a symlinked Addressed: scope of face replacementThe PR description now says every non- Optional, rare edge case: a face value that kitty reads across a Optional documentation note: the PR description says kitty is "the only managed terminal with separate config lines per face". Ghostty ( Related open PRs: #9168 and #13235 also target #9167. #9168 resets the faces to Review informationTest scope: Follow-up source review of head AI process: Opus 5.5 Medium coordination and synthesis, Opus 5.5 Xhigh technical review with a targeted follow-up question and final fact check, GPT 6 Sol Xhigh search for related issues, Opus 5.5 Medium editorial check. Opt out: To stop receiving these reviews, reply to this comment saying so. |
|
Follow-up on the continuation-line edge case: fixed in 3678611 + 617a3c8. A face (or family) value split across a backslash continuation kept its stale tail, which kitty joins onto the new family (e.g. The new test case pins single and multi-level continuations plus |
The face loop ran only after rewriting an existing font_family line. The shipped template leaves that line commented out, so the first font set appended font_family and left bold_font stale. Sync faces after both branches.
617a3c8 to
e1106ff
Compare
Automated AI review
Outcome: At Since the author's reply, earlier findings and the Ghostty/foot note stay addressed. Kitty continuations keep their stale tailkitty 0.49.1 appends a next line starting with Suggested change: instead of joining lines ending in Reproducer (fails at e1106ff)kitty 0.49.1 continues a setting when the next line starts with Save as #!/bin/bash
set -euo pipefail
source "$(dirname "${BASH_SOURCE[0]}")/base-test.sh"
test_dir=$(mktemp -d)
trap 'rm -rf "$test_dir"' EXIT
test_home="$test_dir/home"
kitty_config="$test_home/.config/kitty/kitty.conf"
mkdir -p "$(dirname "$kitty_config")" "$test_dir/bin"
# Exercise the real font command without changing the running desktop.
for command in pkill omarchy-restart-shell omarchy-hook omarchy-notification-send; do
printf '#!/bin/bash\nexit 0\n' >"$test_dir/bin/$command"
done
printf '#!/bin/bash\nexit 1\n' >"$test_dir/bin/pgrep"
printf '#!/bin/bash\nprintf "Test Font\\n"\n' >"$test_dir/bin/fc-list"
printf '#!/bin/bash\nexit 0\n' >"$test_dir/bin/kitty"
chmod +x "$test_dir/bin/"*
run_command() {
env HOME="$test_home" OMARCHY_PATH="$ROOT" PATH="$test_dir/bin:$ROOT/bin:$PATH" "$ROOT/bin/$@"
}
# kitty continues a setting on the next line when that line starts with a
# backslash, after optional indentation (kitty/conf/utils.py, _parse).
cat >"$kitty_config" <<'CONF'
font_family Old
\ Font
bold_font family="Old Font"
\ style=Heavy
bold_italic_font Old Font
\ style=Bold
\ extra=Tail
# italic_font Manual Edit
\ not-a-face
font_size 13
CONF
run_command omarchy-font-set 'Test Font'
grep -qx 'font_family Test Font' "$kitty_config" || fail "font command rewrites a continued family line"
grep -qx 'bold_font Test Font' "$kitty_config" || fail "font command rewrites a continued face line"
grep -qx 'bold_italic_font Test Font' "$kitty_config" || fail "font command rewrites a multi-line face"
! grep -qE '^[[:space:]]*\\ (Font|style=|extra=)' "$kitty_config" || fail "no kitty continuation tail survives a font change"
grep -qx '\\ not-a-face' "$kitty_config" || fail "font command leaves a commented line's continuation alone"
grep -qx 'font_size 13' "$kitty_config" || fail "font command keeps unrelated settings"
pass "font command drops kitty continuation lines of rewritten font lines"Actual output at The same test fails at Actual Next line deleted after a trailing
|
…aces Kitty continues a setting when the next line starts with backslash, not when the current line ends with one. Drop those lines after rewrite, keep trailing-backslash next lines intact.
|
Addressed the follow-up review at e1106ff in 0aca2e9. Kitty continues a setting when the next line starts with a backslash, not when the current line ends with one — the previous sed joined trailing-\ lines, so it kept the real stale tail and could delete the next setting. The rewrite now drops following lines starting with \, and leaves trailing-\ next lines intact. Test updated to the kitty form (leading-\ continuations + trailing-\ preservation). Verified: kitty-config-test.sh green, bin-style-test.sh green, prefix keys / symlink / sed-metachar cases hold, second identical run is a no-op. |
|
Reviewed at The recommendation is #9168, and this pull request goes to the maintainer as the alternative rather than as the fix to merge:
Both overwrite a face someone chose on purpose (another family or a I didn't run this pull request on a worker, because it is not the one being recommended. Its continuation tests and the earlier community reviews are the evidence for its behaviour. Next step: the maintainer chooses between #9168 and this one. |
|
Thanks for the three-way comparison — agree #9168 is the better base. Resetting to Happy for #9168 to land and to close this as superseded. One offer: mine also covers kitty |
|
Nothing has moved since the comparison above: this pull request, #9168 and #13235 are still at the same heads, so the recommendation stands. Your description of the gap is right. Under #9168, Please leave this open for now. Which fix lands, whether this one closes, and whether to take the continuation follow-up on top of #9168 are the maintainer's calls, and they have your offer here. |
|
Thank you for this, @ekollof. #9168 fixes the same problem in a way the review judged better, so this is closed in favour of it. If it does not cover your case, please say so there. Closed at the maintainer's request. The review comment above has the details; it was done by Claude Opus 5.5 with Codex Medium as a second opinion, whose agreement is not independent. |
Fixes #9167.
omarchy font setrewrote onlyfont_familyinkitty.conf, so an explicitbold_font/italic_font/bold_italic_fontfrom a previous font (or manual edit) kept rendering those faces in the old font. Kitty is where this mattered in practice — Ghostty (font-family-bold, etc.) and foot (font-bold, etc.) also have per-face keys, but the shipped templates don't set them and this command leaves them alone, so kitty was the affected one.The fix points every non-
autoface line at the new family. That includes a face the user chose on purpose (a different family, or akitten choose-fontsspec such asfamily="Other Family" style=Heavy). The same command already rewrites every Alacrittyfamilyentry, so a font set replaces per-face choices rather than trying to preserve them. Deliberately untouched:autovalues — kitty derives those fromfont_familyon its own;autodefault;The face update runs after both
font_familybranches. The shipped template leavesfont_familycommented out, so the firstomarchy font setappends an activefont_familyand still rewrites abold_fontthat was already there. A second run is not required.Verified with
test/shell.d/kitty-config-test.sh(stale faces,autoand comments preserved, and a config whose onlyfont_familyis commented out), plus./test/cli. The remaining./test/shellfailures (config,snapper,unowned-system-paths,locate,kernel-migration, and a flakybar-widget-contract) reproduce identically on cleanupstream/quattroand are unrelated.