Repository navigation
fix(app): close the restart prompt and command palette synchronously on dismiss - #4724
Conversation
…on dismiss Base UI keeps a dialog popup mounted (and partially opaque) until its exit animation or transition finishes, so the restart prompt and the command palette stayed visible for 100-200 ms after Keep working / Escape. Hide the popup with display:none as soon as it is closed; Base UI then unmounts it on the next frame.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
Warden review summary — ClearNative findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (4246 ms), confidentiality-review (3901 ms), desktop-den-sync-review (5173 ms). Blockers
Advisories
Needs recheck
Observed review-thread metrics
Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority. |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (a42676ec1b6f51f831359e6b4f47320233b19565). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
|
Passed · 3/3 tests · 4/4 assertions · 2 images Commit |
Root cause
Triage cluster 7/K in
reports/e2e-red-2026-09-09/triage.md("Dismiss-then-notSeeraces"):assertAbsent(evals/packages/cdp/src/input.ts) requires the target to be gone on its first inspection, ~44 ms after the dismissing input. Both dialogs are Base UI popups that stay mounted until their exit motion finishes (useAnimationsFinishedon the popup element):AlertDialogContent(restart prompt,desktop-updater-provider.tsx):data-closed:animate-out fade-out-0 zoom-out-95 duration-100→ still opaque enough to count as visible at 44 ms →Target remained visible: "Restart OpenWork?". Test 2 of the same spec ("control rail not ready … Keep completed after update") was the follow-on of that dialog still being open.CommandDialogPopup(command palette):transition-[scale,opacity,translate] duration-200 data-ending-style:opacity-0→ the palette input with placeholderSearch actions, settings, and sessions…is still visible right afterEscape(streamed-markdown-answertest 3).What changed
Dismissal now hides the popup in the same frame:
data-closed:hiddenon the AlertDialog popup/overlay and the command palette popup/backdrop, replacing their exit animation/transition (entrance motion is unchanged).display:noneis used rather thanvisibility:hiddenbecause the AlertDialog'sduration-100leavestransition-propertyat itsalldefault, which would animatevisibilityas a discrete step and keep the element visible for the whole duration. With no running animation Base UI unmounts the popup on the next frame. No spec was changed; no waits were added.Proof (Daytona, sha
a42676ec1b6f51f831359e6b4f47320233b19565,OPENWORK_EVAL_REFpinned — sandbox log:HEAD is now at a42676ec)Placement line for both runs:
{"lane":"e2e","daytona":true,"placement":"daytona","engine":"legacy","surface":"legacy","vision":"defer",…}pnpm evals:e2e background-desktop-update --daytona→ passed 1 / failed 1 / skipped 0a confirmed update relaunch resumes only the unfinished task on its original engine(the cluster's follow-on test; red on dev)updates download outside Settings and offer a persistent, optional restart— the cluster claims now pass in the trace:click(Keep working)→notSee(text=Restart OpenWork?)ok (absent for the full 3000 ms window), andpress(Escape)→notSee(text=Restart Studio?)ok. The test then fails later, at spec line 89 (click({role:"button", text:"Check now"})in the install-failure loop):Located element was visible=true, hitTestOk=false. Covered by div text="Check now"for 30 s, i.e. the SettingsCheck nowbutton is disabled (busy || checking || downloading) after a failed install. That loop was added by fix(desktop): wait for native update readiness before restart #4714, which merged as "Verification — Incomplete" with this spec never executed; the triage lane predates it. Not touched here.pnpm evals:e2e streamed-markdown-answer --daytona→ passed 1 / failed 3 / skipped 0Run taskclick swallowed;draftTextis"\n"), unchanged and out of scope.v1 keeps long tool-rich history…— the cluster claims pass:press(Escape)→notSee(placeholder=Search servers and artifacts...)ok andpress(Escape)→notSee(placeholder=Search actions, settings, and sessions…)ok, each observed twice for the full 3 s window. It then fails later inbrowseHistory(added by fix(session): reveal newly submitted messages #4683, never reached on the lane before):keyboard browsing settles above the latest turn … expected 561 to be greater than or equal to 657(rows.at(-1).rect.top >= viewport.bottomafterPageUp). Not touched here.CONT-01 restores the exact cumulative prefix…Verdict for this PR's claim: dismissal is synchronous for both dialogs (observable in both traces). Spec-level verdict for the two files remains Incomplete because of the two unrelated downstream failures above. Both runs' sandboxes were deleted by the testkit.
Also:
pnpm --dir apps/app typecheckexit 0.Noticed, not touched
Restart & update, Settings › UpdatesCheck nowstays disabled (buttonpointer-events:none, hit lands on its wrapper) so the new install-failure loop inbackground-desktop-updatecannot proceed. Hypothesis: an automatic check → auto-download leaves the status indownloadingwith the mock'sfinishDownloadunresolved; needs a probe ofupdateStatusat that point.browseHistoryinstreamed-markdown-answertest 3 — afterPageUpthe last user row's top (561) never gets ≥ the viewport bottom (657) on Daytona.components/ui/dialog.tsxstill uses the samedata-closed:animate-out … duration-100exit pattern; any spec thatnotSees right after closing a plain Dialog will hit the same race. Left alone to stay in scope.command-palette-search/command-palette-pin-renamealready work around this race withprobe.eventually(… footer disappears)beforenotSee; those waits are now unnecessary.