Skip to content

fix: wait only for presentation while holding Markdown in the state race test - #5105

Merged
max-sixty merged 1 commit into
mainfrom
fix/issue-5088
Nov 2, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/issue-5088

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The Markdown state race test held the module before navigation, then waited for full readiness before reaching the code that releases it. The editor's after-presentation preload participates in readiness, so the fixture deadlocked at startup instead of testing whether an older state can overwrite a newer comment.

Open only through presentation while Markdown is held, using the existing readiness stage, and let the editor's preload start the import instead of explicitly starting it again. The held older poll, newer comment response and final assertions remain in place. The shared parser preparation added in #4738 makes Markdown part of the editor preload; this preserves that behavior and the deferred editor loading introduced by #3897. No product behavior changes.

Validation: the focused test reproduces the startup timeout before the change and passes after it (4.81 seconds); Ruff and git diff --check pass.

Closes #5088 — automated triage

…ace test

The editor preload now waits for its Markdown parser as well as CodeMirror (#4738). Full startup readiness therefore waits for the module this race fixture deliberately holds. Use the existing presented stage and let the editor start the shared import, preserving both preload semantics and the crossed-state assertions.

Closes #5088
@max-sixty
max-sixty merged commit ce0e4f4 into main Nov 2, 2026
5 checks passed
@max-sixty
max-sixty deleted the fix/issue-5088 branch November 2, 2026 10:35
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.

Deferred Markdown presentation never settles in the state race test

2 participants