Repository navigation
Give launch OSD a finite duration so a lost close can't leave it up - #13536
walteraandrade wants to merge 1 commit into
Conversation
Automated AI review
Outcome: No defects found; several open PRs change the same DetailsVerified (source, plus a timer model that runs the real
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 Related open PRs
Optional notes
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):
Review informationTest scope: Source review; sandbox runs of two existing shell tests (app-search, osd), the proposed assertion and a timer model at 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. |
|
Reviewed at 978dcb1 against The change is correct. It competes with #11568, which makes the same one-line change with a 15000 ms literal, adds an assertion to 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. |
Fixes #13535
duration: launchTimeout.interval - launchDelay.interval(13 s) instead of0, so it expires on its own when launchTimeout would have closed it anyway.closeLaunchFeedback()still dismisses it early in the normal path; the duration only matters if thatosd closeis lost or lands before theosd show.launchOsdOpencomment.Fixes #10487