Skip to content

fix(win-e2e): survive the agent-CLI feature-wall modal in the crash-survival harness - #9992

Merged
brennanb2025 merged 9 commits into
mainfrom
brennanb2025/win-e2e-dismiss-cli-promo-modal
Jul 24, 2026
Merged

brennanb2025 merged 9 commits into
mainfrom
brennanb2025/win-e2e-dismiss-cli-promo-modal

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Dismiss only the exact CLI feature-tip dialog, avoiding the Windows/Linux desktop Close control and the worktree composer Close control.
  • Retry blocked composer interactions within the caller timeout budget instead of stacking multiple full timeouts.
  • Scope Create worktree submission to the open composer.
  • Seed the harness profile with Blank Terminal selected, removing an unnecessary agent-picker interaction.
  • Avoid sending a fallback Escape keypress into an already-restored terminal while checking for the known CLI tip.
  • Add focused regression tests for desktop-close isolation, retry budgeting, composer preservation, restore-path input isolation, and the blank-terminal profile contract.

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.

…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.
@coderabbitai

coderabbitai Bot commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Known 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 blank.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning It covers problem/fix/verification, but it misses required template sections like Summary, Screenshots, Testing, AI Review Report, Security Audit, and Notes. Rewrite the PR description to match the repository template and add the missing sections, including screenshots/no-visual-change, testing checklist, AI review report, security audit, and notes.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly matches the main change: the Windows crash-survival E2E harness now survives the CLI feature-tip modal.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 26fd97fc-df7d-4ae0-8e66-d1991d3e5222

📥 Commits

Reviewing files that changed from the base of the PR and between 53e018a and 4288677.

📒 Files selected for processing (3)
  • config/vitest.config.ts
  • tools/win-update-e2e/app-driver.mjs
  • tools/win-update-e2e/app-driver.test.mjs

Comment thread tools/win-update-e2e/app-driver.mjs Outdated
Comment on lines 280 to 295
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')
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🩺 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

# 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.
@brennanb2025
brennanb2025 merged commit 14c99f5 into main Jul 24, 2026
2 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant