Repository navigation
Control UI: unify composer attachment chip layout - #130312
vyctorbrzezowski merged 2 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 6:30 PM ET / 22:30 UTC. ClawSweeper reviewWhat this changesThis PR makes Control UI composer attachment chips compact and consistent, adding filename-aware video/audio/document glyphs and file-type labels. Merge readinessThe current head resolves the prior glyph finding by deriving the compact chip from the canonical filename-aware resolver, and current main still has the larger generic-file rendering. Keep this MEMBER-authored, maintainer-labeled UI refinement open for human approval and exact-head checks. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThe Control UI composer converts selected files and pasted text into previews before a chat message is sent. One shared preview renderer serves both the chat and new-session composers, turning attachment metadata into the visible chip layout, icon, and label. flowchart LR
A[Selected files and pasted text] --> B[Attachment admission]
B --> C[Shared attachment preview]
C --> D[Filename-aware type resolver]
D --> E[Compact composer chip]
E --> F[Chat composer]
E --> G[New-session composer]
Decision needed
Why: The PR is MEMBER-authored and carries the protected maintainer label, so the remaining decision is human approval of the user-facing visual direction rather than a mechanical repair. Before merge
Agent review detailsSecurityNone. PR surfaceSource +26, Tests +4. Total +30 across 3 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one shared compact renderer, retain the canonical filename-aware resolver, then land only after the visual direction receives human approval and exact-head UI gates pass. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR intentionally refines an existing UI layout rather than reporting a failing user workflow; the body supplies before/after Control UI screenshots and the changed test covers the MIME-absent rendering path. Is this the best way to solve the issue? Yes: using the existing resolver avoids a second filename/MIME classification policy while preserving one renderer for both composer entry points. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d4c8aaa53672. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles) |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* fix(ui): unify composer attachment chips * fix(ui): resolve composer attachment glyphs
What Problem This Solves
Composer attachments currently use inconsistent footprints: image thumbnails are compact, while video, audio, pasted text, and document chips are substantially larger and use oversized file artwork. Mixed attachment sets become visually uneven and consume too much composer space.
Why This Change Was Made
This PR gives composer attachment chips one compact geometry, uses the existing Control UI glyphs for video, audio, and documents, and reuses the canonical attachment resolver for the file-type label. Image hover geometry follows the thumbnail shape, pasted text keeps its
Show in text fieldaction, and chip surfaces inherit the active composer theme.The shared attachment renderer continues to serve both the chat and new-session composers. No fixture or mock scaffolding is included.
User Impact
Evidence
All screenshots use deterministic mock-only files and are cropped to the attachment rail; they contain no credentials, personal data, or external content.
Dark theme
Light theme
origin/main; after from the approved attachment bench on127.0.0.1:5223.Show in text fieldbehavior.