Skip to content

feat: support in-memory file uploads - #1883

Merged
okwasniewski merged 19 commits into
e2e-inc:mainfrom
WellDunDun:feat/in-memory-file-uploads
Nov 23, 2026
Merged

okwasniewski merged 19 commits into
e2e-inc:mainfrom
WellDunDun:feat/in-memory-file-uploads

Conversation

@WellDunDun

@WellDunDun WellDunDun commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

What and why

  • Accept an in-memory file payload or payload array in locator.setInputFiles, preserving paths and empty-array clearing.
  • Reject combined payloads of 50 MiB or more as INVALID_ARGUMENT; larger files can use paths.
  • Keep the original engine action intact. The web engine declares the payload action explicitly and requires @e2e-dev/core 0.25.0 or later below 1.0, with the same minimum for its optional e2e peer. The SPI v1 action list stays frozen so older engines do not advertise payload support. Include types, migration docs, consumer skill, and changeset.
await screen.getByLabel('Receipt').setInputFiles({
  name: 'receipt.txt',
  mimeType: 'text/plain',
  buffer: Buffer.from('Receipt total: 12.00'),
});

Issue

Part of #1855, Locators and actions: locator.setInputFiles({ name, mimeType, buffer }). Assigned in #1855 (comment).

Verified

Ran it locally: yes, macOS arm64, Node 25.8.1.

  • Built CLI against the testbed: e2e run tests/set-input-files.e2e.ts --grep in-memory --video. Checks filename, MIME type, binary contents, empty files, chooser buttons, and clearing. Recording retained locally: GitHub CLI attachment upload requires upstream write access, unavailable for this fork contribution.
  • On a0974fe4: pnpm check, 194 core/schema tests, 19 web compatibility/upload tests, and all 24 built-CLI upload tests pass. This includes the upstream shadow-DOM event case and oversized-upload recovery.
  • Full pnpm test and the deterministic web benchmark (93 tests) passed on a0974fe4.
  • On 313b9f89: pnpm check, 280 core/MCP tests, 60 web unit/integration tests, and 242 mobile tests pass.
  • On a3b65c43: pnpm check, 76 locator tests, and all 24 built-CLI upload tests pass. Fresh-context review found no actionable issues.
Test Files  1 passed (1)
     Tests  24 passed (24)
  • On d2f621ca with current main: pnpm check, 280 focused tests, and all 24 upload tests on the built CLI pass.

Existing path-upload scenarios preserve behavior in the main-versus-branch comparison. Two pairs were measured; timing remains unresolved, with no performance claim.

Existing path uploads main this branch
Multiple file input and chooser button pass pass

@github-actions github-actions Bot added the size:L Up to 499 changed lines, not counting tests, fixtures, translated docs, or the lockfile label Nov 17, 2026

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

Heads up: you’ve reached your flex budget. Increase your flex budget or wait for usage to reset.

View guided diff | Re-trigger cubic

Comment thread packages/web/src/engine.ts Resolved
Comment thread docs/migrate/playwright.mdx Resolved
Comment thread packages/core/src/engine/manifest.ts Resolved
Comment thread docs/reference/engine.mdx Resolved

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

0 issues found across 7 files (changes from recent commits).

Heads up: you’ve reached your flex budget. Increase your flex budget or wait for usage to reset.

View guided diff | 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.

0 issues found across 2 files (changes from recent commits).

Heads up: you’ve reached your flex budget. Increase your flex budget or wait for usage to reset.

View guided diff | Re-trigger cubic

@okwasniewski okwasniewski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[claude-opus-5-5] automated review on behalf of @okwasniewski

Reviewed 073135c (main b369e38): core/web/e2e diff, the testbed on the built CLI, and Playwright 1.65.1's setInputFiles. A separate action kind is right: an older engine would read action.paths as undefined, and web's dispatcher has no default. Payload bytes never reach traces (grepped .e2e/results for a marker payload and its base64 after a failing test, no hits). Approved fork CI.

