Skip to content

Report the selected terminal font size - #8880

Open
yashranaway wants to merge 9 commits into
omacom:quattrofrom
yashranaway:fix/display-text-active-terminal
Open

yashranaway wants to merge 9 commits into
omacom:quattrofrom
yashranaway:fix/display-text-active-terminal

Conversation

@yashranaway

@yashranaway yashranaway commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Reports the font size of the terminal selected by xdg-terminal-exec. Fixes #8736.

<<<< AI wording below >>>>

Problem

The text-size command reads the first supported terminal config it finds. An inactive terminal's config can therefore override the value reported for the terminal the user actually launches.

Fix

Read and update the selected terminal's font size instead of an unselected terminal's configuration. Cover Kitty selection and isolate migration styling from host dependencies.

Verification

bash test/shell.d/display-text-size-test.sh passes. Changed Bash files pass syntax checks and git diff --check passes. Kitty migration/config regressions pass; its native parser check is skipped because Kitty is not installed.

Copilot AI balanced review requested due to automatic review settings August 29, 2026 06:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates terminal font-size reporting to read the configuration selected by xdg-terminal-exec.

Changes:

  • Dispatches font-size lookup through omarchy-default-terminal.
  • Adds isolated coverage for all four supported terminals.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
bin/omarchy-display-text-size Reads the selected terminal’s font size.
test/shell.d/display-text-size-test.sh Verifies selection-specific reporting.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

…-active-terminal

# Conflicts:
#	bin/omarchy-display-text-size
The size report now reads only the terminal xdg-terminal-exec selects, so the test's Kitty assertions depended on the worker's default terminal and reported n/a on a machine defaulting to foot. Stub the selection, as display-text-size-test does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omarchybot omarchybot added the verified Omarchy Triage has verified that this issue is ready for final review label Oct 1, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed by Claude Opus 5.5 and verified on a disposable Omarchy worker. The fix works, and I pushed one commit to fix a test it broke.

Reproduction. On the worker, foot is the selected terminal (xdg-terminal-exec --print-id gives foot.desktop), with Ghostty at 11 and foot at 9.5. Base reports terminal font: 11 pt, this branch reports 9.5 pt, and reverting bin/omarchy-display-text-size on this branch brings back 11. Your new display-text-size-test.sh fails on base and passes here. This fixes #8736.

Pushed: 749c802 "Select Kitty in the Kitty font size test". test/shell.d/kitty-config-test.sh failed on this branch at "size report accounts for inherited Kitty default". That test checks the Kitty path of the size report without saying Kitty is the selected terminal. On the foot-default worker, the report now reads foot, finds no foot config and prints n/a. The commit stubs omarchy-default-terminal to print kitty, the same way your new test does. The script itself is unchanged. With it, display-text-size-test.sh, kitty-config-test.sh, default-apps-test.sh and bin-style-test.sh all pass on the worker.

Suite. ./test/cli passes except vscode generated theme references current theme file, which fails the same way on base and on current quattro. That failure has nothing to do with this change.

Second opinion. None ran. The reviewer (Codex Medium) answers, but omabot's daily review budget was used up before this item came up, so this rests on one model's review plus the worker runs.

Related. #6550 also adds test/shell.d/display-text-size-test.sh and calls the same getter, so whichever lands second will need its test file merged.

Waiting on a second-opinion review on the next pass, and then on the maintainer.

@greptile-apps

greptile-apps Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium risk] Changes how terminal font size is detected and reported.

The PR appears safe to merge.

Summary

The PR changes font-size reporting to read the configuration of the terminal selected by xdg-terminal-exec, rather than the first supported configuration found.

  • Adds selection tests for Foot, Alacritty, Kitty, and Ghostty.
  • Makes the Kitty migration test independent of host styling tools.

Reviews (3) · Last reviewed commit: "Merge remote-tracking branch 'origin/qua..."

@yashranaway

Copy link
Copy Markdown
Contributor Author

Checked the selected-terminal behavior and added a styling stub for the current Kitty migration. Both regressions pass; the native Kitty parser check is skipped because Kitty is not installed here.

@omarchybot omarchybot removed the verified Omarchy Triage has verified that this issue is ready for final review label Oct 1, 2026
@omarchybot omarchybot added the verified Omarchy Triage has verified that this issue is ready for final review label Oct 1, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Re-checked at 691607d after the new commits, reviewed by Claude Opus 5.5 with a second opinion from Codex Medium, and run on a disposable Omarchy worker. Still fixes #8736, and nothing new was found.

Reproduction. With foot selected through xdg-terminals.list, Ghostty's config at 11 and foot's at 9.5, quattro (f45461a) reports terminal font: 11 pt, this head reports 9.5 pt, and this head with bin/omarchy-display-text-size reverted reports 11 again. display-text-size-test.sh fails on quattro and passes here.

Tests. display-text-size-test.sh, kitty-config-test.sh, default-apps-test.sh and bin-style-test.sh all pass on the worker. The new gum stub in kitty-config-test.sh only keeps migration 1788745941's restart notice from depending on the host; the restart-message assertion still runs. ./test/cli passes except vscode generated theme references current theme file, which fails the same way on quattro and is unrelated to this change.

Second opinion. Codex Medium reviewed the diff for proportionality, the getter's edge cases (no selection, a selected terminal with no config, Kitty inheriting its default), agreement with set_terminal_size, and whether the tests could pass vacuously, and found no defect. It agrees with my own reading; its independence is not guaranteed.

Waiting on the maintainer. The one thing holding back the ready label is the unrelated vscode failure on quattro.

@omarchybot omarchybot removed the verified Omarchy Triage has verified that this issue is ready for final review label Oct 14, 2026
quattro landed the same gum stub in the Kitty config test; keep its copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omarchybot omarchybot added verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge labels Oct 14, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

This had stopped merging cleanly: quattro landed the same gum stub in test/shell.d/kitty-config-test.sh that this branch adds. I pushed 325f8cd, a merge of quattro that keeps quattro's copy of the stub and this branch's omarchy-default-terminal stub. The fix itself is unchanged.

Re-checked at 325f8cd on a fresh Omarchy worker. With Foot selected through the real xdg-terminal-exec and a Ghostty config also present, quattro's script reports 11 pt and this branch reports Foot's 9.5. test/shell.d/display-text-size-test.sh fails against quattro's script and passes here. kitty-config-test.sh and the full ./test/cli pass too.

Codex Medium reviewed the merge and the change separately and found nothing, though its independence from this review is not guaranteed. This is now waiting on the maintainer.

@omarchybot omarchybot removed ready Good to merge verified Omarchy Triage has verified that this issue is ready for final review labels Nov 18, 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.

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

3 participants