Skip to content

improvement(desktop): make file consent clearer and easier to control - #8835

Merged
waleedlatif1 merged 3 commits into
stagingfrom
codex/desktop-consent-polish
Oct 9, 2026
Merged

waleedlatif1 merged 3 commits into
stagingfrom
codex/desktop-consent-polish

Conversation

@waleedlatif1

@waleedlatif1 waleedlatif1 commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add a “Full file access” action to folder consent, followed by an explicit confirmation with Cancel as the default. Cancelling returns to folder consent; expired requests cannot enable access.
  • Keep Desktop settings synchronized with native consent, including reverting the switch when persistence fails. Explain that the previously saved value may return after restart if writing settings fails.
  • Use the existing EMCN dialogs with shorter folder and leave-page copy. The shortcut has no ellipsis, and its confirmation uses “Enable”.

Type of Change

  • Improvement
  • Bug fix

Testing

  • Real Electron E2E: folder consent, full access confirmation/cancellation, settings synchronization, restart/revocation, expired requests, failed persistence, and browser dialog ownership/navigation.
  • Added clean reload, navigation, cleared-draft, and same-document checks; the leave warning stays absent in those cases.
  • Pre-change E2E rejects the missing shortcut. Removing the persistence-failure notification reproduces the stale enabled switch.
  • Browser-dialog stress run: 20 independent Electron launches, 320 checks passed, no retries. The test captures the visible, stable dialog before sending one Escape and verifies draft preservation and typing focus.
  • Full pinned and canary Electron suites: 95 passed on each version, no retries; 12 live-server tests and 3 packaged-binary tests run in their separate CI jobs. Packaged smoke also passed.
  • Complete rebased root bun run test: all 20 tasks passed, including 409 script tests, 36,886 app tests, and 1,070 desktop tests on Linux (2 macOS-specific skips). The macOS desktop suite separately passed all 1,072 tests.
  • Signed, notarized release-workflow candidate validated against staging: deny, cancel, approved read, import and exact-content preview, settings, normal navigation, and clean reload.
  • Root lint, type-check, 58 audits, pinned workflow lint, generated artifact checks, docs manifest, and block registry passed. CI screenshots and JSON reports preserve the native acceptance evidence.

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 Oct 9, 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 Oct 9, 2026 5:31am UTC

Request Review

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@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 9 files

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

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

All reported issues were addressed across 9 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread apps/desktop/src/main/desktop-settings.ts
@greptile-apps

greptile-apps Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable new issues were found.

Summary

This PR adds a full-file-access shortcut to folder consent, with a separate confirmation that defaults to Cancel. It also updates Desktop settings when native consent changes access.

  • Cancelling confirmation returns to folder consent.
  • Expired requests are checked before access is enabled.
  • Failed saves turn access off in memory and notify settings.
  • Added E2E checks cover consent, settings updates, and clean navigation.
  • Tests and visual capture were not run during this review; no built desktop app was available.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Folder consent] --> B{User choice}
  B -->|Allow folder| C[Recheck request and grant folder]
  B -->|Do not allow| D[Reject request]
  B -->|Full file access| E[Confirmation defaults to Cancel]
  E -->|Cancel| A
  E -->|Enable| F[Recheck pending request]
  F -->|Expired| D
  F -->|Current| G[Save full file access]
  G -->|Saved| H[Notify settings and allow request]
  G -->|Save failed| I[Turn access off and notify settings]
  I --> D
Loading

Reviews (2) · Last reviewed commit: "fix(desktop): clarify consent actions an..." · Reviewed by Greptile

@waleedlatif1
waleedlatif1 force-pushed the codex/desktop-consent-polish branch from 1e830f0 to 0cedab1 Compare October 9, 2026 05:31
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@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 11 files

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

@waleedlatif1
waleedlatif1 merged commit 13461e3 into staging Oct 9, 2026
40 of 41 checks passed
@waleedlatif1
waleedlatif1 deleted the codex/desktop-consent-polish branch October 9, 2026 05:39

This branch was previously deployed

1 inactive deployment
Preview — 0cedab11 Deployed Oct 9, 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