Skip to content

Draw the install progress from the runtime's shared screen - #371

Merged
dhh merged 3 commits into
quattrofrom
shared-progress-icon
Oct 31, 2026
Merged

dhh merged 3 commits into
quattrofrom
shared-progress-icon

Conversation

@dhh

@dhh dhh commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator

First-boot setup (omarchy-provision-owner) draws the same progress screen as the install dashboard, from a copy that drifted: it kept the bar when the dashboard moved to tracing Omarchy's icon. Apple Silicon Macs only ever see that copy. omacom/omarchy#17156 moves the tracer, its layout and the rows beneath it into the runtime as install/provisioning/progress-icon.sh. This PR makes the dashboard use that file too.

build-iso.sh refuses to build without the file, as it does for setup-form.sh, because the dashboard would have nothing to draw. The PR's ISO builds therefore need an edge omarchy-dev built from omarchy's quattro after #17156, which merged on 2026-10-31.

Change

  • builder/build-iso.sh vendors progress-icon.sh into /usr/share/omarchy-iso/, from --local-source or from the runtime package, with the same missing-file error as setup-form.sh.

  • omarchy-install-dashboard sources the vendored file, falling back to $OMARCHY_PATH for dry runs, and drops its own tracer, cell-size probe and layout code. It keeps its progress model, the verify status line and the translated tips.

  • Dashboard tests (dashboard-release-gate-test.sh, install-media-diagnosis-test.sh) point PROGRESS_ICON at a no-op fixture, test/unit/fixtures/progress-icon.sh, since CI has no omarchy runtime. They cover the dashboard, not the drawing, which is tested in the omarchy repo.

  • .github/workflows/install-test.yml builds pull requests and merges from edge on both architectures. This branch is built against omarchy's quattro, which the edge packages track; x86_64 used stable, which only carries a quattro change after the next release. Stable and rc stay a choice for runs by hand.

Testing

  • The shared tracer matches the dashboard's removed copy pixel for pixel, at scales 1–3 and cell sizes 8×16, 10×20 and 9×19.
  • dashboard-release-gate-test.sh (13 checks) and install-media-diagnosis-test.sh (15 checks) pass.
  • Ran the dashboard through a fake three-phase install in a 40×120 pseudo-terminal, with OMARCHY_PATH at an omarchy checkout carrying the shared file, OMARCHY_UI_AUTO_REBOOT=no, and stand-in systemctl/reboot commands. It traced 0% to 100% with tips and exited 0 at the finish screen.
  • Not built into an ISO or installed in a VM.

🤖 Generated with Claude Code

