Files Markdown cached editor shows missing Note while identity hydration is held #1456

Open
opened 2026-10-08 08:54:30 +00:00 by kayg · 2 comments
Owner

The existing Notes e2e suite fails on hotfix35 HEAD 8ab88bb47f (exact merge of d395b6e25 and 52e8dfbee). A focused NOTES_E2E_606_ONLY=1 run reproduces it with the branch release server and production web build. No test assertion was changed.

The #606 Files/Recent Markdown flow opens an existing Markdown file, holds /api/v1/auth/me, and expects the cached editor to accept input before identity hydration completes. At apps/web/e2e/notes.mjs:622 it times out after 20 seconds waiting for .note-card .editor-surface .ProseMirror[contenteditable="true"]. The page instead says "This note is not here anymore" and has no editor surface. Diagnostic identityRequestsPending=1, identityRequestSeen=true, identityReleased=false. The Files edit route did open NoteView; the displayed missing state is from the Note view. The cause is not established. Page errors also include MutationObserver.observe receiving a non-Node in the capture harness; these are retained as evidence, not attributed to the product.

Expected: cached Markdown remains editable while identity loads, as the existing assertion requires. Actual: existing Note is shown as missing. Do not change the expectation to make this pass.

Raw full-suite and focused logs, the instrumented probe, and the failure screenshot are attached to #1440. This blocks hotfix35 verification together with the independent multi-anchor source-byte failure reported there. No push, deploy or further source change was made.

The existing Notes e2e suite fails on hotfix35 HEAD 8ab88bb47f3e55809b331d3ce385eae9743028a5 (exact merge of d395b6e25 and 52e8dfbee). A focused NOTES_E2E_606_ONLY=1 run reproduces it with the branch release server and production web build. No test assertion was changed. The #606 Files/Recent Markdown flow opens an existing Markdown file, holds /api/v1/auth/me, and expects the cached editor to accept input before identity hydration completes. At apps/web/e2e/notes.mjs:622 it times out after 20 seconds waiting for .note-card .editor-surface .ProseMirror[contenteditable="true"]. The page instead says "This note is not here anymore" and has no editor surface. Diagnostic identityRequestsPending=1, identityRequestSeen=true, identityReleased=false. The Files edit route did open NoteView; the displayed missing state is from the Note view. The cause is not established. Page errors also include MutationObserver.observe receiving a non-Node in the capture harness; these are retained as evidence, not attributed to the product. Expected: cached Markdown remains editable while identity loads, as the existing assertion requires. Actual: existing Note is shown as missing. Do not change the expectation to make this pass. Raw full-suite and focused logs, the instrumented probe, and the failure screenshot are attached to #1440. This blocks hotfix35 verification together with the independent multi-anchor source-byte failure reported there. No push, deploy or further source change was made.
Author
Owner

Pinned baseline d395b6e25 reproduces #1456. Built its production web app and used /mnt/hdd/targets/shared-server/d395b6e25/calternal-server-release. Command: NOTES_E2E_606_ONLY=1 CALTERNAL_E2E_ASSET_OVERRIDE=1 bun e2e/notes.mjs. Result: exit 1, TimeoutError: waitFor: Timeout 20000ms exceeded waiting for .note-card .editor-surface .ProseMirror[contenteditable="true"] at baseline notes.mjs:620 while /auth/me is held. CSP REPORTS notes: 0 across 2 pages. No expectation was changed. Pinned 8ab88bb47 comparison is awaiting its release build; the baseline failure establishes this failure already exists without #1440.

Pinned baseline d395b6e25 reproduces #1456. Built its production web app and used /mnt/hdd/targets/shared-server/d395b6e25/calternal-server-release. Command: NOTES_E2E_606_ONLY=1 CALTERNAL_E2E_ASSET_OVERRIDE=1 bun e2e/notes.mjs. Result: exit 1, TimeoutError: waitFor: Timeout 20000ms exceeded waiting for .note-card .editor-surface .ProseMirror[contenteditable="true"] at baseline notes.mjs:620 while /auth/me is held. CSP REPORTS notes: 0 across 2 pages. No expectation was changed. Pinned 8ab88bb47 comparison is awaiting its release build; the baseline failure establishes this failure already exists without #1440.
Author
Owner

Confirmed pre-existing on both pinned revisions. Each revision used its own production web build and release server, with CALTERNAL_E2E_ASSET_OVERRIDE=1 and NOTES_E2E_606_ONLY=1.

Both fail with the exact same output:

TimeoutError: waitFor: Timeout 20000ms exceeded.
  - waiting for locator('.note-card .editor-surface .ProseMirror[contenteditable="true"]') to be visible
CSP REPORTS notes: 0 across 2 pages

The assertion waits for the existing cached editor while /auth/me is held. The baseline contains no #1440 hotfix changes, so #1456 predates this branch. No expectation or focus code was changed. Leaving #1456 open per the job instruction. The pinned server checksums and full logs will be attached to #1440 with the final report.

Confirmed pre-existing on both pinned revisions. Each revision used its own production web build and release server, with CALTERNAL_E2E_ASSET_OVERRIDE=1 and NOTES_E2E_606_ONLY=1. - d395b6e25: exit 1 at notes.mjs:620. - 8ab88bb47: exit 1 at notes.mjs:622. Both fail with the exact same output: ``` TimeoutError: waitFor: Timeout 20000ms exceeded. - waiting for locator('.note-card .editor-surface .ProseMirror[contenteditable="true"]') to be visible CSP REPORTS notes: 0 across 2 pages ``` The assertion waits for the existing cached editor while /auth/me is held. The baseline contains no #1440 hotfix changes, so #1456 predates this branch. No expectation or focus code was changed. Leaving #1456 open per the job instruction. The pinned server checksums and full logs will be attached to #1440 with the final report.
Commenting is not possible because the repository is archived.
No labels
No milestone
No project
No assignees
1 participant
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-v0#1456
No description provided.