Repository navigation
fix(ui): structure chat transcript attachments by kind - #127076
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 26, 2026, 8:44 AM ET / 12:44 UTC. ClawSweeper reviewWhat this changesThe branch adds type-aware chat attachment cards, safe SVG/image handling, and Files-panel rendering for transcript attachments. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readinessKeep this PR open: it replaces current inline transcript audio/video playback with a Files-only path, contradicting the linked bug’s expected behavior and regressing the default chat-reading flow. Priority: P1 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherControl UI classifies transcript attachment metadata and renders images, media, and files in the chat thread. Attachment actions can then open a side-panel view or download the resolved media source. flowchart LR
A[Chat transcript] --> B[Attachment extraction]
B --> C[Type classification]
C --> D[Transcript card or player]
D --> E[Files side panel]
D --> F[Image lightbox]
E --> G[Resolved media playback]
Decision needed
Why: Current main and the linked report establish direct transcript playback as existing behavior, while this PR expressly removes it; that user-experience tradeoff requires an owner decision. Before merge
Findings
Agent review detailsSecurityNone. Review metrics
Stored data modelPersistent data-model change detected: Mantis proof suggestionA redacted Control UI chat capture would directly show whether audio/video remain playable in the transcript and whether document cards retain their actions. A maintainer can ask Mantis to capture proof by posting this exact PR comment: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the type-aware card treatment for documents while preserving inline audio/video players in the transcript, unless the relevant UI owner explicitly accepts the Files-only product change. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main sends available audio/video attachments to player elements, while this head instead returns a compact card and its test asserts that no player exists. Is this the best way to solve the issue? No: a Files-only card is not the best repair because it removes established transcript playback; retain the player composition alongside the card treatment. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7b1e562b8638. LabelsLabel changes:
Label justifications:
EvidenceWhat 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 (33 earlier review cycles; latest 8 shown)
|
d74c186 to
e62b8b8
Compare
|
Merged via squash.
|










Closes #127066
What problem this solves
In this PR, transcript attachments get one coherent presentation by kind. Non-image files use compact cards with a colored glyph, filename, type/size metadata, and the existing Download, Open, and Files actions. Raster images and SVGs keep the image/lightbox flow.
Owner decisions
Planned follow-up
Inline previews for selected document types, including HTML, PDF, and CSV, remain a possible future direction and are intentionally outside this PR.
Implementation
scripts/control-ui-mock-attachments.ts; no mock fixture ships in production UI code.Validation
The repository-wide unused-export scan could not be completed in this sparse worktree because resolving unrelated plugin modules would require an install, which was prohibited for this task. The production Knip lane and all changed-surface checks completed successfully.
Post-merge provenance
captured on merged main @ 1c1673c