Skip to content

Stop Launching OSD from sticking after app launch - #13606

Open
AnPod wants to merge 1 commit into
omacom:quattrofrom
AnPod:cursor/fix-osd-launch-dismiss-e0d3
Open

AnPod wants to merge 1 commit into
omacom:quattrofrom
AnPod:cursor/fix-osd-launch-dismiss-e0d3

Conversation

@AnPod

@AnPod AnPod commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #13264

Poll for a mapped window while launch feedback is armed, give the OSD a finite duration (5s), and shorten the failsafe to 8s so "Launching …" cannot linger indefinitely.

Draft.

Fixes #10487

Poll for a mapped window while armed, use a finite OSD duration, and
shorten the failsafe so the card cannot linger indefinitely.

Co-authored-by: AnPod <AnPod@users.noreply.github.com>
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed at 3440b0b against quattro by reading the source and comparing it with the other open fixes for this bug. Nothing was run on a worker, because the part of this change that fixes the bug is already covered by another pull request.

What fixes the stuck card here is the finite duration. Osd.qml:69 starts its own hide timer whenever duration is positive, so replacing duration: 0 means a osd close that is lost, or that arrives before the osd show, can no longer leave "Launching…" up forever. #11568 (already verified on a worker) and #13536 make that same change on the same line.

The other two parts aren't needed for the fix, and one of them changes behaviour:

  • The 250 ms launchPoll timer (AppLibrary.qml:240-246) calls maybeFinishLaunchFeedback(), which reads the same toplevelCount() and ToplevelManager.activeToplevel that the existing Connections blocks above it already react to. It doesn't check whether the OSD is actually showing or retry the close, so it catches nothing the signals miss. It just runs the same check four times a second.
  • Changing the duration to 5000 and launchTimeout to 8000 (AppLibrary.qml:254, :260) shortens the feedback for slow apps. If an app's window takes 12 s to appear, the card shows from about 2 s to 7 s and then disappears while the app is still starting. On quattro it stays up until the window appears. How long the feedback lasts is a separate choice from making it unable to stick, and it would be easier to decide in its own pull request.

Second opinion: Codex Medium compared #13606, #11568, #13536, #13669 and #9819 without being told my conclusion. It agreed that the poll adds nothing and that the shorter timings are not proportionate. It also found no correctness defect in the poll itself, and it preferred the duration-only fixes. It may have read my reasoning, so its agreement is not guaranteed to be independent. It did add one point of its own: #9819 removes the show/close race instead of just limiting how long the card can stay up, but a show that is still queued while the OSD plugin loads can land after the close. All of these pull requests target the same line, so only one of them can land as it stands.

Which fix to take is the maintainer's decision, so this is now waiting on them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Launching …" OSD can linger or stick after app launch; no way to dismiss it [Bug] “Launching X...” notification never disappears

3 participants