Skip to content

Give launch OSD a finite duration so a lost close can't leave it up - #13536

Closed
walteraandrade wants to merge 1 commit into
omacom:quattrofrom
walteraandrade:fix/launch-osd-stuck
Closed

walteraandrade wants to merge 1 commit into
omacom:quattrofrom
walteraandrade:fix/launch-osd-stuck

Conversation

@walteraandrade

@walteraandrade walteraandrade commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #13535

  1. Launch OSD now shows with duration: launchTimeout.interval - launchDelay.interval (13 s) instead of 0, so it expires on its own when launchTimeout would have closed it anyway.
  2. closeLaunchFeedback() still dismisses it early in the normal path; the duration only matters if that osd close is lost or lands before the osd show.
  3. Updated the launchOsdOpen comment.

Fixes #10487

@llstrk

llstrk commented Sep 29, 2026

Copy link
Copy Markdown

Automated AI review

Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review.

Outcome: No defects found; several open PRs change the same osd show line in different ways (see Related open PRs).

Details

Verified (source, plus a timer model that runs the real AppLibrary.qml, Osd.qml and OsdModel.js function bodies with stand-in timers and IPC):

  • The payload's duration is 15000 - 2000 = 13000 ms, which the OSD's hideTimer uses as its interval. At this head both launch timers always restart together, so 13 s is exactly the time left on launchTimeout.
  • Close lost, close arriving before the show, and a windowless app whose timeout close is lost: quattro leaves "Launching X…" up until something else closes or replaces it; this head hides it about 15 s after the click.
  • Fast and slow launches, a relaunch at 10 s, and a volume OSD shown during or after a launch behave as on quattro. Every OSD goes through show(), which restarts or stops hideTimer, so the launch card's timer cannot dismiss another OSD.
  • test/shell.d/app-search-test.sh and osd-test.sh pass at this head.

Residual (by design): the change bounds the show/close race rather than removing it. If the window maps right at the 2 s mark and the close overtakes the show, the card still stays about 13 s after the app opened. Open issue #8242 covers the same race and the choice between a cap and in-process calls.

One normal-path difference: a relaunch just before 15 s leaves a gap of up to about 2 s with no card, where quattro kept the first card up.

Related open PRs
Optional notes
  • Optional test improvement: no test covers the new duration. This assertion, added after the existing launch-feedback check in test/shell.d/app-search-test.sh, fails on the merge-base and passes at this head (it pins source text, like the file's other AppLibrary checks):
const launchDelayMatch = appLibraryQml.match(/id: launchDelay[\s\S]*?\n  \}/)
assert(launchDelayMatch, 'app library launchDelay timer exists')
assert(
  launchDelayMatch[0].includes('duration: launchTimeout.interval - launchDelay.interval'),
  'launch OSD expires on its own when launchTimeout would have closed it'
)

Actual output at the merge-base (exit 1): not ok - launch OSD expires on its own when launchTimeout would have closed it. At this head (exit 0): ok - launch OSD expires on its own when launchTimeout would have closed it.


Review information

Test scope: Source review; sandbox runs of two existing shell tests (app-search, osd), the proposed assertion and a timer model at 978dcb16 and the merge-base; not run in a live shell or compositor.

AI process: Opus 5.5 Medium coordination and synthesis, Opus 5.5 Xhigh technical review and final fact check, GPT 6 Sol Xhigh search for related issues, Opus 5.5 Medium editorial check.

Opt out: To stop receiving these reviews, reply to this comment saying so.

@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed at 978dcb1 against quattro, by reading the source only. Nothing was run on a worker, for the reason below.

The change is correct. Osd.qml:69-70 starts its own hide timer whenever duration is positive, so showing the launch card with launchTimeout.interval - launchDelay.interval (13 s) means a osd close that gets lost, or that arrives before the osd show, no longer leaves "Launching…" up forever. The normal path still closes it early through closeLaunchFeedback(). I found no defect.

It competes with #11568, which makes the same one-line change with a 15000 ms literal, adds an assertion to test/shell.d/app-search-test.sh, and has already been reproduced and verified on a worker. Both fix the same cause on the same line. The only behavioural difference is when a stranded card disappears: about 15 s after the click here, about 17 s with #11568. This one derives the duration from the timers instead of hard-coding it. #11568 has a test. Neither difference outweighs the other, and since #11568 was opened first and is already verified, I'm leaving this one unlabelled rather than verifying a second copy of the same fix. #13669 and #13095 take the same approach as well. #12966 leaves duration: 0, so on its own it doesn't fix this.

Second opinion: Codex Medium looked at all of the competing pull requests and reached the same conclusion: #13536 and #11568 are materially the same fix, neither has a defect, and it gave this one a slight edge for deriving the duration from the timers. It may have seen my reasoning, so its agreement isn't independent.

Which one to merge 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.

[Bug] “Launching X...” notification never disappears Launch OSD ("Launching <app>…") can stay on screen forever

3 participants