Skip to content

fix(browser): show downloads Google setup takes as "Google setup in Orca" on every page - #48467

Merged
AmoabaKelvin merged 1 commit into
mainfrom
fix/setup-claimed-download-notice
Nov 24, 2026
Merged

AmoabaKelvin merged 1 commit into
mainfrom
fix/setup-claimed-download-notice

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

When Google setup grabs the key file you download from Google Cloud, Orca used to show it like any other download: a private Orca path, Open and Show buttons for a file that's already gone, and on Server pages a "Save to this computer" button that always failed. Now every page says "Saved to Google setup in Orca", the same as This-device pages already did.

Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​58 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​58
Prod 11 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​43 $\color{#cf222e}{\Huge{\mathbf{−}}}$​11 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​32

What Changed

Before, on the host's own browser (a local desktop page, or a Server (streamed) page on a paired server):

  • Server page toast: "Saved to /…/google-setup-keys/.json on " with Save to this computer, which failed with "The download could not be read on the server."
  • Local page download row: <uuid>.json / Downloaded, with Open and Show for the deleted file.

After:

  • Server page toast: "Saved to Google setup in Orca on ", no Save button.
  • Local page row: client_secret_….json / "Saved to Google setup in Orca", no Open or Show.
  • Phone notice for a Server page: "Saved to Google setup in Orca on the host".
  • Normal downloads are unchanged.

Mechanism: the host decides, because only it knows a download was claimed. A standing download claim now carries a label; the host stores it on the active download and sends it as an optional claimLabel on the existing downloadRequested / downloadFinished events. It keeps the page's own file name instead of the staging uuid name, and the screencast viewer never offers a copy of a claimed download. The desktop's Server page notices, the local download row and the phone's notice name the label instead of the path. Google setup's two claims (host browser and This-device) share one label constant.

Why

The claimed file is host-private staging that Google setup deletes right after import, so a path, Open/Show and a copy offer all point at something the person can't use, and the copy offer briefly exposed the key file to a paired device. The claim is only known on the host, so the host marks it on the events that already exist instead of each viewer guessing from the path. A new optional field keeps older peers working unchanged.

Linked Issue

None. Found while fixing Google setup on paired servers (#45935); follows the Server page download notices (#47177) and Save to this computer (#48029).

Visual Proof

Server (streamed) page, the toast after the key download. Before / after:

(screenshot removed: contained real product data)
after-claimed-toast.png

Local desktop page, the download row. Before / after:

before-local-page.png
after-local-page.png

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below
  • Every added test fails without this change and avoids the test anti-patterns

macOS, real runs in hidden e2e builds with scratch HOME, mock keychain and a local fake Google Cloud page (no real Google account):

  • Server (streamed) page: worktree-built headless serve paired to a desktop, Google setup started on the agent's page, the person clicks Download JSON in the page. Before: toast with the staging path + Save to this computer; clicking Save failed. After: "Saved to Google setup in Orca on ", no Save button, setup step done, staging folder empty. A plain download on the same page still shows its path and Save to this computer.
  • Local desktop page: the same flow on the desktop's own bot. Before: <uuid>.json row with Open/Show. After: client_secret_1-e2e.json / "Saved to Google setup in Orca", no Open/Show. A plain download row still has Open/Show.
  • Unit test (security boundary): a finished download with claimLabel gets no copyId for a paired device, while the same file without it does.

Who can trigger it: the person's click or an agent's click on a Google setup page; the claim itself is unchanged (#45935). Only the host sets claimLabel; viewers show it as text.

Performance

None, because this adds one optional string to download start/finish events (not progress), and for claimed downloads it skips the copy offer's lstat. No new listeners, timers or per-frame work.

Risk

Level: Low

Older peers: a newer server with an older desktop shows today's toast with the staging path but no Save button (the server stops offering it); an older phone shows today's path notice. A newer desktop or phone with an older server sees no claimLabel and behaves as today. This-device pages are unchanged. Plain revert.

Review

Codex release gate on the exact head: NO P0 OR P1.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

No platform-specific code. SSH pages don't use host-browser claims. Mobile reads the new field when present.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

…rca on every page

A key download Google setup claims on the host's own browser showed its private
staging path, Open and Show for the deleted file, and on Server (streamed) pages
a Save to this computer that always failed. The host now marks claimed downloads
on the download events, never offers them as copies, and desktops and phones
name the setup instead of the file.
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Download claims can now carry a label through active download state and request and completion events. Screencast handling excludes claimed downloads from host-side copy offers. Browser, remote, and mobile download notices use the label when present, and the browser download list displays a saved-location message for claimed downloads.

Merge Risk: Minimal · up to 23aa0

Claimed Google setup downloads now show a saved-location label instead of a staging path, and ordinary downloads are unchanged. No concrete merge-blocking risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the fix area (browser) and the behavior (claimed Google setup downloads shown as "Google setup in Orca" on every page). The changeset adds a claimLabel that notices, download rows, and…
Description check Passed The description follows the template closely. It has ELI5, What Changed (before and after), Why, Visual Proof with before/after images, Testing with the checklist, Performance with a reason, Risk with…
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.
Full details: Title check

Explanation

The title names the fix area (browser) and the behavior (claimed Google setup downloads shown as "Google setup in Orca" on every page). The changeset adds a claimLabel that notices, download rows, and the screencast copy offer use, and it applies this to Server and local pages. The title is specific and matches the main change. It omits the copy-offer and filename parts, which is acceptable. It also uses the conventional fix(browser) prefix, but at 87 characters it is slightly long.

Full details: Description check

Explanation

The description follows the template closely. It has ELI5, What Changed (before and after), Why, Visual Proof with before/after images, Testing with the checklist, Performance with a reason, Risk with level and rollback, AI Disclosure left blank (allowed for team members, but it is not clear whether the author is one), and the checklist. The Linked Issue section says 'None' and does not include a 'Fixes #' link. The template says an outside contributor must link an actual issue, and the author does not state whether they are a maintainer. The description references related issues but does not link one that this PR closes.

Resolution

Confirm whether the author is a maintainer. If the author is an outside contributor, add a 'Fixes #' link to an actual issue in the Linked Issue section. Optionally fill in the AI Disclosure section if it applies.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 661d8e27-fa9d-4c27-8f30-132cb9eeccde
Commits

Reviewing files that changed from the base of the PR and between d7bd9c6 and 23aa0d7.

Files selected for processing: 12

  • mobile/src/browser/page-interaction/use-mobile-browser-page-prompts.ts
  • src/main/browser/guest-lifecycle/manager/downloads/browser-active-download.ts
  • src/main/browser/guest-lifecycle/manager/downloads/browser-manager-download-creation.ts
  • src/main/browser/guest-lifecycle/manager/downloads/browser-manager-download-lifecycle.ts
  • src/main/google/google-setup-key-download.ts
  • src/main/runtime/browser/screencast/browser-screencast-viewer-events.test.ts
  • src/main/runtime/browser/screencast/browser-screencast-viewer-events.ts
  • src/renderer/src/components/browser-pane/navigate/browser-page-download-list.tsx
  • src/renderer/src/components/browser-pane/navigate/use-browser-page-download-events.ts
  • src/renderer/src/components/browser-pane/stream-remote/remote-browser-download-notices.ts
  • src/renderer/src/i18n/locales/en.json
  • src/shared/browser/guest-lifecycle/browser-guest-events.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

@AmoabaKelvin
AmoabaKelvin merged commit a8396ef into main Nov 24, 2026
57 checks passed
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