ticket: record tui table rendering implementation

This commit is contained in:
Keisuke Hirata 2026-06-08 22:26:28 +09:00
parent 897835b678
commit 68b0156faa
No known key found for this signature in database
2 changed files with 29 additions and 1 deletions

View File

@ -8,7 +8,7 @@ priority: 'P2'
labels: ['tui', 'chat', 'markdown', 'rendering', 'ux'] labels: ['tui', 'chat', 'markdown', 'rendering', 'ux']
workflow_state: 'inprogress' workflow_state: 'inprogress'
created_at: '2026-06-08T10:31:33Z' created_at: '2026-06-08T10:31:33Z'
updated_at: '2026-06-08T13:16:57Z' updated_at: '2026-06-08T13:26:21Z'
assignee: null assignee: null
risk_flags: ['tui-rendering', 'markdown'] risk_flags: ['tui-rendering', 'markdown']
queued_by: 'workspace-panel' queued_by: 'workspace-panel'

View File

@ -102,3 +102,31 @@ Spawned sibling Coder Pod:
Note: an unrelated Ticket record update (`tui-composer-history-persistence` ready state) and project known-issues/objective records were committed before routing so the main workspace was clean enough for implementation side effects. Note: an unrelated Ticket record update (`tui-composer-history-persistence` ready state) and project known-issues/objective records were committed before routing so the main workspace was clean enough for implementation side effects.
--- ---
<!-- event: implementation_report author: orchestrator at: 2026-06-08T13:26:21Z -->
## Implementation report
Coder implementation completed and is ready for sibling review.
Coder Pod:
- `coder-tui-chat-markdown-table-rendering`
- Commit: `f767ec7a5945aff588fe0b8ce224b30efe4c2a85 tui: render markdown pipe tables in chat`
- Worktree status before review: clean branch `tui-chat-markdown-table-rendering`
- Stopped after collecting output to reclaim delegated worktree scope.
Implementation summary:
- Adds `pulldown-cmark` table event handling to `crates/tui/src/markdown.rs`.
- Enables `Options::ENABLE_TABLES` in the TUI chat Markdown renderer.
- Converts ordinary Markdown pipe tables into readable monospace rows with box separators and alignment-aware padding.
- Keeps changes in the rendering layer only; no Pod/session/history/context storage changes.
- Adds focused tests for readable table rendering, malformed/ragged/wide safety, and non-table pipe text regression.
Coder-reported validation:
- `cargo test -p tui markdown -- --nocapture` -> 17 passed
- `cargo fmt --check` -> OK
- `git diff --check` -> OK
- `cargo check --workspace` -> OK
- `nix build .#yoi` -> OK
---