Repository navigation
Keep launch OSDs from sticking on screen forever - #8890
chessing234 wants to merge 4 commits into
Conversation
Launch feedback uses duration 0 and relies on an explicit close. If that close IPC is dropped or loses a race to show, the card stayed forever.
Guarding close on launchOsdOpen meant a close that arrived before show never cleared the later sticky OSD, and the flag then blocked retries.
There was a problem hiding this comment.
Pull request overview
Adds safeguards to prevent launch OSDs from remaining indefinitely.
Changes:
- Adds a 30-second maximum lifetime for sticky OSDs.
- Revises launch-feedback cleanup behavior.
- Adds regression assertions.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
shell/services/AppLibrary.qml |
Changes launch OSD cleanup. |
shell/plugins/osd/Osd.qml |
Adds the sticky OSD lifetime timer. |
test/shell.d/app-search-test.sh |
Adds regression assertions. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| /id: maxLifetimeTimer[\s\S]*interval: 30000/.test(osdQml), | ||
| 'sticky OSDs have a 30s max lifetime when duration is 0' |
| // Always issue close. show/close are separate detached processes; a close | ||
| // that loses the race to show would otherwise leave duration-0 OSD up, and | ||
| // the launchOsdOpen guard would then refuse every later close. | ||
| Quickshell.execDetached(["omarchy-shell", "osd", "close"]) |
|
Reviewed on a disposable VM built from the Omarchy ISO, with the compositor serving this branch ( The OSD half works, and it is proven live
AppLibrary.qml:176 dismisses an unrelated OSD on every fast launchThis is the one thing worth changing. Proven on the worker by mutation, not reasoned. A 60s OSD was put on screen, then an app was launched from the apps menu:
A The race in root cause 1 of #8795 is bounded, not fixed
The repo already has the race-free route, and three sibling call sites use it: That is a larger change than this one, and whether to take the backstop now or go in-process is the maintainer's call, so nothing has been pushed to this branch. Two smaller notesThe cap lives in The new assertions (app-search-test.sh:143 and :151) grep the QML source text, and pass unchanged if Related: #8242 reports the same bug separately and this would close it too. #8570 touches Waiting on you for the |
|
@dhh @ryanrhughes ready for review |
|
folding into #12115 with the other bar panel fixes |
Launch feedback can remain visible when detached show/close processes arrive out of order. AppLibrary now uses the injected shell host's synchronous
callIfLoadedpath, closes feedback only after a successful open, and gives launch feedback a 13-second lifetime. Fast launches no longer close an unrelated OSD. The public duration-zero OSD behavior is preserved.Fixes #8795.
Validation:
bash test/shell.d/launch-feedback-test.sh,bash test/shell.d/app-search-test.sh, andbash test/shell.d/osd-test.shpass. The focused test executes the QML functions with a fake shell host to cover fast launches, ordered calls, stale completion, and unloaded plugins.Live Quickshell verification remains pending: already-running apps, delayed launches, and volume/brightness OSD interaction require an Omarchy desktop. It was unavailable in the current macOS environment.