Skip to content

Fit the presentation terminal to its logo instead of a fixed 875x600 - #9281

Open
londospark wants to merge 11 commits into
omacom:quattrofrom
londospark:fix-presentation-terminal-text-size
Open

londospark wants to merge 11 commits into
omacom:quattrofrom
londospark:fix-presentation-terminal-text-size

Conversation

@londospark

@londospark londospark commented Aug 31, 2026 •

Copy link
Copy Markdown

Disclosure: this fix was built with AI assistance (Claude Code) -- the investigation, implementation, and this description were largely vibe-coded. I reviewed and tested everything below on my own machine before opening this, but wanted to be upfront about how it was made.

Summary

The branded floating terminal used for installs, wifi setup, fingerprint setup, and updates (omarchy-launch-floating-terminal-with-presentation) opens at a Hyprland float rule hardcoded to 875x600px (default/hypr/apps/system.lua, shared with the generic floating-window tag). That size is only wide enough for the 81-column logo at the default terminal font. At a bumped omarchy display text-size, the window is too narrow and the logo wraps mid-glyph:

Before:
before

After:
after

Why this needs measuring, not a rule

The size that fits the logo depends on the terminal's actual cell metrics, which can only be read from inside a running terminal -- the same constraint omarchy-launch-about documents for its own window. I initially tried setting the size declaratively (both a static o.window rule in Hyprland config, and a hl.window_rule injected via hyprctl eval immediately before spawning, mirroring omarchy-launch-about's apply_size_rule/presize_window pattern). Neither affected the size a new window actually opens at, in any ordering or timing I tried. The only thing that reliably resizes the window is an imperative resize dispatched after it exists, so that's what this does, self-relaunching with --render the same way omarchy-launch-about does.

What's sized, and how

  • Columns: the logo's real display width (wc -L on logo.txt) plus a little padding. Not hardcoded, so a rebranded logo is measured correctly.
  • Rows: not a flat number, and not derived from the logo's own height either (its 10 lines have nothing to do with how tall this window should be). Instead: scale the pixel width the column target needs at the window's current cell size, apply the old 875x600 rule's own width:height ratio to get a pixel height, then convert that back to a row count at the current row height. The window ends up the same shape as the one it replaces, just as wide as the logo actually needs.
  • The fit only ever grows the window. It reads the terminal's own grid first, and a terminal already wide enough for the logo (the default text size) is left at the size the float rule gave it.
  • Nothing is cached. An earlier version cached the fitted size in ~/.local/state/omarchy/windows/presentation.fit and re-applied it through presize_window/apply_size_rule, like omarchy-launch-about, but a rule set that way never changed the size a window opens at, so the cache was dropped. The live nudge runs on every launch.
  • The resize dispatch and the wait for the grid to settle are shared with omarchy-launch-about through a new omarchy-hyprland-window-resize-helpers, so both windows use the same plumbing.

A bug caught along the way

The window is matched via a small own_client() helper that walks this process's own ancestry ($$ up through ps -o ppid=) to the Hyprland client Hyprland reports for this class, rather than hyprctl activewindow. I tried activewindow first, matching omarchy-launch-about's pattern, but it silently returns nothing -- skipping the fit entirely -- whenever the popup doesn't hold focus, which happens whenever something else grabs focus while the terminal is still spawning. Caught this because a stray terminal from earlier testing had focus during a re-run and the fit didn't apply at all.

Testing

  • bash -n bin/omarchy-launch-floating-terminal-with-presentation
  • test/shell.d/floating-terminal-test.sh -- passes
  • ./test/all -- no new failures (4 pre-existing failures unrelated to this file: bar-icon-geometry-test.sh, config-test.sh, snapper-test.sh, unowned-system-paths-test.sh; confirmed these fail identically on a clean quattro checkout)
  • Manual verification on a live Hyprland/Omarchy session at both the default text size and a bumped one (omarchy display text-size 14): logo renders cleanly at both, final window shape matches the old box's aspect ratio (~1.48 vs. the original 875x600's 1.46), and the fit still applies correctly when the popup doesn't have focus (the bug described above)

