Repository navigation
fix(win-e2e): survive the agent-CLI feature-wall modal in the crash-survival harness - #9992
Conversation
…ving The modal renders off an async capability check and can be up at (or appear right after) the harness's first interaction, swallowing every click until closed — both crash-survival attempts on #9446 timed out exactly there, while the app itself was healthy. Add its 'Close' button to the overlay dismiss list, dismiss overlays before ensureTerminal's first probe, and retry the first New-workspace click through a dismissal pass instead of hanging the full 60s.
📝 WalkthroughWalkthroughKnown overlay dismissal was centralized and reused by terminal setup, workspace creation, overlay handling, and terminal focusing. Workspace actions now retry after overlay-related click failures within the caller’s timeout, with direct-click and keyboard fallbacks for submission. Vitest now includes tool tests covering overlay selection, timeout budgeting, and repeated create-worktree submission, while the seeded profile sets the default TUI agent to 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 26fd97fc-df7d-4ae0-8e66-d1991d3e5222
📒 Files selected for processing (3)
config/vitest.config.tstools/win-update-e2e/app-driver.mjstools/win-update-e2e/app-driver.test.mjs
| await tryClickWithKnownOverlayRetry( | ||
| page, | ||
| page.getByRole('button', { name: 'Blank Terminal' }).first(), | ||
| 15_000 | ||
| ) | ||
| // Submit. The create button's accessible name carries the shortcut hint | ||
| // ("Create worktreeCtrl"), so match by prefix; fall back to the documented | ||
| // Ctrl+Enter shortcut if the button is not directly clickable. | ||
| const created = await page | ||
| .getByRole('button', { name: /^Create worktree/ }) | ||
| .last() | ||
| .click({ timeout: 15_000 }) | ||
| .then(() => true) | ||
| .catch(() => false) | ||
| const created = await tryClickWithKnownOverlayRetry( | ||
| page, | ||
| page.getByRole('button', { name: /^Create worktree/ }).last(), | ||
| 15_000 | ||
| ) | ||
| if (!created) { | ||
| await page.keyboard.press('Control+Enter') | ||
| } |
There was a problem hiding this comment.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
Keep every workspace retry within timeoutMs.
After “New workspace” succeeds, these two retries each receive a fresh 15-second budget. Therefore ensureTerminal(page, { timeoutMs: 12_000 }) can still block for over 12 seconds. Establish one deadline in createWorkspaceFromSeededRepo and pass the remaining time to every retry; add coverage for a successful first click followed by a blocked later action.
…dismiss-cli-promo-modal
…dismiss-cli-promo-modal
…dismiss-cli-promo-modal # Conflicts: # tools/win-update-e2e/app-driver.mjs
createWorkspaceFromSeededRepo gave the composer wait and create-button retry fresh fixed 15s windows, so the create path could overrun the caller's timeoutMs. Thread one shared deadline through every step and cover a fast first click followed by a blocked submission.
…urvival harness (stablyai#9992) * fix(win-e2e): survive the agent-CLI feature-wall modal in harness driving The modal renders off an async capability check and can be up at (or appear right after) the harness's first interaction, swallowing every click until closed — both crash-survival attempts on stablyai#9446 timed out exactly there, while the app itself was healthy. Add its 'Close' button to the overlay dismiss list, dismiss overlays before ensureTerminal's first probe, and retry the first New-workspace click through a dismissal pass instead of hanging the full 60s. * fix(win-e2e): scope modal dismissal and bound retries * fix(win-e2e): keep overlay retries inside composer * fix(win-e2e): seed blank terminal selection * fix(win-e2e): avoid input during terminal restore * fix(win-e2e): bound whole create path by caller timeout createWorkspaceFromSeededRepo gave the composer wait and create-button retry fresh fixed 15s windows, so the create path could overrun the caller's timeoutMs. Thread one shared deadline through every step and cover a fast first click followed by a blocked submission.
Problem
The Windows crash-survival E2E harness timed out at its first interaction when the "Let agents drive Orca with the Orca CLI" feature-tip modal appeared asynchronously. The app remained healthy behind the modal, but the modal intercepted harness input.
Fix
No product behavior changes; this remains test-harness-only.
Verification
The generic PR verify job is currently blocked by stale generated skill manifests inherited unchanged from the latest main branch.