Repository navigation
cua #103 e2e: the 380 px human-control case trusts the test process before connecting as the fake host (PR #7 and #9 crossed) - #10
Merged
Conversation
SSFSKIM
added a commit
that referenced
this pull request
Oct 19, 2026
…caped in the dialect, so it can no longer read back as a heading underline, a heading, a list, a new paragraph or a hard break. The canonical form (the agent's read, ids on or off) writes it as through the free sentinel U+E00E, and the existing whitespace-entity tokenizer reads back beside 32, 9 and 160; code keeps its raw line ends, a hardBreak and literal text read as before, and the agent's own soft break still parses to the line ending. Per the architect's ruling, the owner-facing exports never show the entity: the Markdown export (and the mirrors through it) writes a hard line break (a backslash at the line's end, the next line's start escaped; a space in a heading; none at a block's end), which reads back as a hardBreak; DOCX writes a Word line break as it does for a hardBreak; HTML/PDF already keep the line ending with pre-wrap. format.md's escapes line says so. Regressions in markdown.test.ts (27 stored states with ids on, off and named, containers, marks and the literal and U+E00E collisions, 36 red before), export/markdown.test.ts and export/docx.test.ts (red before)
SSFSKIM
added a commit
that referenced
this pull request
Oct 19, 2026
…every line ending inside text. A heading's line ending was flattened to a space and a block's trailing one dropped; both are now an inline <br>, where CommonMark cannot break a line (a heading cannot, and a backslash ending a block reads literally); elsewhere it stays the backslash hard break with the next line's start escaped, a leading one included. Canonical output is unchanged ( , code's raw line ends, literal entity and U+E00E text). The export's contract now states its one inexact read-back instead of claiming it is lossless: the dialect's import reads a backslash break back as a hardBreak and <br> as literal text, which the regressions pin. Regressions in markdown.test.ts and export/markdown.test.ts, red on 9adf502
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
PR #9 (cua #103) added the e2e case "cua #103: human control in a 380 px panel keeps the icon, Hand back and every toolbar control in bounds" (e2e/browser.spec.ts), which connects the Playwright test process to the session's cua socket as a fake host. PR #7 (cua #95) made that socket refuse any peer not descended from the session's engine. The two PRs crossed on master: on 3d53d69 the case fails deterministically with
no hello from <userData>/browser/cua/<id>.sock within 5000 ms(test/support/cua-fake-host.ts:43), alone and at load 10, as P2-F's post-debt gate found.Change
The case trusts the test process through the e2e seam (
__maws_browser.cua.trustRoot(pid), MAWS_E2E only) before connecting, exactly as every scene in e2e/browser-cua.spec.ts does, and asserts the seam answered true. One case, one line plus the seam's type; no production code.Verification
Through the quiet wrapper (
MAWS_E2E_QUIET=1, one group at a time):no hello from /tmp/m103-…/browser/cua/….sock within 5000 ms.