Must fix

  • packages/core/src/locator/screen.ts:539: a payload over 50 MB fails as ENGINE_FAILURE (infrastructure, exit code 3) with Playwright's Cannot set buffer larger than 50Mb passed through. That's an authoring error. Bigger payloads also hit the protocol's 256 MB message limit after base64 (connection.ts:89), which closes the whole engine connection instead of failing one step. Sum byteLength in core before lookup and reject 50 MB+ with INVALID_ARGUMENT (reuse Playwright's message), plus a unit test.

Should fix

  • filePayloads flag (manifest.ts:281-307, web/src/engine.ts:127, the two schema if/then blocks): the same fact is declared twice, and defineEngine silently drops a declared action unless it's the only one, then it throws. This is the first locator action kind since the contract locked, so its shape becomes the pattern. It's needed only because web() declares actions: LOCATOR_ACTION_KINDS. Simpler: freeze LOCATOR_ACTION_KINDS at the v1 set, let the validator accept the full known set, and have web declare [...LOCATOR_ACTION_KINDS, 'setInputFilePayloads'] with its core peer floor raised. Old web on new core stays safe and the flag, schema pair, filter and includes check go away. Hold this one until a maintainer picks the shape.
  • contract.ts:296: base64 leaks into the in-process contract. Snapshot pixels set the precedent (Uint8Array in the contract, encodeSnapshot/decodeSnapshot in protocol.ts). Do the same so in-process engines skip the round trip.
  • apps/testbed/tests/set-input-files.e2e.ts is a port of the upstream Playwright tests, but the PR deletes the "Not ported" note and adds tests under new names. Port should set from memory and input event.composed should be true and cross shadow dom boundary under their upstream names (both pass on this branch in a scratch port). Keep the extra cases if you like.

Nits

  • screen.ts:529: a mixed array starting with a path fails with "paths must be non-empty strings". Use Playwright's File paths cannot be mixed with buffers.
  • Changeset: drop @e2e-dev/mobile (no mobile change) and keep the first sentence; engine opt-in details belong in engine.mdx.
  • docs/migrate/playwright.mdx:124: "legacy engines return UNSUPPORTED_CAPABILITY" is internals, "web only" is enough.

Verified: oxlint, core/e2e/web typecheck, check:peer-ranges, check:changeset-bumps. e2e unit (engine-protocol, engine, locator-action-options, schema-fixtures) 186/186, web upload-actions + core-compatibility 19/19, testbed set-input-files.e2e.ts 21/21. Mutants caught: base64 decoded as utf8, opt-in filter removed, filePayloads dropped from describeEngine, mixed array accepted, unknown payload key check removed.

This supersedes #1407.

@okwasniewski

Copy link
Copy Markdown
Member

[claude-opus-5-5] automated review on behalf of @okwasniewski

