Repository navigation
test(phone): close a waiting pane's tab in phone-safe-area's landscape scene - #3768
Conversation
…o its confirmation always comes
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
Merge passMerged head
One reviewer: test-only PR (scripts/phone-safe-area-demo-regression.ts). Merged with these checks red, none of them required: Native macOS session identity; Test-only PR ( The tab strip asks before closing only a busy or last tab, and the demo ends its one running turn 4.5 s after a load, so a 'Close tab' that came later closed without the confirmation the script waits for ( |
|
Merge pass: merged with one check not green. |
|
Correction from the merge pass: the |
## Summary `scripts/phone-back-demo-regression.ts` failed on #3804's run 43386193239 (Browser regression, other scripts) at line 348. It waited 30 s for `.confirm-dialog` after tapping a tab's close button in the tablet scene. #3804 changes only `src/components/AgentSidebar*`. Closing a tab asks first only while its agent is busy, or when it is the last tab. The tablet scene opened the demo's api pane, whose turn ends 4.5 s after load (`site/demo/transport.ts`). When the tap came after that, as it can on a loaded runner, the idle tab closed without a question and the wait timed out. This is the cause #3768 fixed in `phone-safe-area`. The tablet scene is now two scenes: - The first keeps the row menu and the final Back out of the app, on the api pane as before. It no longer closes a tab. - The new scene opens the web pane, whose agent waits on its question for good. It opens a new terminal beside it and asserts two tabs. It then switches back to the web pane's tab, because only the active tab shows its close, and closes it. With another tab present, the question comes from the busy check in `TabStrip.requestClose`, not from the last-tab rule. Back closes the question, and both tabs stay. `open()` takes the pane as an optional last argument and defaults to the api pane. ## Validation - `bun scripts/phone-back-demo-regression.ts` (after `bun run build`) passes. - It also passes with a temporary 6 s wait before the close, which is not committed. Main with the same wait fails at line 348. - `bun run check fast` passes. - No changelog fragment, because the change is test-only.
Summary
scripts/phone-safe-area-demo-regression.ts:63timed out after 30 s waiting for[role=alertdialog]in the landscape scene, right after Close tab in a tab's menu. It failed on main (CI 43185338832 at aea3fdf) and onfix/chat-draft-guard.Cause
TabStrip.tsxasks before closing a tab only when one of its panes is busy (working,blockedorwaiting) or when it is the last tab. Otherwise it just closes it.The scene opened the demo's api pane, whose turn ends 4.5 s after load (
site/demo/transport.ts). Whenever the scene reached Close tab after that, the tab closed without a confirmation and the wait timed out.Proven on main: a 6 s delay before that step reproduces the exact CI failure.
Fix (test only, no sleeps)
open()takes the pane to show (default: the api pane, as before). The landscape scene opens the web pane instead. That pane's agent waits on its question for good, so closing its tab always asks first. The other scenes are unchanged.Validation
TMPDIR=~/.cache/ovis-tmp/ci-loop bun scripts/phone-safe-area-demo-regression.ts: pass.bun run check fast: pass (typecheck, build, unit tests, actionlint).No changelog fragment: this changes a test only.