Skip to content

Keep the launch OSD from sticking on screen - #18678

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

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

Conversation

@OmarGonD

Copy link
Copy Markdown

The "Opening …" OSD is shown with duration: 0 and dismissed by a separate detached omarchy-shell osd close call. When the app's window appears right as the OSD opens (around the 2s delay, e.g. Microsoft Teams), the close can run before the show, leaving the OSD on screen with nothing left to dismiss it.

Show it for the remaining launch timeout (launchTimeout.interval - launchDelay.interval) instead, so it always expires on its own. Normal close-on-window behavior is unchanged.

🤖 Generated with Claude Code

The Opening <app> OSD was shown with duration 0 and closed by a separate
detached omarchy-shell call. When the app's window appeared right as the
OSD opened, the close could run before the show, leaving the OSD up with
nothing to dismiss it. Show it for the remaining launch timeout instead so
it always expires on its own.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This change appears safe to merge.

Summary

Gives launch feedback a finite lifetime so a close that arrives before its show cannot leave the message on screen forever.

  • The app-launch OSD now expires after the remaining launch timeout.

Reviews (1) · Last reviewed commit: "Keep the launch OSD from sticking on scr..." · Reviewed by Greptile

@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks @OmarGonD. The diagnosis is right: the launch OSD is shown with duration: 0 and closed by a separate detached omarchy-shell osd close, so a close that reaches the shell first leaves the toast up for good. Giving it launchTimeout.interval - launchDelay.interval bounds that.

Several older open pull requests fix the same bug, though, and the oldest of them, #9819, already makes this exact change. It drives the OSD in-process (shell.summon/shell.hide instead of two spawned omarchy-shell calls), which removes the show/close race itself, and since 36dedf2 it also shows the toast with the same launchTimeout.interval - launchDelay.interval duration as a backstop. That branch was reproduced and verified on a worker built from the Omarchy ISO. So this pull request adds nothing #9819 doesn't already have, and on its own it keeps the race: an overtaken close would still leave a stale toast up for about 13 seconds.

What was checked: this diff against current quattro (shell/services/AppLibrary.qml and the OSD's show() in shell/plugins/osd/Osd.qml), and the competing fixes #9819, #12966, #13095, #13606, #15475, #16883 and #18453. #12966 addresses a different bug (repeated launches restarting launchTimeout). Nothing was run for this pull request, because a fix that won't be the one merged doesn't need a worker of its own.

Second opinion: Codex Medium and muse-wonder (pi, thinking high) were each given the eight diffs and asked which should win, without my answer. Both chose #9819 for the same reasons and found nothing here worth folding into it. Their independence from this review isn't guaranteed. Neither found a defect in this change itself.

This waits on the maintainer, who chooses between the competing fixes. The recommendation is #9819.

@chessing234

Copy link
Copy Markdown
Contributor

your commit is in #21025. the launch show duration is launchTimeout.interval, so a lost close still expires the toast. it is not 0, which left the OSD up with no hide timer. @dhh @omarchybot if 21025 lands, this can close as superseded.

@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks for pointing to #21025. The 13-second expiry from this PR is already on quattro through #9819 (3df6c5d535). That change also moves the show and close calls into the shell process, removing the race between the two detached commands. If a show is queued while the OSD plugin loads, the expiry still clears it after it appears.

GPT-6 High in Codex compared this diff with the squash commit and the current quattro source. Opus 5.5 High agreed that this PR adds no behavior beyond the merged fix. The second review's independence isn't guaranteed. This was a source review. The PR is open for a maintainer to close as superseded.

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.

3 participants