One more, from fork CI: docs fails because the Japanese docs (#1875) landed on main after this branched. check-docs-translations wants docs/ja/reference/engine.mdx (code block #4) and docs/ja/reference/screen.mdx (code block #62) to match the English code blocks. Merge main and copy the changed code blocks into the ja pages as they are (text can stay English until translated); see authoring-docs, "Translations".

@WellDunDun

WellDunDun commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

[GPT-6] responding on behalf of @WellDunDun

@okwasniewski addressed in a0974fe, after merging main in e53f6ce:

  • Combined payloads of 50 MiB or more now fail with INVALID_ARGUMENT before lookup, copying, or dispatch, using Playwright's message. Boundary and aggregate-size tests cover this; a built-CLI test confirms the connection still works afterward.
  • The engine contract carries Uint8Array bytes. Only the protocol encodes/decodes base64, with byte-offset, empty-file, direct-engine, and wire-roundtrip coverage.
  • Ported should set from memory and input event.composed should be true and cross shadow dom boundary under their upstream names.
  • Synced the Japanese and Chinese code blocks, matched the mixed-input message, simplified the changeset and removed mobile, and changed the migration note to web-only.
  • Capability design is unchanged, pending your decision on its shape.

pnpm check, 194 focused core/schema tests, 19 browser tests, and all 24 built-CLI upload tests pass. The full pnpm test gate and all 93 deterministic web benchmark tests also pass locally. The updated fork workflows need maintainer approval again: spec, docs, translations, benchmark, and mobile. Please approve those runs and re-review when ready.

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

0 issues found across 20 files (changes from recent commits).

Heads up: you’ve reached your flex budget. Increase your flex budget or wait for usage to reset.

View guided diff | Re-trigger cubic

@okwasniewski okwasniewski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[claude-opus-5-5] automated review on behalf of @okwasniewski

Re-checked a0974fe (main fabb0c0) against the 073135c review: core/web/e2e diff, the testbed on the built CLI, and Playwright 1.65.1's convertInputFiles.

Every earlier ask is done:

  • 50 MiB: screen.ts sums byteLength before lookup and throws INVALID_ARGUMENT with Playwright's message at >= 50 * 1024 * 1024, same comparison as Playwright's filePayloadExceedsSizeLimit. The testbed case shows the connection survives a rejected 50 MiB payload.
  • Contract: setInputFilePayloads carries Uint8Array; encodeLocatorAction/decodeLocatorAction in protocol.ts handle base64 only on the wire, like snapshot pixels. Bytes are copied at the call, so mutating the caller's Buffer afterwards changes nothing.
  • should set from memory and input event.composed should be true and cross shadow dom boundary are ported under their upstream names.
  • Mixed arrays fail with File paths cannot be mixed with buffers in either order. The changeset is one sentence without mobile, the migrate row says "web only", and ja/zh code blocks are synced (check-docs-translations passes).
  • The open cubic threads (schema reverse dependency, single-violation negative fixture, INVALID_CONFIG for malformed lists, payload-only doc) are fixed and covered by tests.

Must fix

  • None.

Should fix

  • The filePayloads flag is still there (manifest.ts:280-307, web/src/engine.ts:127, two schema if/then blocks), waiting on the maintainer's call between the per-kind flag and freezing LOCATOR_ACTION_KINDS at v1 with a raised web core floor. Whichever shape lands becomes the pattern for every new locator action kind, so it should be settled before merge. No other changes needed.

Nits

  • locator/engine.ts:205: when payloads aren't supported, the error says the "setInputFilePayloads" action is not available, but the user called setInputFiles. Something like "in-memory files for setInputFiles are not available on this target" would read better. This goes away if the flag goes.
  • client.ts:268 / server.ts:181: name === 'action' && spec.member === 'perform' hardcodes one codec into the generic arg loop. Fine for one case. If a second encoded arg comes along, give the method spec an arg codec like result: 'snapshot' instead.

Verified: oxlint, typecheck core/e2e/web/mobile, check:peer-ranges, check:changeset-bumps, docs:check-errors, plugins:check, docs check (including translations). e2e unit (engine-protocol, engine, locator-action-options, schema-fixtures) 194/194, web upload-actions + core-compatibility 19/19, testbed set-input-files.e2e.ts 24/24 on the built CLI. Mutants caught: >= to > on the size limit, size check removed, mixed-array check removed, encode made identity, base64 decoded as utf8, payload bytes not copied, opt-in filter removed, unknown payload key check removed. Fork workflows (spec, docs, translations, benchmarks, mobile) still need approval at this SHA; only check/label/cubic have run, all green.

Waiting on a maintainer decision: per-kind filePayloads flag vs freezing LOCATOR_ACTION_KINDS at v1 with a web core floor bump. Labeling for human review.

@okwasniewski
okwasniewski dismissed their stale review November 17, 2026 22:24

Earlier asks done, see latest automated review.

@okwasniewski okwasniewski added the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 17, 2026
kdy1
kdy1 previously requested changes Nov 18, 2026

@kdy1 kdy1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[claude-opus-5-5] automated review on behalf of @kdy1

Reviewed a0974fe (main fabb0c0). In-memory uploads work: the testbed set-input-files.e2e.ts passes 24/24 on the head and 18/24 on main, and path uploads did not change. Please fix these before merge.

Should fix

  1. packages/core/src/engine/manifest.ts:302-305: the same mistake gives two different results. defineEngine({ ..., actions: ['tap', 'setInputFilePayloads'] }) without filePayloads: true drops the kind with no error (actions becomes ['tap']). With actions: ['setInputFilePayloads'] alone, it throws INVALID_CONFIG. An engine author who forgets the flag finds out only when users get UNSUPPORTED_CAPABILITY. Make the declaration fail loudly. If you freeze LOCATOR_ACTION_KINDS at the v1 set and have web declare [...LOCATOR_ACTION_KINDS, 'setInputFilePayloads'], this goes away together with the flag.
  2. packages/core/src/locator/engine.ts:202-207: with the current @e2e-dev/web on this core (the peer range allows it), setInputFiles(payload) fails with the "setInputFilePayloads" action is not available on this target: its engine declares ..., setInputFiles, .... The user did not call that kind, and the list says setInputFiles is supported. In setInputFiles, check for payload support first and say what to do, for example: "in-memory files for setInputFiles are not available on this target; update its engine or pass a file path".

Nits

  1. docs/reference/engine-protocol.mdx:212: the EngineManifest block does not have filePayloads, but the schema requires it when actions lists setInputFilePayloads. Add it here and in the ja and zh pages.
  2. packages/web/src/actions.ts:343-345: Buffer.from(file.buffer) copies the bytes again. The protocol decode already made a fresh Uint8Array, so near the 50 MiB limit each call allocates about 50 MB more. Use Buffer.from(b.buffer, b.byteOffset, b.byteLength).
  3. packages/mobile/src/surface.ts:1552: the comment says the switch is "kept exhaustive", but it has no setInputFilePayloads case. Add it to the unsupported cases.
  4. packages/e2e/src/mcp/code-surface.ts:163: the reason run_code leaves out setInputFiles is "reads files from disk", which is no longer the whole story. Update the text.

Verified: core/e2e/web/mobile typecheck; e2e unit (engine-protocol, engine, locator-action-options, schema-fixtures) 194/194; web upload-actions + core-compatibility 19/19; testbed set-input-files.e2e.ts on the built CLI, head 24/24 and main 18/24. Item 1 was run against the built core, and item 2 with the main @e2e-dev/web dist on the head core.

@okwasniewski okwasniewski removed the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 18, 2026

@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 13 files (changes from recent commits).

Heads up: you’ve reached your flex budget. Increase your flex budget or wait for usage to reset.

View guided diff | Re-trigger cubic

Comment thread docs/reference/engine-protocol.mdx Resolved
Comment thread packages/core/src/locator/engine.ts Resolved
@WellDunDun

Copy link
Copy Markdown
Contributor Author

[GPT-6] responding on behalf of @WellDunDun

@kdy1 items 2-6 are fixed in 313b9f8 and a3b65c4:

  • Payload errors name the public setInputFiles API and suggest paths only when the engine supports path uploads.
  • The protocol manifest example documents filePayloads and its dependencies in English, Japanese, and Chinese.
  • Playwright receives a Buffer view without another byte copy, with offset/length and binary-content regression coverage.
  • Mobile explicitly rejects the payload action, covered by its unsupported-action tests and a mobile patch changeset.
  • MCP's exclusion reason covers paths and in-memory payloads.

Also addressed both new cubic threads in a3b65c4. Item 1 remains on hold as requested in the earlier review: @okwasniewski @kdy1, please decide between the current flag and freezing LOCATOR_ACTION_KINDS at v1 with a web core peer floor bump before I change that contract.

Verified locally: pnpm check; 280 core/MCP, 60 web, and 242 mobile tests on 313b9f8; pnpm check, 76 locator tests, and all 24 built-CLI upload tests on a3b65c4. Fresh-context review found no actionable issues. The first CLI attempt hit local disk exhaustion; the complete final rerun passed.

Please re-review and approve the new fork workflow runs. The previous head's workflows passed, but each new push requires approval again.

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

0 issues found across 5 files (changes from recent commits).

Heads up: you’ve reached your flex budget. Increase your flex budget or wait for usage to reset.

View guided diff | Re-trigger cubic

@kdy1 kdy1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Note

This text was drafted with AI and posted after human approval.

  • Harness: T3 Code
  • AI agent: Claude Opus 5.5 (claude-opus-5-5)

Re-reviewed a3b65c4 (main fabb0c0). Items 2 to 6 from my last review are fixed. Thanks.

Decision on the capability shape: freeze LOCATOR_ACTION_KINDS. Please replace the filePayloads flag with this:

  1. packages/core/src/engine/contract.ts: keep LOCATOR_ACTION_KINDS at the v1 set, without setInputFilePayloads. Its meaning becomes "the kinds of SPI v1". An engine that spreads it never claims a kind that was added later.
  2. packages/core/src/engine/manifest.ts: validate actions against every known kind (the full LocatorActionKind set), not against LOCATOR_ACTION_KINDS. Remove the filePayloads checks, the filter, and the setInputFilePayloads requires filePayloads: true throw. A declared kind is then kept or rejected. It is never dropped without an error, so item 1 of my last review goes away.
  3. packages/web/src/engine.ts: declare actions: [...LOCATOR_ACTION_KINDS, 'setInputFilePayloads'] and remove the conditional filePayloads spread. Raise @e2e-dev/web's @e2e-dev/core peer floor to the release that ships setInputFilePayloads, because an older core rejects the new kind.
  4. Remove filePayloads from KNOWN_KEYS, Engine, EngineManifest, the protocol client, describeEngine, and comparable. Remove the filePayloads property and the two if/then blocks from engine-manifest-v1.schema.json, and update both fixtures.
  5. Docs: remove the filePayloads row in docs/reference/engine.mdx and the field in docs/reference/engine-protocol.mdx (also in ja and zh). In engine.mdx, say that LOCATOR_ACTION_KINDS is the v1 set and that an engine lists a newer kind explicitly. Update the actions validation row (line 106), which now says "outside LOCATOR_ACTION_KINDS".

Keep the checkAction message for setInputFilePayloads in locator/engine.ts. A web build older than this change still reaches it.

There are 2 small inline comments.

Verified: pnpm check passes on the head. The e2e unit tests (engine-protocol, engine, locator-action-options, schema-fixtures, mcp-code-parse) pass 281/281, web actions, core-compatibility, and upload-actions pass 60/60, and mobile engine.test.ts passes 242/242. On the built CLI, the testbed set-input-files.e2e.ts passes 24/24 on the head and 18/24 on main. I also swapped the web dist between main and the head: new web on the old core passes all 18 path uploads, and old web on the new core passes the path uploads and fails payloads with the new UNSUPPORTED_CAPABILITY message. The fork workflows for this head still need approval.

…ploads

# Conflicts:
#	packages/e2e/schema/fixtures/engine-manifest-v1.invalid.json
#	packages/e2e/schema/fixtures/engine-manifest-v1.valid.json
@github-actions github-actions Bot removed the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 20, 2026

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

0 issues found across 4 files (changes from recent commits).

Heads up: you’ve reached your flex budget. Increase your flex budget or wait for usage to reset.

View guided diff | Re-trigger cubic

@okwasniewski okwasniewski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[claude-opus-5-5] automated review on behalf of @okwasniewski

Re-checked at 0023573 (main 3e7d19d, merges clean). The new commit is 0023573, "route upload clearing in the locator".

The 22:17 asks are done:

  • packages/web/package.json: both peers are now >=0.25.0 <1, and the PR body says 0.25.0. No 0.24.1 is left in packages or docs.
  • The payload-only clear is out of LocatorEngine.perform, which is back to its main shape. setInputFiles in screen.ts now makes the choice through a new LocatorEngine.supports(kind).
  • Nit tests added: a payload-only engine rejects setInputFiles('a.txt') with UNSUPPORTED_CAPABILITY and does not dispatch. An engine with neither upload action rejects setInputFiles([]) before lookup.

No must-fix. No should-fix.

Nits (optional, still open)

  • locator-action-options.test.ts:249: not.toContain('AID/') would still pass if the steps recorded the raw bytes as numbers. Use a distinctive text payload, and assert that neither its text nor its base64 appears in the steps.

CI: all green at 0023573, including android deterministic, which was infra-red last round. cubic: 0 findings on the new commit.

Verified

  • Built core and e2e at the head. Core typecheck and oxlint on packages/core/src/locator are clean.
  • e2e unit tests locator-action-options, engine-protocol and engine: 161 passed.
  • Mutant: disabling the new payload-only clear branch in screen.ts fails "uploads then clears on a payload-only engine".
  • Not re-run on the testbed this round. The only web change is the peer range, and last round's built-CLI run passed 25/25.

@okwasniewski okwasniewski added the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 21, 2026
@github-actions github-actions Bot removed the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 21, 2026

@okwasniewski okwasniewski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[claude-opus-5-5] automated review on behalf of @okwasniewski

Re-checked at 8a21b1e (main c30354f, merges clean). The only new commit since 0023573 is a main merge, "Merge main and preserve upload type assertions".

The merge conflicted only in packages/e2e/tests/types/sdk-types.ts, against #1925 (describe.fail). The resolution is correct. It keeps all of main's describe.fail assertions and all of this PR's upload assertions. It drops this PR's old @ts-expect-error on describe(..., { fail: true }), which #1925 made valid. Apart from line offsets, the PR's diff against main is the same as at 0023573. Every ask from earlier rounds is still done.

No must-fix. No should-fix.

Nits (optional)

  • locator-action-options.test.ts:249 (still open from last round): not.toContain('AID/') would still pass if the steps recorded the raw bytes as numbers. Use a distinctive text payload, and assert that neither its text nor its base64 appears in the steps.
  • packages/desktop/src/surface.ts:1060 (new on main via #1953): the "kept exhaustive" unsupported case lists setInputFiles but not setInputFilePayloads. The desktop engine does not declare either kind, so the harness never sends them. If one did arrive, though, it would fall through as a silent no-op. blur has the same gap already on main, so this can be a follow-up.

CI: all green at 8a21b1e, including android and ios deterministic. cubic: no findings.

Verified

  • Built core and e2e at the head. e2e unit tests locator-action-options, engine-protocol and engine: 162 passed.
  • e2e typecheck, including tests/types/sdk-types.ts: no errors except the expected ones from @e2e-dev/web not being built in this worktree.

@okwasniewski okwasniewski added the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 21, 2026
@github-actions github-actions Bot removed the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 22, 2026
@WellDunDun

Copy link
Copy Markdown
Contributor Author

/ready

@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

/ready did not add the Ready for Human Review label yet:

  • 1 unresolved review thread(s): 1

Fix these and comment /ready again. How the label works.

@okwasniewski okwasniewski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[claude-opus-5-5] automated review on behalf of @okwasniewski

Re-checked at 08cd2cf (main 6fdb1c2, merges clean). The only new commit since 8a21b1e is a main merge, "Merge main and preserve upload path validation".

The merge conflicted with #2039 in actions.ts, its unit and integration tests, screen.mdx and both writing-tests.md copies. The resolution is correct:

  • actions.ts: #2039's statPath check now runs in the setInputFiles case of dispatchLocatorAction, before uploadFiles, so a missing or unsearchable path is still INVALID_ARGUMENT before anything is clicked. setInputFilePayloads skips it and still goes straight to uploadFiles with in-memory buffers.
  • Tests keep both sides: the PR's input/label/chooser payload cases and #2039's missing-path and unsearchable-dir cases.
  • Docs merge both: the INVALID_ARGUMENT row lists blank or missing paths, unsearchable dirs and payload errors, and UNSUPPORTED_CAPABILITY keeps the payload-engine case.

No must-fix. No should-fix.

Nits (optional)

  • packages/web/src/actions.ts:235: the uploadFiles JSDoc still says a missing path "fails before anything is clicked", but that check now lives in its caller. Move the sentence to the setInputFiles case or drop it.
  • Still open from earlier rounds: locator-action-options.test.ts:249 (distinctive payload text in the steps assertion) and the desktop setInputFilePayloads exhaustive case.

CI: all green at 08cd2cf, including android and ios deterministic. cubic: no new findings.

Verified

  • Ran git show --remerge-diff 08cd2cf55 to check every conflict hunk.
  • Built core. Web tests/unit/actions.test.ts + tests/integration/upload-actions.test.ts: 65 passed.
  • Mutant: I removed the statPath loop from the setInputFiles case, and all 6 of #2039's missing-path and unsearchable-dir integration tests failed with ENGINE_FAILURE. Restored after.
  • Web tsc --noEmit: no errors in src. The only errors come from e2e not being built in the worktree.

@okwasniewski okwasniewski added the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 22, 2026

@michal-e2e michal-e2e left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Drafted with AI and posted at my request.

Re-reviewed 08cd2cf55. Two optional notes below.

Comment thread packages/web/package.json
"peerDependencies": {
"@e2e-dev/core": ">=0.24.1 <1",
"e2e": ">=0.24.1 <1"
"@e2e-dev/core": ">=0.25.0 <1",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@okwasniewski, the web peers read >=0.25.0 <1. That is right only if this merges before the release PR #1974, which is still open and versions core and e2e to 0.25.0 (npm has 0.24.0). If #1974 merges first, 0.25.0 ships without setInputFilePayloads, and a 0.25.0 core rejects the new web engine's actions at config load. The floor would then need to be the next version.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

[GPT-6] responding on behalf of @WellDunDun

Release PR #1974 is still open. The 0.25.0 floor assumes this PR lands first. If #1974 lands first without this action, the floor needs to match the next release that includes it.

@github-actions github-actions Bot removed the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 22, 2026

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

0 issues found across 1 file (changes from recent commits).

Heads up: you’ve reached your flex budget. Increase your flex budget or wait for usage to reset.

View guided diff | Re-trigger cubic

@michal-e2e michal-e2e left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM!

@WellDunDun

Copy link
Copy Markdown
Contributor Author

/ready

@okwasniewski okwasniewski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[claude-opus-5-5] automated review on behalf of @okwasniewski

Re-checked at f95fb42 (main 5acb822, merges clean, no rebase needed). The only new commit since 08cd2cf is f95fb42, "test(locator): distinguish unsupported upload clearing".

  • michal-e2e's ask (locator-action-options.test.ts): done. The setInputFiles([]) case now asserts the message as well as the code (the "setInputFiles" action is not available on this target: its engine declares tap). Test-only commit, no regressions.
  • michal-e2e's floor thread (packages/web/package.json:65): the >=0.25.0 <1 peers are right while release PR #1974 is still open, since this PR would then ship in 0.25.0. If #1974 merges first, the floors need to move to the next release. This thread is still unresolved, and it is the only thing that blocked the 21:44 /ready. Resolve it once the merge order is settled.
  • Earlier nit on actions.ts (the uploadFiles JSDoc "before anything is clicked"): done, the sentence is gone.

No must-fix. No should-fix.

Nits (optional, from earlier rounds)

  • packages/desktop/src/surface.ts:1163: the "kept exhaustive" unsupported case lists setInputFiles but not setInputFilePayloads.

CI: all green at f95fb42, including android and ios deterministic, web, bun and all Node test matrices. cubic: 0 issues on the new commit.

Verified

  • Built core. packages/e2e tests/unit/locator-action-options.test.ts: 77 passed.
  • Mutant: I replaced supports('setInputFilePayloads') at screen.ts:551 with true. The new assertion failed ("does not suggest file paths when the engine supports no uploads"). Restored after.

@okwasniewski okwasniewski added the Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. label Nov 22, 2026
@okwasniewski
okwasniewski merged commit c330373 into e2e-inc:main Nov 23, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready for Human Review Green, conflict-free, every thread handled. Waiting on a maintainer. size:L Up to 499 changed lines, not counting tests, fixtures, translated docs, or the lockfile

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants