Skip to content

Keep the "Launching…" OSD from getting stuck on screen - #15475

Open
AI091 wants to merge 1 commit into
omacom:quattrofrom
AI091:fix-launch-osd-race
Open

AI091 wants to merge 1 commit into
omacom:quattrofrom
AI091:fix-launch-osd-race

Conversation

@AI091

@AI091 AI091 commented Oct 14, 2026 •

Copy link
Copy Markdown

What happens

I opened Antigravity from the Apps menu. About 2 seconds later, the "Launching Antigravity…" OSD came up. Antigravity opened, but the OSD stayed on screen. Two minutes later I opened Slack from the menu, and the OSD still said "Launching Antigravity…". It was still there after Antigravity quit, about 7 minutes after the launch. Only omarchy-shell osd close removed it.

Other people see the same thing with other apps (#8242, #9817, #14406).

Why

The OSD has no timer of its own. The shell shows it 2 seconds after a launch and closes it when the app window opens. The show and the close go out as two separate omarchy-shell processes, and nothing keeps them in order. If the window opens just after the 2-second mark, the close can arrive first. The OSD then opens with nothing left to close it.

In my case, Antigravity was ready at 19:37:42.9, and the show went out at about 19:37:43.2.

If the two calls start together, the OSD stays open in 4 of 10 runs:

omarchy-shell osd show '{"message":"race test","duration":0}' &
omarchy-shell osd close &
wait; omarchy-shell osd state   # "open" in 4 of 10 runs

Change

AppLibrary now shows and closes the OSD with the shell's own summon() and hide(), as BrightnessKeys does. Both calls run in order inside the shell, so the close always comes after the show.

#9819 makes the same change. This PR adds a regression test and a null check for host. If you take #9819, close this one.

Testing

  • The new assertion in test/shell.d/app-search-test.sh fails on quattro and passes with this change.
  • On a live shell, omarchy-shell shell summon omarchy.osd with "duration":0 keeps the OSD open, and omarchy-shell shell hide omarchy.osd closes it.
  • ./test/shell gives the same results with and without this change. The failures on this machine come from the local setup.
  • I did not run this branch as my desktop shell.

Fixes #8242

The launch feedback showed and closed the OSD through two detached
omarchy-shell processes. Nothing orders them, so when an app maps its
window just after the 2s delay the close can reach the shell first. The
duration-0 OSD then opens after its close with launchOsdOpen already
cleared, and stays on screen until the shell restarts.

Drive the OSD through the shell host in process instead, as
BrightnessKeys does, so a close always lands after its show.
@AI091 AI091 changed the title Stop stranding the Launching… OSD when its close overtakes its show Keep the "Launching…" OSD from getting stuck on screen Oct 14, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks for the clear write-up of the race. I read the diff against quattro (Opus 5.5) but have not labelled it or run it on a worker yet.

What it is. The change in shell/services/AppLibrary.qml and shell/shell.qml is the same as #9819's, which is older: both pass the shell into AppLibrary and use summon("omarchy.osd", …) and hide("omarchy.osd") in place of the two detached omarchy-shell osd calls, so the close can no longer overtake the show. This pull request also adds an assertion to test/shell.d/app-search-test.sh that checks the source for those calls, plus a null check on host. #9819 has already been verified on a worker.

Why nothing else happened yet. Every item here gets a second opinion from a second model (Codex Medium). The reviewer is reachable, but the bot has used up today's review allowance, so the bug classification has not been confirmed. Until it is, this pull request gets no labels, and neither the duplicate check against #9819 nor a worker run has been done.

What happens next. It is waiting on a review pass with the second opinion, and on the maintainer to choose between this and #9819.

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.

Launching… OSD can remain indefinitely due to unordered show/close IPC calls

2 participants