Skip to content

Add timeout duration to app launch notifications (#13535, #13566) - #13802

Closed
szaidi-code wants to merge 1 commit into
omacom:quattrofrom
szaidi-code:fix/launch-osd-timeout-13535
Closed

szaidi-code wants to merge 1 commit into
omacom:quattrofrom
szaidi-code:fix/launch-osd-timeout-13535

Conversation

@szaidi-code

Copy link
Copy Markdown
Contributor

Closes #13535
Closes #13566

Summary

App launch notifications created with permanent duration: 0 could remain stuck indefinitely on screen if the target window failed to notify completion or if the close signal was dropped.

Changes

  • Set a finite timeout duration of 15000ms (matching the 15s launch timeout) on launch OSD notifications in shell/services/AppLibrary.qml.

@sanjyay

sanjyay commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Thanks for addressing #13535 and #13566! Having a finite duration backstop on the launch OSD prevents toast notifications from getting stuck when window signals or close commands are missed.

A few observations and suggestions:

  1. Duration Calculation & Timing Alignment:
    In AppLibrary.qml, launchDelay ($2000$ ms) and launchTimeout ($15000$ ms) are started simultaneously at launch ($T=0$). Because the OSD is triggered when launchDelay fires ($T=2\text{s}$), setting duration: 15000 causes the OSD to stay visible until $T = 2\text{s} + 15\text{s} = 17\text{s}$ if the close signal is lost, outliving launchTimeout by 2 seconds.
    Using the remaining time dynamically:

    duration: launchTimeout.interval - launchDelay.interval

    evaluates to $13000$ ms so that the OSD automatically dismisses at $T=15\text{s}$ (aligning with launchTimeout), and avoids hardcoding 15000 if the timer intervals change in the future.

  2. Test Coverage:
    Consider adding an assertion in test/shell.d/app-search-test.sh to verify that launchDelay supplies a non-zero duration to omarchy-shell osd show, ensuring this backstop cannot inadvertently regress.

  3. Related Pull Requests:
    Note that PR Give launch OSD a finite duration so a lost close can't leave it up #13536 and PR Give launch OSD a finite duration backstop #13669 also target issue Launch OSD ("Launching <app>…") can stay on screen forever #13535 with related approaches.

If you'd prefer not to receive these independent reviews on your PRs, reply to this comment, and I won't review your future PRs.

@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks for this. It makes the same change as #11568, which was opened earlier against quattro: both replace duration: 0 with duration: 15000 on the launch OSD's osd show call in shell/services/AppLibrary.qml, so a lost or out-of-order osd close can no longer leave "Launching…" on screen. The code change is identical line for line, and #11568 also adds an assertion to test/shell.d/app-search-test.sh and has already been reproduced and verified on a worker, so I'm closing this one as a duplicate of it.

I compared the two diffs by reading them; nothing was run for this pull request. Codex Medium, asked separately with only the two pull requests in front of it, agreed they are the same change; it may have been able to read my reasoning, so its agreement isn't independent.

#11568 does not name #13566, which this pull request closes; the Brave report there is the same stuck card, so that link is for the maintainer to add when #11568 lands. If I've got this wrong and there is something here #11568 lacks, say so and this can be reopened.

@omarchybot omarchybot added the duplicate This issue or pull request already exists label Oct 3, 2026
@omarchybot omarchybot closed this Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working duplicate This issue or pull request already exists

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Launch OSD toast ("Launching X…") can get stuck on screen indefinitely Launch OSD ("Launching <app>…") can stay on screen forever

4 participants