Telegram chat reports render as one run-on line #1054

Closed
opened 2026-10-27 13:38:50 +00:00 by sam · 0 comments
Owner

Fixed. /status and /tasks are line-oriented reports, but their newlines were plain \n, which is CommonMark's soft wrap; the Telegram rich-block renderer space-joins soft-wrapped lines into one paragraph (markdownBlockParser, the documented behaviour since Telegram paragraphs render no embedded newline at all).

Observed 2026-09-19: /status rendered 'Runtime Provider: DeepSeek Model: deepseek/deepseek-flash' on one line; /tasks ran every task's title, state and park reason together.

Fix: hard line breaks (CommonMark's two trailing spaces / trailing backslash) in the renderer, emitting one block per line with the inter-block spacer suppressed inside a stanza, and the producers marking their report lines with it. Also capped the park reason to its first line at 160 runes: task #10's reason was a whole golangci-lint log and pushed every other task out of the reply. Dropped /status's 'Runtime' sub-header: a section header over two fields made a four-fact report read like a document.


Imported from beads archie-core-48n0 · GitHub #922 · type bug · priority P2 · created 2026-09-19 · closed 2026-09-19

Fixed. /status and /tasks are line-oriented reports, but their newlines were plain \n, which is CommonMark's soft wrap; the Telegram rich-block renderer space-joins soft-wrapped lines into one paragraph (markdownBlockParser, the documented behaviour since Telegram paragraphs render no embedded newline at all). Observed 2026-09-19: /status rendered 'Runtime Provider: DeepSeek Model: deepseek/deepseek-flash' on one line; /tasks ran every task's title, state and park reason together. Fix: hard line breaks (CommonMark's two trailing spaces / trailing backslash) in the renderer, emitting one block per line with the inter-block spacer suppressed inside a stanza, and the producers marking their report lines with it. Also capped the park reason to its first line at 160 runes: task #10's reason was a whole golangci-lint log and pushed every other task out of the reply. Dropped /status's 'Runtime' sub-header: a section header over two fields made a four-fact report read like a document. --- _Imported from beads `archie-core-48n0` · GitHub #922 · type bug · priority P2 · created 2026-09-19 · closed 2026-09-19_
sam added the mediumbug labels 2026-10-27 13:38:50 +00:00
sam self-assigned this 2026-10-27 13:38:50 +00:00
sam closed this issue 2026-10-27 13:38:50 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1054