Repository navigation
fix(browser): show downloads Google setup takes as "Google setup in Orca" on every page - #48467
Conversation
…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.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
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.
What Changed
Before, on the host's own browser (a local desktop page, or a Server (streamed) page on a paired server):
<uuid>.json/ Downloaded, with Open and Show for the deleted file.After:
client_secret_….json/ "Saved to Google setup in Orca", no Open or Show.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 optionalclaimLabelon the existingdownloadRequested/downloadFinishedevents. 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)

Local desktop page, the download row. Before / after:
Testing
macOS, real runs in hidden e2e builds with scratch HOME, mock keychain and a local fake Google Cloud page (no real Google account):
done, staging folder empty. A plain download on the same page still shows its path and Save to this computer.<uuid>.jsonrow 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.claimLabelgets nocopyIdfor 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
claimLabeland 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
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
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)