Repository navigation
Integrate overlapping launch OSD and notification toast changes - #21025
chessing234 wants to merge 21 commits into
Conversation
beginLaunchFeedback() was calling launchTimeout.restart() on every invocation, so repeated launch triggers kept pushing the 15s safety-net out and the Launching… OSD could stick indefinitely. Start the timeout only when it is not already running; keep restarting launchDelay.
A fixture runs the app library's launch feedback with its timers shortened: a second launch while the OSD is up keeps the first deadline, and a launch after the deadline passed gets a fresh one.
Checking the OSD at fixed times let a stalled event loop look at the wrong moment. Record when the OSD opens and closes, and compare the close with when each launch began, with a 2s timeout so the margins are wide.
`beginLaunchFeedback` restarted `launchTimeout` on every invocation, so retriggering a launch pushed the 15s safety-net back each time and the toast could stay on screen indefinitely. - Start `launchTimeout` only when it is not already running; the first launch's deadline still bounds the feedback - `launchDelay` still restarts so a retriggered launch updates the toast text Fixes omacom#12922. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
The launch OSD shows with no duration, and show and close each ran as a detached omarchy-shell call. When the app's window appeared just after the 2s delay, close could reach the OSD before show did and leave it open for good; the 15s timeout could not help because the OSD already counted as closed.
A Process does not report running until it has started, so a close in the same turn as the show still went out first. Track the pending show with a flag of our own, and move the show into showLaunchOsd() so the test can show and close in one turn, without real desktop window changes cancelling the launch first.
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.
closeLaunchFeedback spawns 'omarchy-shell osd close' as its own process, racing the 'osd show' the 2s launch delay spawned. If close arrives first, the OSD then opens with duration 0, which stops hideTimer and never auto-hides, and no later close can take it down. Stamp each launch's serial into the show payload and record the highest closed serial in a new 'osd closeLaunch <serial>' handler, so a late show for an already-closed launch is dropped however the two IPC calls arrive. Fixes omacom#16808
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The show call has to expire on its own if the close is lost, and it has to carry the launch serial so a late show is dropped. A delete from the app menu leaves that menu open.
The library starts gtk-launch with an argument vector, not one shell string.
Desktop and icon scans use bash -c. Removal uses a login shell for PATH, and gtk-launch is an argument list that keeps the .desktop suffix.
The same launch keeps its 15 seconds. A different app gets a new window.
Confidence Score: 5/5
[Medium impact] The latest test moves appear safe to merge; the earlier request for visual evidence remains open. Findings
SummaryThis PR combines launch feedback fixes with notification layout and countdown changes.
No new issues were found in the latest changes. Reviews (3) · Last reviewed commit: "Keep launch feedback checks in the dock ..." · Reviewed by Greptile |
| var gradient = spec.gradient | ||
| if (gradient && gradient.enabled) { | ||
| gradient = { colors: gradient.colors.map(function(c) { return Border.cssColor(c, 0.3) }), | ||
| angle: gradient.angle, enabled: true } | ||
| } | ||
| return { color: Border.cssColor(spec.color, 0.3), widths: spec.widths, gradient: gradient } |
There was a problem hiding this comment.
Border changes lack visual evidence
The PR description says the notification border changes were not screenshotted. The repository requires checking visual changes in the running UI and attaching screenshots, plus a recording for motion. Add this evidence before merging, including gradient borders and unequal side widths in a right-to-left locale.
File Used: AGENTS.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
|
ready for a look @dhh @ryanrhughes |
|
Thanks for the time you put into this. Some of the fixes you added on top catch real bugs in the original PRs. I'm closing it anyway, along with the other Integrate PRs. Each bundle puts several people's work in one branch. We can't review it one change at a time or revert a single piece. Merging it would also leave every original PR open. That's why our PR template asks for one problem per PR. None of the bundles ran on an Omarchy install either. Please post each fix on the PR it belongs to, so its author can pick it up. If two PRs conflict, a comment on the later one helps us most. A small fix of your own, tested on a real install, is always welcome. Smaller and proven gets merged. Thanks! |
Why one branch
The launch toast is one OSD with one 15 second deadline, and five pull requests were each fixing a different way it gets stuck or restarted. They all edit
AppLibrary.qml. Two more change the notification card that uses the same toast surface: where it is placed, and the countdown drawn on its border. A browser name in the notification markup is the same message path.Incorporated pull requests
Original commits are cherry-picked. They are not squashed into one author.
runningturns true.closeLaunch, so a late show for a launch that already closed is dropped.How the conflicts were resolved
Show and close stay separate
omarchy-shellcalls. Close waits while the show is still in flight, and the show payload carries bothduration: launchTimeout.intervalandlaunch: root.launchSerial. A duration of 0 was what left the OSD up with no hide timer. A duration of only the time after the 2 second delay was shorter than the deadline the launch tests require. The same-app deadline is not restarted. A different app still gets a new 15 seconds. The OSD is summoned through that tracked show, not a second detached show that skips the pending flag.The app-search test that arrived with the launch work expected a confirmed delete to close the menu. The menu stays open and the app drops out of the list. The assertion matches that.
Tests
app-library-launch-test.shpassed, including the bounded deadline, the finite duration, and the launch serial.osd-test.shpassed, including a late show for a closed launch being dropped.app-search-test.shpassed after the delete assertion matched the menu that stays open.notifications-test.shpassed its logic checks and then failed while preparing a state directory, becausechmod --is not accepted by the chmod on this Mac. There is no Omarchy shell here, so the launch toast and the notification border were not screenshotted.Closure of the original pull requests is left to the maintainers.
Made with Cursor