Skip to content

Report the default terminal's font size, not the first config found - #14687

Open
omarchybot wants to merge 1 commit into
quattrofrom
fix/issue-8736
Open

omarchybot wants to merge 1 commit into
quattrofrom
fix/issue-8736

Conversation

@omarchybot

Copy link
Copy Markdown
Collaborator

omarchy display text size with no arguments reported the terminal font size from the first config file it found, checking Ghostty first. Omarchy ships configs for Alacritty, Foot, Ghostty and Kitty on every install, so ~/.config/ghostty/config exists whether or not Ghostty does, and the report named Ghostty's size on almost every machine. The setter writes all four configs, so the number was only wrong once one of them was edited by hand, which is how a Foot user sees 9 pt for a terminal set to 9.5.

term_current_pt now reads the size from the terminal omarchy-default-terminal resolves through xdg-terminal-exec, which is the one that opens. A default outside the four reports n/a, as the command already does when it finds nothing. Kitty keeps its fallback to the 9 pt default when it has no font_size override.

test/shell.d/display-text-size-terminal-test.sh gives each stock config a different size and checks that the report follows the default terminal. kitty-config-test.sh stubs xdg-terminal-exec to make Kitty the default, since its size assertions otherwise depend on the default terminal of whichever machine runs them.

#6550 reworks this file and reads the Terminals row through the same getter, so it picks this up without changes of its own.

Fixes #8736

Every terminal's config ships on install, so the getter's Ghostty-first file check named Ghostty's size on machines where Ghostty is not installed. Read the size from the terminal omarchy-default-terminal resolves instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

omarchy-display-text-size now reads the default terminal’s config instead of the first config present.

  • The new test gives all four terminal configs different sizes and checks each default.
  • kitty-config-test.sh now fixes the default terminal to Kitty for its size checks.
  • omarchybot explicitly describes n/a for unsupported defaults as intentional, rather than reporting another terminal’s size.

Reviews (1) · Last reviewed commit: "Report the default terminal's font size,..." · Reviewed by Greptile

@omarchybot

Copy link
Copy Markdown
Collaborator Author

Classification is unsettled, so this has not been verified yet. Claude Opus 5.5 reads it as a bug fix for #8736 (term_current_pt reporting Ghostty's size on machines where every stock terminal config is present), but the second opinion, Codex Medium, could not be asked: its daily review budget was spent when this ran. A class needs both models to agree, so no class label went on and nothing was run on a worker.

What was read: the diff at ae221a9, bin/omarchy-default-terminal on quattro, and the changes quattro has taken since this branched (only i18n strings in the same files, none touching term_current_pt). No competing or duplicate pull request was found for #8736.

Waiting on the classification being settled, by the second opinion or the maintainer. Once it is, it gets the worker reproduction and suite run a bug fix needs.

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.

omarchy display text size reports the font size of a terminal that is not installed

1 participant