Repository navigation
Conversation
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.
|
Thanks for the clear write-up of the race. I read the diff against What it is. The change in 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. |
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 closeremoved 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-shellprocesses, 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:
Change
AppLibrarynow shows and closes the OSD with the shell's ownsummon()andhide(), asBrightnessKeysdoes. 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
test/shell.d/app-search-test.shfails onquattroand passes with this change.omarchy-shell shell summon omarchy.osdwith"duration":0keeps the OSD open, andomarchy-shell shell hide omarchy.osdcloses it../test/shellgives the same results with and without this change. The failures on this machine come from the local setup.Fixes #8242