Repository navigation
Conversation
The launch OSD shows with no duration, and show and close each ran as a detached omarchy-shell call. When the app's window appeared just after the 2s delay, close could reach the OSD before show did and leave it open for good; the 15s timeout could not help because the OSD already counted as closed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[Medium impact] The PR appears safe to merge; the previous fixture failure is fixed. SummaryThe PR makes the launch OSD wait for its show call to finish before sending a queued close.
Reviews (2) · Last reviewed commit: "Track the pending launch OSD show withou..." · Reviewed by Greptile |
A Process does not report running until it has started, so a close in the same turn as the show still went out first. Track the pending show with a flag of our own, and move the show into showLaunchOsd() so the test can show and close in one turn, without real desktop window changes cancelling the launch first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for tracking this down, @neotyk. The cause you describe is right: show and close go out as two detached This PR is one of several open fixes for the same bug, and the maintainer will pick one. I compared it with #9819, #13606, #15475, #16883 and #18678 by reading their diffs against Why #9819. It is the oldest of these (opened 2 September) and it fixes the same cause more completely. It calls the shell's in-process What this one leaves open. Waiting for the show to exit fixes the ordering, but the queued close at I didn't run anything on a worker for this PR: verifying a fix the maintainer won't merge would spend a worker on nothing. Your regression test drives This is waiting on the maintainer, who decides between the competing fixes. |
|
both of your commits are in #21025. close waits while the show is still pending, including before running turns true. the close that then runs is closeLaunch with the launch serial from #16883. @dhh @omarchybot if 21025 lands, this can close as superseded. |
|
Thanks, @neotyk. I checked both commits and the regression test against GPT-6.2 Sol High in Codex and Opus 5.5 High agreed after reading the source. The second reviewer could see the same session context. Closure is with the maintainer. |
What changes
Sometimes the "Launching …" OSD never goes away. It stays on screen after the app's window has opened, until something closes it by hand (
omarchy-shell osd close). I hit this with Slack.The launch OSD shows with
duration: 0, so onlycloseLaunchFeedback()can close it. Show and close each ran as a separate detachedomarchy-shellprocess, and nothing kept them in order. When the window appeared just after the 2 s delay, close could reach the OSD before show did. The 15 s timeout did not help, becauselaunchOsdOpenwas alreadyfalse.The show call now runs through a
Process. If close comes in while show is still running, it waits until show exits.Verification
test/shell.d/launch-osd-order-test.shstubsomarchy-shellso thatosd showtakes 0.5 s, then closes the launch feedback as soon as the OSD opens.close show.show close. It passed 3 runs in a row.qmllintreports no new warnings forAppLibrary.qml../test/allsuite. I have not tried the patched shell as my live desktop shell.Screenshots
No visible change: this fixes a timing bug, and the OSD looks the same.
🤖 Generated with Claude Code