First-boot setup (omarchy-provision-owner) draws the same progress
screen as this dashboard, from a copy that had drifted: it kept the bar
when the dashboard moved to tracing Omarchy's icon. The tracer, its
layout and the rows beneath it now live in the omarchy runtime as
install/provisioning/progress-icon.sh (omacom/omarchy#17156).

build-iso.sh vendors that file into the ISO the way it does
setup-form.sh, and refuses to build without it. The dashboard sources
it and keeps only its own progress model, the verify status line and
the translated tips. Dashboard tests run with a no-op fixture in its
place, since they cover the dashboard and not the drawing.

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

greptile-apps Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the previous report-test failure is fixed.

Summary

The install dashboard now draws progress with the runtime’s shared screen.

  • The install dashboard now draws progress with the runtime’s shared screen.
  • Automated install-test builds now use edge on both architectures.

Reviews (3) · Last reviewed commit: "Read the report step's edge default in t..." · Reviewed by Greptile

This branch is built against omarchy's quattro, which the edge packages
track, so a pull request's ISO should install what quattro is now, as
the aarch64 build already did. x86_64 built from stable, which can only
carry a quattro change after the next release: a change here that
depends on one could not pass until then. Build both from edge; stable
and rc stay a choice for runs by hand.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread .github/workflows/install-test.yml Resolved
DjDeveloperr added a commit to DjDeveloperr/omarchy that referenced this pull request Oct 31, 2026
progress_icon_cell_size asked KDFONTOP for the font with a zero width and
height bound. con_font_get refuses a font larger than the bound with
ENOSPC, so on a Linux VT the read always failed. The CSI 16t query after
it gets no answer from the VT either, so every layout spent 150 ms in
cbreak before assuming 8x16.

Pass a 32 x 32 bound. With no data pointer the kernel then fills in only
the width and height: a plain GET returns fonts up to 32 rows, and none
the console can carry here is wider than 16. The CSI 16t query goes, since
the VT never answers it. Desktop terminals still report their cell through
the window's pixel size; one that reports none is taken to be 8x16.

This is the fix omacom/omarchy-iso#363 makes to the dashboard's own copy,
which omacom/omarchy-iso#371 replaces with this file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The test substitutes the workflow's channel expression to run the report
step by itself, and still looked for the stable default the previous
commit replaced with edge.

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

Copy link
Copy Markdown

Install test failure

x86_64 vs quattro aarch64 vs quattro
Result ❌ failure ✅ passed
Build the ISO 308.0 s −35.0 s 472.0 s −24.0 s
Install 16.7 s −3.0 s 23.9 s −0.7 s
First boot 6.3 s −5.5 s 5.7 s −0.0 s
Everyday boot 6.4 s −5.5 s 5.5 s +0.1 s

Boots are loader, kernel and userspace, without the VM's firmware.

Install phases, x86_64
Phase This PR quattro
Preparing live environment 0.5 s 1.3 s
Preparing install target 6.6 s 6.8 s
Installing Arch + Omarchy 5.3 s 5.5 s
Configuring hibernation 0.2 s 0.2 s
Configuring system 2.7 s 2.9 s
Staging provisioning 0 s 0.2 s
Finalizing boot and user 1.2 s 2.5 s
Configuring login 0 s 0 s
Configuring SSH access 0.2 s 0.1 s
Configuring Tailscale 0 s 0 s
Configuring DNS resolver 0 s 0 s
Validating boot setup 0 s 0 s
Creating factory snapshot 0 s 0 s
Install phases, aarch64
Phase This PR quattro
Preparing live environment 1.3 s 1.1 s
Preparing install target 2.1 s 2.7 s
Installing Arch + Omarchy 8.4 s 10.2 s
Configuring hibernation 0.1 s 0 s
Configuring system 10 s 8.9 s
Staging provisioning 0 s 0 s
Finalizing boot and user 1.5 s 1.4 s
Configuring login 0 s 0 s
Configuring SSH access 0.1 s 0.1 s
Configuring Tailscale 0 s 0 s
Configuring DNS resolver 0 s 0 s
Validating boot setup 0.1 s 0.1 s
Creating factory snapshot 0.1 s 0.1 s

Run · baac6f0

@dhh
dhh merged commit 449288b into quattro Oct 31, 2026
28 of 31 checks passed
ryanrhughes pushed a commit to omacom/omarchy that referenced this pull request Nov 4, 2026
…ogress frames without forking (#17036)

* Draw the Omarchy icon as first-boot setup progresses

The first-boot setup screen is a port of the ISO install dashboard, so the
first boot reads as the end of the install. The ISO replaced its 34-cell bar
with the Omarchy icon traced in green along its outline (omarchy-iso 9373d0e),
then dropped the whimsy lines under it (c55617c). The port kept the bar, the
wordmark and a "Setting up your machine" title, and every deferred install
finishes on it, every Apple Silicon image included.

Port the ISO's current screen: the icon sized to the console's font cell and
traced as setup advances, the percentage under it and the dimmed tip, in the
ISO's rows. The title goes, as "Installing Omarchy" went from the ISO's. The
trace animates at 10 Hz between 2 Hz state reads and eases over phase jumps.
Only setup's successful end completes it: the rest is traced, then the whole
icon is the last frame.

The ISO patches ▀ and ▄ into its Terminus console font. The kbd fonts
scale_console_font picks from (default8x16, sun12x22, latarcyrheb-sun32)
already map █, ▀ and ▄, which the logo draws with too, so first boot needs no
font of its own. Their half blocks split a cell at 7/16, 10/22 and 14/32
scanlines rather than in half, as in the logo. A new test checks the fonts
installed.

sun12x22's cell isn't 2:1 like Terminus's, and the ISO's proportional width
drew two of the icon's fifteen columns, the right edge and the bridges, at
half stroke there. Columns are whole cells instead: the ISO's icon exactly on
8x16 and 16x32, and 9% wider than tall on sun12x22.

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

* Fold the first-boot progress checks into the owner setup tests

AGENTS.md asks to extend an area's existing test file rather than add a
new *-test.sh. The progress screen checks move from their own file into
provision-owner-keyboard-test.sh, the existing test that runs
omarchy-provision-owner's functions against fixtures. They run in a
subshell there, so the screen's stubs (term_size, sleep) and globals stay
out of the keyboard tests. The checks themselves are unchanged.

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

* Size the first-boot icon in whole cells without reading the font

The cell-size read never worked on a Linux VT. It asked KDFONTOP for the
font with a zero width and height bound, which con_font_get refuses with
ENOSPC. The CSI 16t query after it gets no answer from the VT, so every
layout spent 150 ms in cbreak before assuming 8x16. The icon only looked
right because its width came out at 15 * scale on all three console fonts
anyway.

Drop the read, the python3 it ran and the cell math. The icon is 15 * scale
cells wide, each grid square scale pixels a side, so every stroke is as
wide as the next on default8x16, sun12x22 and latarcyrheb-sun32: square on
the two 2:1 fonts, 9% wider than tall on sun12x22. The width check can't
fail at the ISO's scale thresholds any more and goes too. The tests drop
the font cells production never reached, and the even-stroke check that
only restated the width.

The ISO's dashboard makes the same read.

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

* Keep the grey under the first-boot icon's tracing tip

Where a traced pixel sat over an untraced one, the cell was drawn as green
▀ on a bright black background, CSI 32;100m. The Linux VT reads 100-107 as
40-47, so the grey lower half came out in background colour 0 and vanished:
at the tip of every downward stroke, and at scale 3 in the cells that
straddle two icon rows, which can stay like that through a long re-key.

Keep the bright half in the foreground and the other as the background,
picking ▀ or ▄ to match, so a green upper over a grey lower is grey ▄ on
green, CSI 90;42m. No cell asks for a bright background any more.

The ISO's dashboard draws the same cell.

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

* Draw first-boot setup frames without forking

The trace draws at 10 Hz, five times the old bar's rate, but each frame
still forked stty to check the console size, and each centered line forked
stty | awk for the width and printf | sed to measure itself: roughly two
hundred forks a second while finalize-user and the UKI rebuild work.

The text's padding is worked out with the layout, a line is plain text
whose length bash knows, and the tip is picked and trimmed in place, so a
frame starts no process at all. The console size is checked on the 2 Hz
state tick instead, which still rebuilds the icon at a new size and keeps
its progress. The tick runs stty, cat and, during finalize, grep.

The re-key test stubs the tick, which run_setup now calls.

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

* Cap the frames first-boot setup's finish draws

render_setup_finish only ended because each frame moved the drawing on, so
with render_setup_dynamic stubbed, as a test harness does, it would spin
for ever. The ease covers even the whole trace in under thirty frames; stop
at forty whatever the frames do, then draw the whole icon.

The re-key test still stubs render_setup_finish, because it never loads the
screen's functions; the stub no longer guards against a hang.

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

* Check first-boot setup's finish traces over several frames

The finish check only looked at the end state, so a finish that jumped
straight to the whole icon in one frame passed it too. It now also needs
the frames to show more than two percentages on the way to 100%.

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

* Read the console's font size in a way the VT answers

progress_icon_cell_size asked KDFONTOP for the font with a zero width and
height bound. con_font_get refuses a font larger than the bound with
ENOSPC, so on a Linux VT the read always failed. The CSI 16t query after
it gets no answer from the VT either, so every layout spent 150 ms in
cbreak before assuming 8x16.

Pass a 32 x 32 bound. With no data pointer the kernel then fills in only
the width and height: a plain GET returns fonts up to 32 rows, and none
the console can carry here is wider than 16. The CSI 16t query goes, since
the VT never answers it. Desktop terminals still report their cell through
the window's pixel size; one that reports none is taken to be 8x16.

This is the fix omacom/omarchy-iso#363 makes to the dashboard's own copy,
which omacom/omarchy-iso#371 replaces with this file.

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

* Keep the grey under the install icon's tracing tip

Where a traced pixel sat over an untraced one, the cell was drawn as green
▀ on a bright black background, CSI 32;100m. The Linux VT reads 100-107 as
40-47, so the grey lower half came out in background colour 0 and
vanished: at the tip of every downward stroke, and at scale 3 in the cells
that straddle two icon rows.

Keep the bright half in the foreground and the other as the background,
picking ▀ or ▄ to match, so a green upper over a grey lower is grey ▄ on
green, CSI 90;42m. No cell asks for a bright background any more.

The test traces every step at every scale and fails on the old cell.

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

* Draw install progress frames without forking

Both screens draw at 10 Hz, and first-boot setup does it while
finalize-user and the UKI rebuild work the disk. Each frame forked stty to
check the console size, and each of its four centered lines forked stty for
the width and printf | sed to measure itself, plus a subshell per truncated
line and one for first-boot's tip: about 200 processes a second.

The layout keeps the console width, a line is measured in bash, the status
and tip are trimmed into variables, and provision-owner's tip is picked in
place. A frame now starts no process except the console size check, which
runs on every fifth frame, 2 Hz at the callers' rate, so a console that
settles late still gets the icon rebuilt at its new size within half a
second. The frames are byte-identical to before.

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

* Give every column of the install icon the same width

The icon's width was 15 grid columns times the scale, stretched to the
font's aspect and rounded once for the whole icon. With an 8x16 cell that
is exact, and until the font read worked every console looked like 8x16.
Reading the real cell exposes the rounding: with sun12x22, which first boot
can pick, scale 1 came out 14 columns wide, so grid column 14, the icon's
right edge, was never drawn. At scale 2 its 28 columns made some strokes
one column wide and others two.

Give each grid column the same whole number of screen columns, the nearest
to square in the font, so the icon is always 15 times that. 2:1 fonts,
the patched Terminus and latarcyrheb-sun32 included, draw exactly as
before.

Found by Greptile reviewing this branch.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
cursor Bot pushed a commit to mark-groves/omarchy that referenced this pull request Nov 4, 2026
…ogress frames without forking (omacom#17036)

* Draw the Omarchy icon as first-boot setup progresses

The first-boot setup screen is a port of the ISO install dashboard, so the
first boot reads as the end of the install. The ISO replaced its 34-cell bar
with the Omarchy icon traced in green along its outline (omarchy-iso 9373d0e),
then dropped the whimsy lines under it (c55617c). The port kept the bar, the
wordmark and a "Setting up your machine" title, and every deferred install
finishes on it, every Apple Silicon image included.

Port the ISO's current screen: the icon sized to the console's font cell and
traced as setup advances, the percentage under it and the dimmed tip, in the
ISO's rows. The title goes, as "Installing Omarchy" went from the ISO's. The
trace animates at 10 Hz between 2 Hz state reads and eases over phase jumps.
Only setup's successful end completes it: the rest is traced, then the whole
icon is the last frame.

The ISO patches ▀ and ▄ into its Terminus console font. The kbd fonts
scale_console_font picks from (default8x16, sun12x22, latarcyrheb-sun32)
already map █, ▀ and ▄, which the logo draws with too, so first boot needs no
font of its own. Their half blocks split a cell at 7/16, 10/22 and 14/32
scanlines rather than in half, as in the logo. A new test checks the fonts
installed.

sun12x22's cell isn't 2:1 like Terminus's, and the ISO's proportional width
drew two of the icon's fifteen columns, the right edge and the bridges, at
half stroke there. Columns are whole cells instead: the ISO's icon exactly on
8x16 and 16x32, and 9% wider than tall on sun12x22.

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

* Fold the first-boot progress checks into the owner setup tests

AGENTS.md asks to extend an area's existing test file rather than add a
new *-test.sh. The progress screen checks move from their own file into
provision-owner-keyboard-test.sh, the existing test that runs
omarchy-provision-owner's functions against fixtures. They run in a
subshell there, so the screen's stubs (term_size, sleep) and globals stay
out of the keyboard tests. The checks themselves are unchanged.

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

* Size the first-boot icon in whole cells without reading the font

The cell-size read never worked on a Linux VT. It asked KDFONTOP for the
font with a zero width and height bound, which con_font_get refuses with
ENOSPC. The CSI 16t query after it gets no answer from the VT, so every
layout spent 150 ms in cbreak before assuming 8x16. The icon only looked
right because its width came out at 15 * scale on all three console fonts
anyway.

Drop the read, the python3 it ran and the cell math. The icon is 15 * scale
cells wide, each grid square scale pixels a side, so every stroke is as
wide as the next on default8x16, sun12x22 and latarcyrheb-sun32: square on
the two 2:1 fonts, 9% wider than tall on sun12x22. The width check can't
fail at the ISO's scale thresholds any more and goes too. The tests drop
the font cells production never reached, and the even-stroke check that
only restated the width.

The ISO's dashboard makes the same read.

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

* Keep the grey under the first-boot icon's tracing tip

Where a traced pixel sat over an untraced one, the cell was drawn as green
▀ on a bright black background, CSI 32;100m. The Linux VT reads 100-107 as
40-47, so the grey lower half came out in background colour 0 and vanished:
at the tip of every downward stroke, and at scale 3 in the cells that
straddle two icon rows, which can stay like that through a long re-key.

Keep the bright half in the foreground and the other as the background,
picking ▀ or ▄ to match, so a green upper over a grey lower is grey ▄ on
green, CSI 90;42m. No cell asks for a bright background any more.

The ISO's dashboard draws the same cell.

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

* Draw first-boot setup frames without forking

The trace draws at 10 Hz, five times the old bar's rate, but each frame
still forked stty to check the console size, and each centered line forked
stty | awk for the width and printf | sed to measure itself: roughly two
hundred forks a second while finalize-user and the UKI rebuild work.

The text's padding is worked out with the layout, a line is plain text
whose length bash knows, and the tip is picked and trimmed in place, so a
frame starts no process at all. The console size is checked on the 2 Hz
state tick instead, which still rebuilds the icon at a new size and keeps
its progress. The tick runs stty, cat and, during finalize, grep.

The re-key test stubs the tick, which run_setup now calls.

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

* Cap the frames first-boot setup's finish draws

render_setup_finish only ended because each frame moved the drawing on, so
with render_setup_dynamic stubbed, as a test harness does, it would spin
for ever. The ease covers even the whole trace in under thirty frames; stop
at forty whatever the frames do, then draw the whole icon.

The re-key test still stubs render_setup_finish, because it never loads the
screen's functions; the stub no longer guards against a hang.

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

* Check first-boot setup's finish traces over several frames

The finish check only looked at the end state, so a finish that jumped
straight to the whole icon in one frame passed it too. It now also needs
the frames to show more than two percentages on the way to 100%.

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

* Read the console's font size in a way the VT answers

progress_icon_cell_size asked KDFONTOP for the font with a zero width and
height bound. con_font_get refuses a font larger than the bound with
ENOSPC, so on a Linux VT the read always failed. The CSI 16t query after
it gets no answer from the VT either, so every layout spent 150 ms in
cbreak before assuming 8x16.

Pass a 32 x 32 bound. With no data pointer the kernel then fills in only
the width and height: a plain GET returns fonts up to 32 rows, and none
the console can carry here is wider than 16. The CSI 16t query goes, since
the VT never answers it. Desktop terminals still report their cell through
the window's pixel size; one that reports none is taken to be 8x16.

This is the fix omacom/omarchy-iso#363 makes to the dashboard's own copy,
which omacom/omarchy-iso#371 replaces with this file.

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

* Keep the grey under the install icon's tracing tip

Where a traced pixel sat over an untraced one, the cell was drawn as green
▀ on a bright black background, CSI 32;100m. The Linux VT reads 100-107 as
40-47, so the grey lower half came out in background colour 0 and
vanished: at the tip of every downward stroke, and at scale 3 in the cells
that straddle two icon rows.

Keep the bright half in the foreground and the other as the background,
picking ▀ or ▄ to match, so a green upper over a grey lower is grey ▄ on
green, CSI 90;42m. No cell asks for a bright background any more.

The test traces every step at every scale and fails on the old cell.

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

* Draw install progress frames without forking

Both screens draw at 10 Hz, and first-boot setup does it while
finalize-user and the UKI rebuild work the disk. Each frame forked stty to
check the console size, and each of its four centered lines forked stty for
the width and printf | sed to measure itself, plus a subshell per truncated
line and one for first-boot's tip: about 200 processes a second.

The layout keeps the console width, a line is measured in bash, the status
and tip are trimmed into variables, and provision-owner's tip is picked in
place. A frame now starts no process except the console size check, which
runs on every fifth frame, 2 Hz at the callers' rate, so a console that
settles late still gets the icon rebuilt at its new size within half a
second. The frames are byte-identical to before.

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

* Give every column of the install icon the same width

The icon's width was 15 grid columns times the scale, stretched to the
font's aspect and rounded once for the whole icon. With an 8x16 cell that
is exact, and until the font read worked every console looked like 8x16.
Reading the real cell exposes the rounding: with sun12x22, which first boot
can pick, scale 1 came out 14 columns wide, so grid column 14, the icon's
right edge, was never drawn. At scale 2 its 28 columns made some strokes
one column wide and others two.

Give each grid column the same whole number of screen columns, the nearest
to square in the font, so the icon is always 15 times that. 2:1 fonts,
the patched Terminus and latarcyrheb-sun32 included, draw exactly as
before.

Found by Greptile reviewing this branch.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
cursor Bot pushed a commit to mark-groves/omarchy that referenced this pull request Nov 5, 2026
…ogress frames without forking (omacom#17036)

* Draw the Omarchy icon as first-boot setup progresses

The first-boot setup screen is a port of the ISO install dashboard, so the
first boot reads as the end of the install. The ISO replaced its 34-cell bar
with the Omarchy icon traced in green along its outline (omarchy-iso 9373d0e),
then dropped the whimsy lines under it (c55617c). The port kept the bar, the
wordmark and a "Setting up your machine" title, and every deferred install
finishes on it, every Apple Silicon image included.

Port the ISO's current screen: the icon sized to the console's font cell and
traced as setup advances, the percentage under it and the dimmed tip, in the
ISO's rows. The title goes, as "Installing Omarchy" went from the ISO's. The
trace animates at 10 Hz between 2 Hz state reads and eases over phase jumps.
Only setup's successful end completes it: the rest is traced, then the whole
icon is the last frame.

The ISO patches ▀ and ▄ into its Terminus console font. The kbd fonts
scale_console_font picks from (default8x16, sun12x22, latarcyrheb-sun32)
already map █, ▀ and ▄, which the logo draws with too, so first boot needs no
font of its own. Their half blocks split a cell at 7/16, 10/22 and 14/32
scanlines rather than in half, as in the logo. A new test checks the fonts
installed.

sun12x22's cell isn't 2:1 like Terminus's, and the ISO's proportional width
drew two of the icon's fifteen columns, the right edge and the bridges, at
half stroke there. Columns are whole cells instead: the ISO's icon exactly on
8x16 and 16x32, and 9% wider than tall on sun12x22.

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

* Fold the first-boot progress checks into the owner setup tests

AGENTS.md asks to extend an area's existing test file rather than add a
new *-test.sh. The progress screen checks move from their own file into
provision-owner-keyboard-test.sh, the existing test that runs
omarchy-provision-owner's functions against fixtures. They run in a
subshell there, so the screen's stubs (term_size, sleep) and globals stay
out of the keyboard tests. The checks themselves are unchanged.

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

* Size the first-boot icon in whole cells without reading the font

The cell-size read never worked on a Linux VT. It asked KDFONTOP for the
font with a zero width and height bound, which con_font_get refuses with
ENOSPC. The CSI 16t query after it gets no answer from the VT, so every
layout spent 150 ms in cbreak before assuming 8x16. The icon only looked
right because its width came out at 15 * scale on all three console fonts
anyway.

Drop the read, the python3 it ran and the cell math. The icon is 15 * scale
cells wide, each grid square scale pixels a side, so every stroke is as
wide as the next on default8x16, sun12x22 and latarcyrheb-sun32: square on
the two 2:1 fonts, 9% wider than tall on sun12x22. The width check can't
fail at the ISO's scale thresholds any more and goes too. The tests drop
the font cells production never reached, and the even-stroke check that
only restated the width.

The ISO's dashboard makes the same read.

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

* Keep the grey under the first-boot icon's tracing tip

Where a traced pixel sat over an untraced one, the cell was drawn as green
▀ on a bright black background, CSI 32;100m. The Linux VT reads 100-107 as
40-47, so the grey lower half came out in background colour 0 and vanished:
at the tip of every downward stroke, and at scale 3 in the cells that
straddle two icon rows, which can stay like that through a long re-key.

Keep the bright half in the foreground and the other as the background,
picking ▀ or ▄ to match, so a green upper over a grey lower is grey ▄ on
green, CSI 90;42m. No cell asks for a bright background any more.

The ISO's dashboard draws the same cell.

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

* Draw first-boot setup frames without forking

The trace draws at 10 Hz, five times the old bar's rate, but each frame
still forked stty to check the console size, and each centered line forked
stty | awk for the width and printf | sed to measure itself: roughly two
hundred forks a second while finalize-user and the UKI rebuild work.

The text's padding is worked out with the layout, a line is plain text
whose length bash knows, and the tip is picked and trimmed in place, so a
frame starts no process at all. The console size is checked on the 2 Hz
state tick instead, which still rebuilds the icon at a new size and keeps
its progress. The tick runs stty, cat and, during finalize, grep.

The re-key test stubs the tick, which run_setup now calls.

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

* Cap the frames first-boot setup's finish draws

render_setup_finish only ended because each frame moved the drawing on, so
with render_setup_dynamic stubbed, as a test harness does, it would spin
for ever. The ease covers even the whole trace in under thirty frames; stop
at forty whatever the frames do, then draw the whole icon.

The re-key test still stubs render_setup_finish, because it never loads the
screen's functions; the stub no longer guards against a hang.

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

* Check first-boot setup's finish traces over several frames

The finish check only looked at the end state, so a finish that jumped
straight to the whole icon in one frame passed it too. It now also needs
the frames to show more than two percentages on the way to 100%.

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

* Read the console's font size in a way the VT answers

progress_icon_cell_size asked KDFONTOP for the font with a zero width and
height bound. con_font_get refuses a font larger than the bound with
ENOSPC, so on a Linux VT the read always failed. The CSI 16t query after
it gets no answer from the VT either, so every layout spent 150 ms in
cbreak before assuming 8x16.

Pass a 32 x 32 bound. With no data pointer the kernel then fills in only
the width and height: a plain GET returns fonts up to 32 rows, and none
the console can carry here is wider than 16. The CSI 16t query goes, since
the VT never answers it. Desktop terminals still report their cell through
the window's pixel size; one that reports none is taken to be 8x16.

This is the fix omacom/omarchy-iso#363 makes to the dashboard's own copy,
which omacom/omarchy-iso#371 replaces with this file.

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

* Keep the grey under the install icon's tracing tip

Where a traced pixel sat over an untraced one, the cell was drawn as green
▀ on a bright black background, CSI 32;100m. The Linux VT reads 100-107 as
40-47, so the grey lower half came out in background colour 0 and
vanished: at the tip of every downward stroke, and at scale 3 in the cells
that straddle two icon rows.

Keep the bright half in the foreground and the other as the background,
picking ▀ or ▄ to match, so a green upper over a grey lower is grey ▄ on
green, CSI 90;42m. No cell asks for a bright background any more.

The test traces every step at every scale and fails on the old cell.

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

* Draw install progress frames without forking

Both screens draw at 10 Hz, and first-boot setup does it while
finalize-user and the UKI rebuild work the disk. Each frame forked stty to
check the console size, and each of its four centered lines forked stty for
the width and printf | sed to measure itself, plus a subshell per truncated
line and one for first-boot's tip: about 200 processes a second.

The layout keeps the console width, a line is measured in bash, the status
and tip are trimmed into variables, and provision-owner's tip is picked in
place. A frame now starts no process except the console size check, which
runs on every fifth frame, 2 Hz at the callers' rate, so a console that
settles late still gets the icon rebuilt at its new size within half a
second. The frames are byte-identical to before.

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

* Give every column of the install icon the same width

The icon's width was 15 grid columns times the scale, stretched to the
font's aspect and rounded once for the whole icon. With an 8x16 cell that
is exact, and until the font read worked every console looked like 8x16.
Reading the real cell exposes the rounding: with sun12x22, which first boot
can pick, scale 1 came out 14 columns wide, so grid column 14, the icon's
right edge, was never drawn. At scale 2 its 28 columns made some strokes
one column wide and others two.

Give each grid column the same whole number of screen columns, the nearest
to square in the font, so the icon is always 15 times that. 2:1 fonts,
the patched Terminus and latarcyrheb-sun32 included, draw exactly as
before.

Found by Greptile reviewing this branch.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant