Skip to content

Guard launcher open to first frame - #15311

Merged
dhh merged 3 commits into
quattrofrom
perf/menu-open-budget
Oct 14, 2026
Merged

dhh merged 3 commits into
quattrofrom
perf/menu-open-budget

Conversation

@dhh

@dhh dhh commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

What

Plan §2, launcher open to first frame. New test/shell.d/menu-open-budget-test.sh: in a scratch shell, three warm summons of omarchy.menu, timing until the compositor maps its surface at a real size (namespace omarchy-menu, own pid). Fastest wins; budget 150ms before SPEED_PERCENT scaling (measured 11-14ms here; the floor is IPC + remap). The menu is keepLoaded, so this is the open a user gets; first-open-after-start pays the plugin scan, covered by the shell startup guard (#15310). It certifies the surface mapped, not content revealed.

Scratch shell isolation follows the idle-spawn test: stay-awake marker, bash -lc stub, session-command stubs.

Verification

  • Passes here with a compositor: ok - menu opens within 150ms (11ms).
  • Codex review (2 passes): stay-awake marker and login-shell stub added; final pass clean.

From plans/overnight-quality.md §2.

@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Low impact] The PR appears safe to merge; the previous startup-check finding is fixed and no new actionable issues were found.

Summary

Adds a launcher speed test that measures three warm opens in a scratch shell and checks the fastest against a scaled 150ms budget.

  • The shell test checks that the warm menu appears within its time budget.

Reviews (2) · Last reviewed commit: "Wait for a real ping reply and a confirm..." · Reviewed by Greptile

Comment thread test/shell.d/menu-open-budget-test.sh Resolved
@dhh

dhh commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

Greptile addressed: the startup wait now checks the ping reply (ok) instead of the quiet form's always-success exit, and menu mapped/absent waits only accept a state a successful compositor query confirmed (failed queries retry). Still passes here.

dhh added 3 commits October 14, 2026 03:22
Time three warm summons of the menu in a scratch shell until the
compositor maps its surface at a real size. The menu is keepLoaded,
so this is the open a user gets; first-open-after-start pays the
plugin scan and belongs to the shell startup guard. 11ms here;
budget 150ms before process-speed scaling.
@dhh
dhh force-pushed the perf/menu-open-budget branch from 023682f to a1f9b02 Compare October 14, 2026 01:24
@dhh
dhh merged commit 75565a0 into quattro Oct 14, 2026
@dhh
dhh deleted the perf/menu-open-budget branch October 14, 2026 06:03
@emirb emirb added this to the 4.5 milestone Oct 17, 2026
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.

2 participants