Empty paragraphs make room projection non-canonical, failing document descriptions
メンテナーはふだん 1 日以内に返信
@lavaman131 がすでに取り組んでいます。
2026年9月28日 から。
評価
この issue はまだ評価されていません。
説明
Summary
If a document contains an empty paragraph, its generated description never refreshes. The document-summary background job fails both attempts with:
chopin: background job document-summary <id> attempt 1 failed - Error: Document source is not canonical.
chopin: background job document-summary <id> attempt 2 failed - Error: Document source is not canonical.
The job ends as failed with reason attempts-exhausted:attempt-error. The failing check (apps/server/src/jobs/document-summary.ts:338) runs before any harness call, so this happens with every HARNESS value.
Reproduction
- Run with
AGENT=on BACKGROUND_JOBS=on, open a document, and type a paragraph. - Leave an empty paragraph anywhere in the document. Pressing Enter at the end is enough, and so is inserting a
/researchcard, which leaves an empty paragraph after it. - Wait for the description debounce (30 s).
The stored snapshot source ends with an extra blank line:
"The harp needs new strings before the spring recital. We have a budget for one octave.\n\n<Research id=\"d5a1b471-…\" />\n\n"
Running serialize(parse(source)) returns the same text with a single trailing \n, so the job's canonical check rejects the source.
This was observed while verifying background workers under HARNESS=atomic (#210). The parent description job succeeded before the Research card was inserted and failed after it. The research jobs themselves completed.
Cause
$exportPlanTree in packages/dialect/src/convert.ts exports each empty Lexical paragraph as an MDAST paragraph with no children. serialize writes that as an extra blank line. parse never produces an empty paragraph, so the room persists source that doesn't survive its own round trip. This violates the "projected to canonical MDX" invariant in AGENTS.md. It happens at the root, between blocks, and inside containers such as blockquotes (> Quoted\n>\n>\n).
Block addressing already ignores these paragraphs. addressable() in apps/server/src/plan/room.ts skips root-level empty paragraphs, and digests() goes through parse.
Expected
Room projection is canonical, and serialize(parse(project(room))) === project(room) holds when the live tree contains empty paragraphs. Description jobs then succeed for these documents.
- 主要言語
- TypeScript
- スター
- 351
- フォーク
- 20
- 平均マージ
- 1日 34分
- マージ済み PR(30日)
- 34
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
githubnext/chopin のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
githubnext/chopin#154 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
githubnext/chopin#149 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 78/100
githubnext/chopin#214 ·
メンテナーはふだん 1 日以内に返信
-
Local mode: run the Planner as a full Atomic session with questions routed to Decisions対応中かも @lavaman131 が今日担当しました。 オープンenhancement
githubnext/chopin#213 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
githubnext/chopin#203 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
githubnext/chopin の issue をすべて見る
似ている issue
-
needs:triage
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
ai-discovered
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
jessepollak/home#1627 ·
メンテナーはふだん 1 日以内に返信
-
agent-canvas bug llm priority:low ready-for-dev
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
OpenHands/OpenHands#17806 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
radius-project/ai-extensions#923 ·
メンテナーはふだん 1 日以内に返信