You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Document importer: a block-id line and a line ending after a text-less block import an empty paragraph #616
The document importer reads a block-id line (^id) followed by a line ending, at the end of a block that holds no text (a chart fence, for one), as an empty paragraph after that block. So markdown an agent passes to artifact_create or an edit tool that ends "…:::, ^c1, newline" stores a chart and then an empty paragraph nobody wrote.
Seen with importMarkdown (invented text):
':::chart\nsales\n:::\n^c1\n' imports as a chart and a paragraph;
the same text without the final newline imports as the chart alone;
a final newline after a paragraph, a table, a math block or a rule adds nothing.
UX wave U10a (#582) met it in its e2e scenes: the board opened with an extra empty paragraph under its last chart, which read like the write that landing removes (the editor's trailing paragraph) but was in the agent's own stored row. That landing changed its scenes' markdown and left the importer alone, because the importer is the agent's writer and outside its edge.
Change
A trailing line ending after a text-less block's ^id line creates no paragraph. Start from a failing unit case on importMarkdown with the first input above.
Acceptance
The first input above imports as the chart alone; a document that really ends with an empty paragraph the writer asked for (two line endings and more) keeps today's reading, pinned by a case.
The serialize and import round trip of a document ending in a chart, a table, a math block and a rule is unchanged for each (existing cases plus one for the chart).
agentBoard in e2e/dashboard.spec.ts no longer has to strip its content's final newlines: remove that strip and the three gap-caret scenes stay green.
Not in scope
Any change to what the editor writes (U10a owns that).
Source: the residue of UX wave U10a's fix round (2026-11-13 UTC). Buildable after #582 is on master.
Activity
SSFSKIM commentedon Nov 20, 2026
[board] in-progress: batch 7, group D
wip: #616 red
Document importer: a file's final line ending after a block's own ^id…
SSFSKIM commentedon Nov 20, 2026
[board] in-review: batch 7, PR #804