Skip to content

Studio: proportional image attachments, attachment card and Chat with files polish - #13970

Merged
shimmyshimmer merged 7 commits into
mainfrom
studio-attachment-cards-polish
Oct 16, 2026
Merged

shimmyshimmer merged 7 commits into
mainfrom
studio-attachment-cards-polish

Conversation

@shimmyshimmer

Copy link
Copy Markdown
Member

What changed

Composer and Chat with files polish:

  • Image attachments keep their proportions. An image card keeps the row's height and takes its own width, between 2:3 portrait and 3:2 landscape (the Library's thumbnail bounds); anything beyond is cropped, portraits from the top as in the Library. The composer's wrap or scroll decision now measures every card, since widths differ (composerAttachmentsOverflow takes the card widths).
  • File attachment cards are a little wider (four per row instead of five), and the caption sits 4px under the preview with even space below.
  • Chat with files panel: the collapse chevron points the right way (down collapses, up expands, since the panel opens upward from the composer), and the header Add files / Manage files buttons are a size smaller.
  • Browser New tab menu: the keyboard shortcuts are smaller and the full view icon is larger, with labels still aligned.

Verification

  • npm run typecheck, npm run build, full npm test (all pass; tests/chat-attachment-display.test.ts updated for the new card widths and overflow signature).
  • Isolated Studio on CPU, dark mode: measured card widths (square image 112px, portrait 75px, wide 168px), caption offset 4px, menu labels aligned at the same x.

Not tested here

Sending images to a loaded vision model (no GPU on this host); the visual sizing does not depend on it.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T06:25:29.244034Z 7cb7ae1 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 7cb7ae1194

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@shimmyshimmer
shimmyshimmer merged commit aafc3df into main Oct 16, 2026
@shimmyshimmer
shimmyshimmer deleted the studio-attachment-cards-polish branch October 16, 2026 06:59
danielhanchen added a commit that referenced this pull request Oct 16, 2026
…13983)

## Summary

`Frontend build + bundle sanity` fails on PRs based on current main (for
example #13961 and #13963) with `over the startup budget`. Main itself
is over:

| commit | raw | transfer |
|---|---|---|
| 5870795 | 6,791,021 B (within) | 2,042,102 B (within) |
| 4a8b727 (main) | 6,791,768 B (587 B over) | 2,042,404 B (113 B
over) |

All numbers are from one machine and build, Node 24, with the chunk
count unchanged at 95.

Measured commit by commit, no single import did it:
- Deep research under Tools in the + menu (#13959) took main over, at
+0.2 KB raw.
- The connection name and provider menu order (#13964) and the
attachment card polish (#13970) add the rest, 0.1 and 0.4 KB raw.

All of it lands in the eager chat and settings chunks.

## Change

Following the file's own rule ("raise BUDGET in this file ... with the
measured numbers"), the budget is raised by that growth, 747 B raw and
302 B transfer, so main keeps the margin it had at 5870795. The
measurement is recorded next to the limits like the previous raises.

## Testing

- `npm run build && npm run bundle:check` on main with this change:
within budget (0.2 KB transfer, 0.2 KB raw to spare). Without it: over
by the amounts above.
- `tests/bundle-budget-cli.test.ts` and
`tests/bundle-budget-closure.test.ts`: 43 passed.
- `prettier --check scripts/check-bundle-budget.ts`: clean.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant