Repository navigation
feat(ui): add Markdown table interactions - #125245
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs changes before merge. Reviewed August 18, 2026, 12:22 AM ET / 04:22 UTC. ClawSweeper reviewWhat this changesThe PR adds contained scrolling, directional overflow indicators, TSV copy, and fullscreen inspection controls to Markdown tables in Control UI chat transcripts. Merge readinessKeep open: the exact head still disconnects the active table observer after a transcript is re-mounted, and stale clipboard completions can overwrite newer feedback. Likely related people: steipete (medium confidence; recent merged Markdown-table stylesheet owner). Priority: P3 Review scores
Verification
How this fits togetherControl UI renders chat Markdown into transcript DOM nodes. The new table wrapper is produced by the Markdown renderer, then the transcript shell owns local scrolling, copy, and fullscreen behavior. flowchart LR
A[Chat Markdown] --> B[Markdown renderer]
B --> C[Interactive table wrapper]
C --> D[Transcript lifecycle owner]
D --> E[Scroll and overflow indicators]
D --> F[Copy and fullscreen actions]
Decision needed
Why: This is a new user-facing interaction surface, and the linked canonical request is explicitly awaiting product-direction review. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +365, Tests +286. Total +651 across 11 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: If the Control UI feature is sponsored, scope observer ownership to each mounted transcript element, ignore stale copy completions, add both regressions, then rebase and validate the exact head. Do we have a high-confidence way to reproduce the issue? Yes, by source: mount one transcript into a second host, then unmount the old host; also resolve two table-copy promises in reverse order. The review was read-only, so these paths were not executed locally. Is this the best way to solve the issue? No: the current shared-session ref and unguarded async completion are not the best implementation; ownership must stay with the individual mounted element and copy feedback must follow the latest attempt. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 01eec285d986. LabelsLabel justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
Rebased and repaired on head Addressed the current ClawSweeper finding and merge risks:
Proof:
LOC: production +363/-6 (net +357), tests +283/-0. Production growth is the new contained table interaction/dialog capability; the compatibility repair preserves the existing renderer paths rather than adding a parallel parser. |
d9e6275 to
7049c8f
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* feat(ui): add Markdown table interactions * fix(ui): scope table interactions to transcripts * fix(ui): complete table interaction contracts * chore: refresh PR head * fix(ui): satisfy table interaction gates --------- Co-authored-by: RoboClaw <[email protected]>
Closes #125220
What Problem This Solves
Resolves a problem where wide Markdown tables in the Control UI transcript could not clearly communicate hidden columns, and tables of any size could not be copied as tabular data or isolated for focused inspection. Width handling also needed to remain local so a table could never create page-level horizontal scrolling or shift neighboring turns.
Why This Change Was Made
This adds a shared Markdown table interaction owner that wraps rendered tables, measures only their local viewport, and uses contained horizontal overflow rather than changing transcript width. Conditional masks show only the directions that still contain hidden content. Persistent borderless Lucide copy and fullscreen actions sit above the table, while a native table-only dialog provides Escape dismissal, focus containment, and focus restoration without modal header, footer, or frame chrome.
The copy action serializes cells as tab-separated rows. Compact tables retain their content width, wide tables scroll only within their wrapper, and the dialog clones only the table. Table colors, fills, borders, and row separators remain unchanged because that styling belongs to #125218.
User Impact
Users can discover and scroll hidden columns without affecting the rest of the transcript, copy table data into spreadsheets or text tools, and inspect compact or wide tables in a focused fullscreen overlay. Keyboard users retain visible focus, native Escape behavior, and return focus to the fullscreen trigger after closing.
Evidence
lane-transcriptprototype was inspected read-only and ported by surface; no commit was cherry-picked and no lab files were modified.git diff --checkpassed before commit.