composer-open: count network loads only (idle blob pictures are not fetches) #1126

Closed
kayg wants to merge 0 commits from port/notes-float-fetch-fix into port/notes-float
Owner

webkit-1440 composer-open "fetch nothing after the input" failed with image fetches.

Cause (measured, webkit-1440 on dev-02, 29ed402be): the 3-4 "images" are blob:http://127.0.0.1:PORT/<uuid> URLs, the theme tiles' pictures that lib/theme-thumbs.ts (slice 4, #1100) draws at idle (1.5 s with no input) and holds as decoded object URLs. They are memory, not network. WebKit reports a blob image as a request event, Chromium does not (chromium-1440 passed). The warm-up runs on its own quiet timer between the spec's mark() and the tap, so it was never caused by the palette's input, and it already waits for quiet, so it never runs inside typing.

Fix: the spec's assumption (every image request is a fetch) is wrong for in-memory pictures, so fetched() now counts only http(s) loads. Scripts, styles, fonts, documents and network images still fail it. No product change: the product already draws nothing on the ⌘K path. I did not run a full bisect: the URLs name the cause.

Gates (dev-02, server built from 29ed402be crates, no crate diff):

  • e2e/composer-open.spec.ts:110 --repeat-each=4, webkit-1440/390 + chromium-1440/390: 16 passed.
  • e2e/search-preview-cheap e2e/composer e2e/style- on the same four projects: 110 passed, 22 skipped, 0 failed.
  • svelte-check --threshold error exit 0; vitest run 295 passed.
  • Bundle gate and Safari check: not needed (spec-only change, no product code).
webkit-1440 `composer-open` "fetch nothing after the input" failed with `image` fetches. **Cause (measured, webkit-1440 on dev-02, 29ed402be):** the 3-4 "images" are `blob:http://127.0.0.1:PORT/<uuid>` URLs, the theme tiles' pictures that `lib/theme-thumbs.ts` (slice 4, #1100) draws at idle (1.5 s with no input) and holds as decoded object URLs. They are memory, not network. WebKit reports a blob image as a `request` event, Chromium does not (chromium-1440 passed). The warm-up runs on its own quiet timer between the spec's `mark()` and the tap, so it was never caused by the palette's input, and it already waits for quiet, so it never runs inside typing. **Fix:** the spec's assumption (every `image` request is a fetch) is wrong for in-memory pictures, so `fetched()` now counts only `http(s)` loads. Scripts, styles, fonts, documents and network images still fail it. No product change: the product already draws nothing on the ⌘K path. I did not run a full bisect: the URLs name the cause. **Gates (dev-02, server built from 29ed402be crates, no crate diff):** - `e2e/composer-open.spec.ts:110 --repeat-each=4`, webkit-1440/390 + chromium-1440/390: 16 passed. - `e2e/search-preview-cheap e2e/composer e2e/style-` on the same four projects: 110 passed, 22 skipped, 0 failed. - `svelte-check --threshold error` exit 0; `vitest run` 295 passed. - Bundle gate and Safari check: not needed (spec-only change, no product code).
composer-open: count network loads only (WebKit reports idle blob: theme pictures as image requests)
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled
d163e9fd64
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
Owner

Merged into port/notes-float with --no-ff by the orchestrator (spec-only: blob: theme pictures are in-memory, not network). Closing.

Merged into `port/notes-float` with `--no-ff` by the orchestrator (spec-only: blob: theme pictures are in-memory, not network). Closing.
kayg closed this pull request 2026-11-14 05:09:20 +00:00
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!1126
No description provided.