Note on scope

I run a small local Quickshell plugin as a stopgap on my own machine (external to this repo, since I can't presize the window without this fix) -- not part of this PR, just flagging that I've been dogfooding the underlying behavior beyond this one script for a while.

The branded floating terminal used for installs, wifi setup, fingerprint
setup, and updates opens at a hardcoded 875x600px, sized for the default
terminal font. At a bumped `omarchy display text-size` the window is no
longer wide enough for the 81-column logo, which wraps mid-glyph into an
unreadable mess.

The size that hugs the logo depends on the terminal font, so it can only
be measured from inside the terminal -- the same approach
omarchy-launch-about uses for its own window. Column target comes from
the logo's real width; row target preserves the old 875x600 rule's own
aspect ratio at whatever width the logo needs, rather than a flat row
count that would leave the window a different shape than before.

The window is matched by walking this process's own ancestry rather than
`hyprctl activewindow`, since the popup isn't guaranteed to hold focus
and activewindow silently matches nothing (skipping the fit) when it
doesn't.
own_client() only matched a client whose pid was in this script's own
process ancestry, which never finds the window when the terminal runs
as a persistent server (e.g. `foot --server`) -- the process that maps
the window there isn't a descendant of this script. Since org.omarchy.terminal
is exclusive to this launcher, fall back to the sole client of that class
when the ancestry walk finds nothing, and stay silent when that's still
ambiguous (more than one match).

fit_window() divided by a window height that could read as 0 in the
brief window before Hyprland finishes populating a just-mapped client's
geometry, silently driving a bad resize; guard it the same way the nudge
loop already guards its own read.

The window-rule cache (presize_window/apply_size_rule/remember_fit) was
confirmed in the PR description to have no effect on the size a window
opens at, so drop it rather than ship it as dead weight next to the live
nudge that actually works.

own_client()'s ancestry walk is a real ps/hyprctl round trip per ancestor;
fit_window() called it before the loop and again on every nudge. Resolve
the client once and read updated geometry through a plain by-address
lookup for the rest of the fit.

The --render branch relied on `exec` to make the rest of the file
unreachable instead of an explicit if/else, against this repo's
convention for two-path control flow. A stray quoted variable in a
numeric [[ ]] comparison is fixed to match it too.

Extends test/shell.d/floating-terminal-test.sh to cover the fallback
match, the ambiguous-refusal case, the height-0 guard, the dropped
cache, and that the client is resolved once per fit.
settle_grid() and hypr_dispatch() were byte-for-byte copy-pasted from
omarchy-launch-about into the presentation launcher's own review round.
Move them into a shared, sourced helper now that both callers need
exactly the same behavior, so a future change to the resize/settle
mechanism only has to happen once.
@londospark

Copy link
Copy Markdown
Author

@dhh @ryanrhughes — this PR fixes the presentation terminal window sizing issue and makes it responsive to omarchy display text-size changes. The window now dynamically sizes to fit the logo instead of using a hardcoded 875x600px.

What changed:

  • Dynamic window sizing based on logo width + padding
  • Preserves the 875x600 aspect ratio (~1.46) regardless of text size
  • Bug fix: proper window matching even when the popup doesn't have focus
  • Shared window-fit helpers between the about/presentation launchers

Testing: passes all tests; manually verified at default and bumped text sizes.

Would love to get this into quattro — any feedback or concerns?

@johnpippett

johnpippett commented Sep 22, 2026 •

Copy link
Copy Markdown

The user reported a broken logo in the Spotify install popup while it waited for a sudo password. Their screenshot shows the logo wrapped across lines above the password prompt.

I reproduced the logo problem on Omarchy 4.0.4-1 without sudo or a package install:

omarchy-launch-floating-terminal-with-presentation 'sleep 2; stty size; sleep 10'

The live terminal reported 18 63 from stty size. The installed logo.txt needs 81 columns. Ghostty 1.3.1-2 uses a 12-point font on this system. The active DP-1 display is 3840 × 2160 at scale 1.25, and GDK_SCALE=2. Hyprland reports an 875 × 600 logical-pixel window.

This confirms the reported logo problem with these settings. I have not installed or tested the change in this PR.

@omarchybot omarchybot added the bug Something isn't working label Sep 27, 2026
omarchybot and others added 2 commits October 1, 2026 19:09
quattro now passes the presented command's exit status to omarchy-show-done so a failure shows as Failed rather than Done. The render branch keeps that, so the fit does not undo it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fit grows the window to whatever width the logo needs at the current font, and nothing bounded that by the screen. With Ghostty at text size 18 on a 1280x800 display it asked for 1500x1033 and Hyprland centred it at -110,-97, past every edge, cutting off the logo it was sized for. Cap the resize to the monitor's logical size less the bar's reserved area, and stop nudging once the window is already as large as that allows: a font too big for the logo to fit on this screen still wraps it, inside a window the user can see.

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 and run on a disposable Omarchy worker (1280x800, scale 1), in foot and in Ghostty. The bug is real and this fixes it. I pushed two commits to the branch; the size of the change and its effect at the default text size are questions for the maintainer.

Reproduction. On quattro, at omarchy display text-size 18 and 20, the presentation terminal is 77 and 70 columns in foot and 48 at 18 in Ghostty, so the 81-column logo wraps. On this branch it opens at 85–86 columns at every size from 12 to 20 in foot, and the logo draws on one line. Swapping quattro's launcher back in on the same session brings the wrap back.

Pushed:

  • 41f32e3 merges quattro into the branch, which no longer merged cleanly. quattro now passes the command's exit status to omarchy-show-done, so a failed command shows Failed rather than Done. The --render path keeps that.
  • 0bcf463 keeps the fitted window inside its monitor. In Ghostty at text size 18, 85 columns needs about 1500px, so the fit asked for 1500x1033 and Hyprland centred it at -110,-97. That pushed it past every edge of the screen and cut off the logo it was sized for. The resize is now capped to the monitor's logical size, less the bar's reserved area. A font too large for the logo to fit on that screen still wraps it, but in a window you can see. test/shell.d/floating-terminal-test.sh has a case for it, and that case fails with the cap removed.

Tests on the worker at 0bcf463: floating-terminal-test.sh 10/10, launch-about-test.sh 25/25, and seven other shell tests that use the launcher pass. plymouth-set-test.sh fails one check because the worker has no node, and fails it identically on quattro. ./test/cli passes 91 checks and fails one (vscode generated theme references current theme file), which fails identically on quattro.

For the maintainer:

  • At the default text size the window now shrinks from 875x600 to about 630x420 (86x23 in foot), because the fit hugs the logo in both directions rather than only growing when the logo does not fit. Update and install output gets ten fewer rows.
  • The fix is about 300 lines, including a new shared helper file and a refactor of omarchy-launch-about. A smaller fix would grow the window only when the logo does not fit, or have omarchy-show-logo skip the logo in a terminal narrower than it.
  • own_client's fallback comment says org.omarchy.terminal is exclusive to this launcher, but the menu's package install, AUR install and package remove entries open that class too. In practice that only makes the fallback skip the fit when one of those is open, so I left it alone.

Second opinion: none. The configured reviewer (Codex Medium) answered its availability check, but omabot review refused because the daily review budget was spent. This review is one model's reading plus the worker runs above.

Waiting on the maintainer.

@greptile-apps

greptile-apps Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 2/5

[Medium impact] The change reaches many tasks that open the presentation terminal.

The PR should not merge until the three outstanding window-selection and fitting problems are addressed.

Findings

  1. P1 Fallback centers another window ▶
  2. P1 Temporary geometry prevents fitting ▶
  3. P1 Concurrent server windows remain unfitted ▶

Summary

The PR measures the presentation terminal before drawing its logo.

  • Presentation terminals grow when their logo would wrap.

No new findings were accepted.

Reviews (5) · Last reviewed commit: "Drop the check that removed functions st..." · Reviewed by Greptile

(( target_w == width && target_h == height )) && return 1

hypr_dispatch "hl.dsp.window.resize({ window = \"address:$address\", x = $target_w, y = $target_h })" resizewindowpixel "exact $target_w $target_h,address:$address"
hypr_dispatch "hl.dsp.window.center({ window = \"address:$address\" })" centerwindow

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.

P1 Fallback centers another window When the Lua centering command fails, centerwindow runs without the terminal's address. If the presentation terminal has lost focus, the fallback centers whichever window is focused instead, moving an unrelated window. Pass the resolved address to the fallback.

Suggested change
hypr_dispatch "hl.dsp.window.center({ window = \"address:$address\" })" centerwindow
hypr_dispatch "hl.dsp.window.center({ window = \"address:$address\" })" centerwindow "address:$address"

local rows cols
read -r rows cols <<<"$(stty size)"
[[ -n ${cols:-} && -n ${width:-} ]] || return 1
(( height > 0 )) || return 1

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.

P1 Temporary geometry prevents fitting A newly mapped terminal can briefly report a height of zero. Here, fit_window gives up, and the render path proceeds without retrying. The logo then appears in the original 875×600 window and can still wrap at larger text sizes.

Comment on lines +63 to +65
match=$(hyprctl clients -j | jq -r --arg id "$APP_ID" \
'[.[] | select(.class == $id)] | if length == 1 then .[0] | "\(.address) \(.size[0]) \(.size[1])" else empty end')
[[ -n $match ]] && { printf '%s\n' "$match"; return 0; }

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.

P1 Concurrent server windows remain unfitted If the terminal runs through a persistent server, its window-owning PID is not in this process's ancestry. With two presentation terminals open, the fallback also rejects both because they share the same class. The second terminal is never fitted, so its logo can wrap at larger text sizes.

@omarchybot

Copy link
Copy Markdown
Collaborator

Greptile's three findings at 0bcf463, checked against the source. None of them is a case where this branch does worse than quattro:

  • Fallback centres another window (line 150). This is the same line omarchy-launch-about already has on quattro (line 187). The bare centerwindow only runs when the Lua hl.dsp.window.center dispatch fails, and the legacy centerwindow takes no window selector anyway, so the suggested centerwindow "address:$address" would not target it.
  • Zero height skips the fit (line 109). If it happens, the window stays at quattro's 875x600. The fit ran on every launch in the earlier worker runs, at text sizes 12 to 20 in foot and at 18 in Ghostty, and never hit it.
  • Server-mode terminals with two windows open (line 65). This is real. It is the same org.omarchy.terminal sharing the earlier comment noted, since the menu's package install, AUR install and package remove entries use that class too. When the fit is skipped, the window opens at quattro's size. It does not open at a wrong one.

None of these needs code added to the branch. The open question is still the earlier one: about 300 lines, plus a smaller window at the default text size, against a fix that only grows the window when the logo doesn't fit.

Second opinion: none again. Codex Medium answered its availability check, but omabot review refused because the daily review budget was spent. This is one model's reading.

Waiting on the maintainer.

@johnpippett

Copy link
Copy Markdown

I tested 0bcf46321007500b09db91b81bfdf6976ebe3926 at fractional scale. The earlier worker test used scale 1. Claude Code did this test on 2026-10-09.

Environment

  • Omarchy 4.0.4-1, Hyprland 0.56.2, Ghostty 1.3.1-2 with font-size = 12.
  • Display eDP-1: 2560 × 1600 at scale 1.25. The bar reserves 35 px at the top.
  • GDK_SCALE=2.

Method

I ran the installed launcher and the PR launcher one after the other. The PR run used a checkout of the head, with its bin/ first in PATH and OMARCHY_PATH set to the checkout. The popup command recorded the launcher path, stty size, and the Hyprland window geometry, and then took a screenshot. The launcher path confirmed that the popup used the checkout's --render path.

Results

Launcher Window Terminal Logo
Installed 4.0.4-1 875 × 600 18 rows × 63 columns wrapped into fragments
This PR 1154 × 768 24 rows × 84 columns one line, complete

At this head, the window was centered in the area below the bar and stayed inside the monitor. The 81-column logo did not wrap.

The terminal had 84 columns. The fit aims for 85 or 86 columns (logo width plus padding). This did not have a visible effect, because the logo needs 81 columns. I did not find the cause.

Screenshots

The terminal background is transparent. I removed the content of the windows behind it from both screenshots. The logo, cursor, and window border are not changed.

Installed 4.0.4-1 This PR
Installed launcher: logo wrapped PR launcher: logo on one line

Limits

I did one run of each launcher, on one display, at one text size. I did not test the 4K DP-1 display from my earlier comment, other omarchy display text-size values, or other terminals.

… class

A terminal running as one process for many windows (foot's server, Ghostty in single-instance mode) maps every org.omarchy.terminal window from that process, and the menu's package install, AUR install and package remove entries open that class too. The ancestry walk took the first client matching the pid, so with one of those open it could resize and centre the installer while the presentation window stayed at 875x600. Treat a shared pid as ambiguous, as the fallback already treats several unmatched clients, and correct the fallback's comment, which called the class exclusive to this launcher.

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

Copy link
Copy Markdown
Collaborator

The second opinion has now run on this pull request. It found one real defect, which I fixed and pushed as 6cef930. The question for the maintainer is unchanged.

Pushed: 6cef930 stops the fit resizing a window that is not its own. own_client walks up its process ancestry and took the first org.omarchy.terminal client owned by a matching pid. A terminal that serves many windows from one process (foot's server, Ghostty in single-instance mode) owns every window of that class from the same pid. The menu's package install, AUR install and package remove entries open that class too. With one of them open, launching an update could resize and centre the installer instead, leaving the update window at 875x600. Several windows sharing the pid are now treated as ambiguous, the same way the fallback already treats several unmatched windows, and the fit is skipped. A new case in test/shell.d/floating-terminal-test.sh fails without the check and passes with it. I also corrected the fallback's comment, which said the class belonged to this launcher alone.

Re-run on a disposable Omarchy worker at 6cef930 (foot, 1280x800):

  • quattro's launcher opens at 77 columns at text size 18 and 80 at size 20, so the 81-column logo wraps. In the same session this branch opens at 85 and 86.
  • floating-terminal-test.sh passes 11/11 and launch-about-test.sh 25/25, and the twelve other shell tests that use the launcher pass.
  • ./test/cli fails one check (vscode generated theme references current theme file) on this branch's own tree, which is based on an older quattro. Merged with today's quattro (988f44e), the branch merges cleanly and ./test/cli passes all 117 checks.

@johnpippett's run at scale 1.25 above, where the logo went from 63 columns to 84, matches what the worker shows.

Second opinion (Codex Medium). On 0bcf463 it found the shared-pid issue above, which neither earlier review had reasoned about. On the fix it found nothing wrong. It also confirmed that the --render re-exec keeps the command and its exit status as quattro does, and that the helpers moved out of omarchy-launch-about are unchanged. It repeated Greptile's point about the bare centerwindow fallback, which is the same line omarchy-launch-about already has on quattro. It also noted that the zero-height test case stops at the monitor check before reaching the guard it names. That is a gap in the test, not in what the launcher does. Where it agreed with earlier conclusions, it may have read them first, so that agreement is not independent.

For the maintainer, as before: the window now fits the logo at every size, but it also shrinks at the default text size, from 875x600 to about 630x420, with ten fewer rows for update and install output. The change is about 300 lines. Growing the window only when the logo does not fit, or having omarchy-show-logo skip the logo in a narrower terminal, would fix the wrapping with much less. #9040 and #14297 also edit this launcher, so whichever lands second will need a merge.

Reviewed by Claude Opus 5.5 and Codex Medium. Waiting on the maintainer.

The fit measured the logo and nudged the window to hug it in both
directions, so a terminal that already drew the logo whole still shrank:
875x600 down to about 630x420 at the default text size, ten rows of
install and update output gone for a logo that needed none of it.

The terminal's own grid answers the only question the fit exists to ask,
and it answers it before any window has to be found. Read the grid first
and return untouched when the logo already draws whole, so only a
wrapping logo costs a resize and that resize can only grow the window.

The zero-height case now carries its monitor so it reaches the guard it
names, and proves the refusal through the dispatch log and stderr: a
return code alone also reads as a refusal from a fit that ran out of
nudges.
@londospark

Copy link
Copy Markdown
Author

Pushed 7c805fb: the fit now only ever grows the window, which is the part you flagged.

Reading it back, the shrink was a regression I introduced for no benefit — the fit exists to stop the logo wrapping, not to hug it. It now reads the terminal's own grid first and returns without touching any window when the logo already draws whole. Where the logo fits the float rule's 875x600, the window is left exactly at 875x600, with the rows of install and update output intact; only a wrapping logo costs a resize, and that resize can only grow the window from the box it was given. It also means no hyprctl/ps work in the common case, since the window is never even looked up.

Verified at the default text size on my own session (Ghostty 1.3.1, checkout's launcher confirmed in the probe): the popup comes up 992x670, 29x86, logo on one line, inside the monitor. On this font 875px is only about 76 columns, so this window needed the growth — the fix is doing the work at the default size here rather than only at bumped ones.

test/shell.d/floating-terminal-test.sh is 12/12, including a case that fails if the early return is removed. The zero-height case now carries its monitor so it reaches the guard it names (Codex's note) and proves the refusal through the dispatch log and stderr, rather than a return code that a fit which ran out of nudges would also produce.

What's left is the size of the change: the shared resize helper plus the omarchy-launch-about refactor. Happy to split the helper out into its own PR if you'd rather review the fit on its own.

Also merged today's quattro in.

@omarchybot omarchybot removed the verified Omarchy Triage has verified that this issue is ready for final review label Oct 17, 2026
The row target takes the old 875x600 float's shape at the width the logo needs, so a window that opened taller than that shape -- a user's own float rule, say 875x800 with 30 rows -- was asked for 25 rows and lost five while it grew wider. Floor the row target at the rows the window already has, so the fit only ever grows it, as the launcher's comment says.

Co-Authored-By: Codex Medium <noreply@openai.com>
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 17, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Re-reviewed at 7c805fb and the merge of quattro, and run on a disposable Omarchy worker (foot, 1280x800, scale 1). The window no longer shrinks at the default text size, and the wrap fix still holds. I pushed one small fix on top.

Reproduction at the new head, with quattro's launcher run in the same session for comparison:

Text size quattro this branch
default 875x600, 33x121 875x600, 33x121, untouched
18 875x600, 22x77, logo wraps 966x655, 24x85
20 875x600, 21x70, logo wraps 1063x743, 26x86

Pushed: ae562ab keeps a tall window's rows. The row target uses the old 875x600 shape at the width the logo needs, so a window that opened taller than that shape could lose rows while the fit widened it. With a float rule of 875x800, 30 rows and 77 columns, the fit asked for 25 rows. The row target now never goes below the rows the window already has, so the fit only ever grows it, as the launcher's comment says. A new case in test/shell.d/floating-terminal-test.sh fails without the check (the window shrinks from 800px to 694px) and passes with it. At the default 875x600 float nothing changes, because there the row target is always larger than the current rows.

Tests on the worker at ae562ab: floating-terminal-test.sh 13/13, launch-about-test.sh 25/25, the thirteen other shell tests that use either launcher, and ./test/cli (125 checks) all pass. I also ran the full shell suite. 10 of 448 files fail. Seven of them (ascii, branding-about-animation, hyprland-startup-cursor-cold, i18n, lock-appear-budget, passwordless-grant-lifecycle, runtime-smoke) fail the same way on quattro on the same worker. The other three (channel-sudo-boundary, screenrecording-process, ssh-reconnect) pass when run on their own on this branch.

Second opinion (Codex Medium). It found the row shrink above, which I had not reasoned about. On the fix it found nothing wrong. It also said that a monitor cap can make the window smaller than it opened, and that a terminal at 81 to 84 columns, which already draws the logo whole, is still widened to 85. I left both alone. The cap only shrinks a window that is already bigger than its monitor, so the cap is doing its job there. The widening only grows the window, by the padding the author chose. It found no problem in the --render re-exec, its quoting or the exit status, and nothing dropped by the merge of quattro.

Overlap: #13563 rewrites this launcher, and #12268 changes omarchy-launch-about, which this branch also changes. Whichever lands second will need a merge.

What is left is the size of the change. Most of it is tests, but it also adds a shared helper file and moves two functions out of omarchy-launch-about. @londospark offered to split the helper into its own pull request. Whether to do that is the maintainer's call. 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 Oct 27, 2026
omarchybot and others added 2 commits November 1, 2026 01:45
quattro deleted test/shell.d/floating-terminal-test.sh in omacom#16334, and this branch adds the fit's tests to it. Keep the file with this branch's tests, minus the setsid launch check omacom#16334 removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It asserts functions no code defines are undefined, so it can only fail if someone adds them back under the same name. quattro's AGENTS.md rules out tests that restate the implementation, and omacom#16334 removed this kind.

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 Nov 1, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

This had stopped merging after quattro moved, so I ported it and pushed two commits on top. It merges cleanly again at bc1f53f.

What I pushed:

Reproduction at bc1f53f on a disposable Omarchy worker (foot, 1280x800), with quattro and this head with the fix reverted run in the same session:

Text size quattro fix reverted this branch
default 875x600, 121 columns 875x600, 121 columns 875x600, 121 columns
18 77 columns, logo wraps 77 columns, logo wraps 85 columns
20 70 columns, logo wraps 70 columns, logo wraps 86 columns

Tests at bc1f53f: floating-terminal-test.sh, launch-about-test.sh and ./test/cli pass. In the full shell suite, 5 of 414 files fail, and all 5 fail the same way on quattro on the same worker. CI has not reported on the new head yet.

Second opinion: Codex Medium and muse-wonder (pi, high effort) reviewed the port and the whole diff against quattro. Neither found a defect. They agreed with me, though their independence is not guaranteed. Codex noted that the settle_grid before the fit adds a short wait even at the default size. I left it in because without it stty can read the grid before the window has settled.

For you, @londospark: the description still says the fitted size is cached in presentation.fit and re-applied through presize_window/apply_size_rule. The code dropped that cache, so could you update that paragraph to match?

Waiting on: the maintainer. The fix is verified, but how big it should be is their call: the new shared helper, the omarchy-launch-about refactor, and how many tests to keep. #13563 and #12268 touch the same launchers, so whichever lands second will need a merge.

@londospark

Copy link
Copy Markdown
Author

Updated the description to match the code at bc1f53f: the presentation.fit cache paragraph now says the cache was dropped and why, and it notes that the fit only grows the window and that the resize plumbing is shared with omarchy-launch-about. Thanks for porting this onto current quattro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants