Skip to content

fix(desktop): answer local-file consent dialogs through the shared closing-dialog helper - #10380

Merged
waleedlatif1 merged 1 commit into
stagingfrom
fix/desktop-local-files-dialog-race
Nov 24, 2026
Merged

waleedlatif1 merged 1 commit into
stagingfrom
fix/desktop-local-files-dialog-race

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Every button in a local-file consent or Full file access confirmation closes its shell dialog window as soon as the answer reaches the main process. That can happen before Chromium acknowledges the click to Playwright, so the click rejects with "Target page, context or browser has been closed" even though the answer went through
  • local-files.spec.ts answered its 20 dialogs with a bare click({ noWaitAfter: true }), so it failed intermittently on whichever dialog lost the race (seen on the "Enable" confirmation and on a "Don't allow" prompt)
  • Use the existing answerShellDialog helper from e2e/executor-sim.ts, which other desktop specs already use: it tolerates only the closed-target rejection and waits for the window to close, which proves the answer landed

Type of Change

  • Bug fix

Testing

  • bun run type-check in apps/desktop; biome
  • desktop-e2e runs this spec in CI

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Nov 24, 2026 9:29pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai 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.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

Updates all 20 closing-dialog answers in local-files.spec.ts to use the existing answerShellDialog helper.

  • Local-file tests wait for consent dialogs to close after each answer.

Reviews (1) · Last reviewed commit: "fix(desktop): answer local-file consent ..." · Reviewed by Greptile

@waleedlatif1
waleedlatif1 merged commit f60e98d into staging Nov 24, 2026
48 checks passed
@waleedlatif1
waleedlatif1 deleted the fix/desktop-local-files-dialog-race branch November 24, 2026 21:32

This branch was previously deployed

1 inactive deployment
Preview — fdf7862c Deployed Nov 24, 2026 by vercel[bot]
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