Skip to content

Downloads on the cua route; dialogs and file chooser proven live (#15) - #88

Merged
SSFSKIM merged 7 commits into
mainfrom
feat/downloads
Oct 8, 2026
Merged

SSFSKIM merged 7 commits into
mainfrom
feat/downloads

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Redefines #15 on the cua route (the #10 spec's Decision Log, 2026-10-08, #15).

  • Extension 0.3.0: the downloads permission; downloads.created / downloads.changed reported to the host only while a debuggee is held.
  • Host: maps them to the service's onDownloadChange {id, filename, url, status} for every client with a session (vendor shape; USER_CANCELED → canceled, other interruptions → failed), forgets finished downloads.
  • JavaScript dialogs and the file chooser need no code (pure CDP through the relay); measured live.
  • 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).
  • Tech debt: the CRX update_url path measured (installs on the next Chrome restart while the worker holds the port).
  • Plugin 0.4.3; README Privacy/Limitations; evidence docs/evidence/2026-10-08-downloads-dialogs-chooser.md.

Tests: npm test green (991 + the fixture's 22).

…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
…ome restart while the worker holds the port)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-08T11:28:02.480521Z a1332ca PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

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