Classify every comment as tautology, stale, excuse or decision record. Tautology/stale/excuse comments are deleted (excuses filed as issues #196-#236), decisions moved to docs/adr/0001-0034. - scripts/lint-comments.sh + .comment-baseline: per-file comment count may only go down; wired into tests/all.sh - .claude/skills/delete-comment: repeatable audit workflow - cargo fmt applied to touched crates Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
15 lines
811 B
Markdown
15 lines
811 B
Markdown
# Tolerate half-streamed markdown and pin scroll position
|
|
|
|
Status: accepted
|
|
|
|
## Context
|
|
Assistant text is rendered while it streams, so input is often incomplete: an unclosed code fence or an unfinished table. Users also read earlier text while new text arrives below.
|
|
|
|
## Decision
|
|
The markdown renderer treats an unclosed fence as code and an unfinished table as plain text instead of failing. Scroll state is either following the bottom (`top: None`) or pinned to a line (`Some(n)`); pinned views do not move when text streams in, and reaching the bottom resumes following.
|
|
|
|
## Consequences
|
|
Rendering never needs the complete message; a table pops into a grid once complete. Scroll behaviour is predictable during streaming.
|
|
|
|
Code: crates/hx-tui/src/markdown.rs (module), crates/hx-tui/src/scroll.rs (module)
|