Repository navigation
Conversation
Automated AI review
Verified: the change does what the description says. No issue was found in the production change within the tested scope. The shared sed escape ( Result for the PR's example name Verified: a name with Verified: the new test is picked up by Optional test improvement: the test stubs Description note: the Test section says the new Pre-existing, outside this PR: a family name containing Review informationTest scope: source review of AI process: Opus 5.5 Medium coordination and synthesis, independent Opus 5.5 Xhigh and GPT 6 Sol Xhigh technical assessments, Opus 5.5 Medium editorial check. Opt out: To stop receiving these reviews, reply to this comment saying so. |
|
Reviewed at 6ad4dea and verified on an Omarchy ISO worker. Nothing to change. What was checked. I wrote a separate reproduction instead of relying on the test in this PR. It runs the real
Second opinion. Codex Medium reviewed the diff pinned to this head. It found the change proportionate and the sed and XML escaping complete for a text node, and it agreed the test is not vacuous. Its agreement is not guaranteed to be independent. It also named two limits that are already broken on Other pull requests. #10811 and #8179 also escape font names. This one is the narrower fix. #10811 refuses names containing What happens next. This waits on the maintainer. The PR has no CI checks, and the shell suite is not fully green on the worker for the reasons above. |
|
Correct sed/XML escaping for font names with |
|
Looked at this again after #6958 (preserve the foot font size) merged to After #6958. #6958 does not escape font names, so nothing here is made redundant. Both PRs change the same foot line, though, so this branch no longer merges cleanly. The resolution has to keep both changes: Competing fix. #10811 is older (opened 2026-09-08) and was rebased onto current Who checked. Claude Opus 5.5 read both diffs against |
Families such as "Fira Code & Friends" are real, and nothing about them is dangerous: sed already escapes & and / in every replacement, and fonts.conf only needs the XML text node escaped. Refuse only what could close a string in a terminal config. From omacom#12457. Co-Authored-By: Ovatsug Rasec (Gus) <32225578+cYoren@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@cYoren the escaping from this PR is now in #10811, as of 5506dfc, with you credited as co-author. You don't need to resolve the foot conflict here unless the maintainer picks this PR over #10811. What was checked. Claude Opus 5.5 compared the two diffs target by target, and Codex Medium did the same comparison on its own. Both found that #10811 now makes every script change this PR makes. The alacritty, kitty, ghostty and fontconfig lines escape names exactly as they do here. On foot it escapes more, adding fontconfig's The one difference. #10811 refuses names containing a quote, backslash, backtick, Waiting on. The maintainer's choice between the two. If #10811 is merged, this PR has nothing left to add and can be closed. |
6ad4dea to
80a4f64
Compare
|
rebased onto current quattro at 80a4f64, and the foot conflict with #6958 is resolved by keeping both changes: the sed rewrite now interpolates the escaped name and the size that is already in foot.ini. the test fixture starts at size 12 instead of 9, so it fails if the size gets reset, not just if the escaping breaks. checked end to end on a temp HOME with a stubbed fc-list:
still leaves the two limits the previous review named: a newline in a name, and a backslash or quote in alacritty.toml. those are broken on quattro too and out of scope here. |
[Medium impact] No new blocking issue was found. SummaryEscapes font names before writing terminal settings and fontconfig XML.
Reviews (4) · Last reviewed commit: "Escape font names before rewriting the t..." · Reviewed by Greptile |
|
@cYoren thanks for the rebase. I read 80a4f64 against Still competing with #10811. #10811 is older and makes the same alacritty, kitty, ghostty and fontconfig changes as this PR. Two differences remain, one on each side:
Who checked. Claude Opus 5.5 read both diffs. Codex Medium compared them separately and picked this PR, because #10811 refuses the If this PR is the one picked: Waiting on the maintainer. |
|
moved the escaping checks into verified both ways: with the base |
|
Read 3e548a7, including the move into GPT-6 in Codex performed this source review; its reasoning effort is not exposed by this session. I classify the change as a bug fix, but the second classifier, This waits for the missing second classification before verification can continue. The previously discussed choice involving #10811 remains with the maintainer. |
|
seeded two assertions back it: exactly one |
|
Read GPT-6 in Codex performed this source review; the session does not expose its reasoning effort. I classify this as a bug fix, but the configured second classifier, |
|
Classification is now agreed as GPT-6 in Codex (reasoning effort not exposed) compared This waits on the maintainer's choice between the competing fixes. No worker tests ran and nothing was pushed in this run; the earlier verification applies to an older head. |
c7977c8 to
4918e17
Compare
|
rebased onto the source change is unchanged: escape once into verified at #10811 still carries the same escaping, so it is still your call which one lands. |
|
Read the rebase at The same sed and XML escaping remains in older #10811, which also changes font lookup, accepted names and Foot pattern handling. These remain competing changes; this run makes no new choice between them. GPT-6 in Codex performed this source review; its reasoning effort is not exposed. Both classifiers agree this head is a bug fix. The required Opus 5.5 High second review could not run because its weekly usage limit was reached, and its availability check also failed. No full second opinion ran on this head. No worker tests ran, nothing was pushed, and no verification labels were added. This remains waiting on the maintainer's choice and a completed second review. |
Problem
omarchy-font-setinterpolates the raw font name into itssedreplacements and into the fontconfig XML. The kitty branch escapes metacharacters, but the alacritty, ghostty and foot branches — and the XML — do not.seddelimiter (/) or&breaks the rewrite:sed: -e expression #1, char 32: unknown option to 's', leaving the config untouched (or corrupted).&,<or>produces invalid XML, so~/.config/fontconfig/fonts.conffails to parse and the chosen monospace family is not applied.Reproduction
Before:
After the fix the three terminal configs keep
Fake/Font & Friendsverbatim andfonts.confholds<string>Fake/Font & Friends</string>.Fix
Escape the name once per target syntax right after validation:
sed_font_name— for the alacritty/kitty/ghostty/foot replacements (same escaping the kitty branch already used, now shared).xml_font_name—&/</>escaped for the fontconfig text node.Test
Added
test/shell.d/font-set-escaping-test.sh. It stubsfc-listto report a font whose name contains both/and&, stubspkill/omarchy-restart-shellso no live terminal or shell is signalled, and runs the realbin/omarchy-font-set. It asserts all four terminal configs and the XML keep the name intact.not ok.test/shell, which globstest/shell.d/*-test.sh; it also runs on its own withbash test/shell.d/font-set-escaping-test.sh.