Repository navigation
Downloads on the cua route; dialogs and file chooser proven live (#15) - #88
Conversation
…tems while it holds a debuggee (downloads permission, 0.3.0); the host maps them to the service's onDownloadChange for every client with a session
…file chooser as relay pass-through
…ome restart while the worker holds the port)
…ests for the served page's origin
#15); README file-access note; spec Progress
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a1332cab6a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| path, dev: stat.dev, ino: stat.ino, birthtimeMs: stat.birthtimeMs, | ||
| basename: basename(path), directory: basename(dirname(path)), size: stat.size, sha256, | ||
| sha256Match: sha256 === REPORT_SHA256, | ||
| createdByFixture: stat.birthtimeMs > 0 && stat.birthtimeMs >= startedAt, |
There was a problem hiding this comment.
Account for birth-time granularity when proving ownership
On filesystems whose recorded birth time is rounded slightly below Date.now(), a file created by this fixture can have birthtimeMs < startedAt. This occurs in the current test environment and makes the newly added click-failure test fail at its createdByFixture assertion; in live runs it also prevents deleteFixtureDownload from removing a download that the fixture created, leaving artifacts in the user's Downloads directory. The ownership check needs to tolerate filesystem timestamp granularity or establish preexistence another way.
Useful? React with 👍 / 👎.
Redefines #15 on the cua route (the #10 spec's Decision Log, 2026-10-08, #15).
downloadspermission;downloads.created/downloads.changedreported to the host only while a debuggee is held.onDownloadChange {id, filename, url, status}for every client with a session (vendor shape;USER_CANCELED→ canceled, other interruptions → failed), forgets finished downloads.scripts/accept/linux-chrome-features.mjs+features-page.mjs: the Linux live fixture (download with sha256 check, alert, confirm, file chooser). Run on the Tart VM: all PASS; the chooser needs the extension's "Allow access to file URLs" (documented). The CDP download-event alternative is refused by chrome.debugger (measured).update_urlpath measured (installs on the next Chrome restart while the worker holds the port).docs/evidence/2026-10-08-downloads-dialogs-chooser.md.Tests:
npm testgreen (991 + the fixture's 22).