Skip to content

Studio: expanded composer fills the chat area, net of attachments - #15650

Merged
shimmyshimmer merged 4 commits into
mainfrom
studio-composer-expand-fill
Oct 28, 2026
Merged

shimmyshimmer merged 4 commits into
mainfrom
studio-composer-expand-fill

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

What changed

Expanding the composer now fills the chat area, the way Gemini's does, instead of stopping at a viewport clamp that left the lower half of the screen empty:

  • Welcome screen and project page: the composer grows down from where it sits to 16px above the bottom of the window.
  • Inside a conversation: the footer composer grows up from its bottom edge to just under the chat header.
  • Compare mode: grows up to the top of the compare panes.
  • Attachments, the prompt queue and the toolbar are measured, so the text area shrinks by their height and the whole composer still fits. Adding an image while expanded no longer scrolls the page.
  • Expanding lands in one frame, keeping the attachment layout as it was (two rows stay two rows). The editor's 280ms height ease and the welcome page's padding slide are skipped on the way in, since together they read as the bottom edge creeping; collapsing still eases.
  • On the welcome page, expanding unpins the chat's stick-to-bottom scrolling and collapsing re-pins it. In a short window the collapsed page overflows slightly, and the pin held that overflow as --aui-scroll-stabilizer padding after expanding, leaving the composer shifted up until the next keystroke. The size calculation also ignores the scroller's bottom padding, since the stabilizer adds some for a frame.

The sizing is a small hook, use-expanded-composer-fill.ts, shared by the chat composer and compare's composer. It writes a --composer-fill-height variable the existing CSS reads, and re-measures on resize, when attachments change, and through the welcome screen's padding transition. The old welcome-only CSS rule is removed, so tests/ui-font-size-scales-spacing.test.ts counts three 40px composer clamps instead of four.

Bottom-pinned placements (thread footer, compare) are detected from the DOM; every other placement grows downward against its scroll container, which keeps the project page from growing without bound.

Split out of #15640, where this first landed.

Screenshots

Welcome screen, before and after (after shown with an image attached):

Expanded composer

Welcome screen, expanded with eight attachments in two rows (1700x1150):

Two rows expanded

Project page, expanded:

Project page

How it was verified

  • npm run typecheck, npm run build, npm test.
  • In an isolated Studio on macOS (Apple Silicon): the welcome screen with and without an image attached, and a project page (the expanded height stays at 602px across 2s of re-measuring, ending 16px above the window bottom).
  • Expand traced every ~40ms with eight attachments in two rows: in Chromium at 954x720, 1440x900 and 1700x1150, and in WebKit at 954x720, the composer reaches its final position (144px from the top to 16px above the window bottom) in the first sample and stays there through typing. At 954x720, collapsing returns the composer to the bottom of the page with its toolbar in view.

Not tested here

  • Inside a conversation and in compare mode, which need a loaded model.

shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 28, 2026
shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 28, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 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-28T05:38:54.304881Z a730942 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.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

shimmyshimmer added a commit that referenced this pull request Oct 28, 2026
…ut an AMD NPU (#15640)

## What changed

The Scheduled, reload icon, in-app browser and composer changes that
were here moved to their own PRs: #15647, #15648, #15649 and #15650.

### Export page now matches Train

- Same page width, heading style and two-column grid as Train.
- **Source** card: Local / Fine-tuned / Hugging Face is a segmented
switch in the card header; training run and checkpoint sit side by side.
- **Export method** card holds the method options and all per-method
settings. Options have no radio circle; the selected one is shown by a
filled background with no border, and corners are 18px.
- LoRA Only no longer quotes a size ("~100 MB").
- The Precision hint ("Select one or more") and the "N selected" line
only show when there is more than one format to pick.
- A sticky **Export summary** panel on the right (styled like Train's
Run preview) lists training run, checkpoint, base model, method and
estimated size, the quick guide, and the full-width Export Model button.
It replaces the old Training Info box and the separate Quick Guide
column.
- The image LoRA and Q4NX cards use the same card style.
- Train and Export now share one section card component
(`components/section-box.tsx`).
- In dark mode, buttons on these cards sit lighter than the card instead
of darker, the same rule the API page already used.

### AMD NPU export

- The "Convert a GGUF to Q4NX" card and the "Also convert to Q4NX"
switch only show when an AMD NPU is detected (same
`useNpuStatus().supported` check the Model hub uses). Without one, the
Q4NX conversion stays off.
- FastFlowLM is no longer named in the UI, and the Q4NX descriptions are
shorter ("Only supported on AMD NPUs").

### Train page

- The active tab underline now sits on the divider line. The base
`TabsTrigger` positions its indicator at `bottom-[-5px]`, which pushed
the bar below the border.
- Section titles and descriptions are vertically centred on their icon
chip.
- The Optimization / Schedule / Memory tabs are left-aligned.
- Icons:
  - Model card: chip icon, matching the model picker.
  - Configuration card: pencil edit icon.
  - Save YAML: floppy disk.
  - Reset to defaults: undo.
  - Start training: play instead of rocket.
- Field labels are sentence case instead of uppercase with letter
spacing. File-type lists are unchanged. "Or upload a local file" is now
"Upload a local file".
- Dataset picker and upload sit in two columns from a 512px section
width (was 576px), so the desktop app gets the two-column layout too.

## Screenshots

Export, with the summary panel on the right (1440px):

![Export
page](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/15640/export-35174f8b0a71.png)

Export method, light and dark:

![Export method,
light](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/15640/export_method_light-41cbb7512d11.png)

![Export method,
dark](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/15640/export_method_dark-804523bf8c3e.png)

Dark mode Configuration card on Train:

![Dark mode card
buttons](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/15640/dark_config-fbbfe9c9ac48.png)

Train at a 1280px window: chip icon on Model, sentence-case labels,
dataset picker and upload in two columns, underline on the divider:

![Train at
1280px](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/15640/train_1280-8d22be65e412.png)

Run preview with the play icon:

![Run
preview](https://raw.githubusercontent.com/shimmyshimmer/unsloth-staging-4/pr-media/pr/15640/run_preview-a60343581575.png)

## How it was verified

- `npm run typecheck`, `npm run build` and `npm test` (14,249 passing).
`tests/train-configure-preview-column.test.ts` now reads the shared
`section-box.tsx` for the card and section container classes.
- Biome reports no new diagnostics in the changed files.
- Ran an isolated Studio from this branch on macOS (Apple Silicon) and
checked Train and Export at 1180, 1280 and 1440px wide in light mode,
and the Export and Train cards in dark mode. Measured the tab underline
in the browser: the 2px bar now covers the 1px divider.

Staging CI (macOS, Windows, Linux with Playwright):
shimmyshimmer#1781

## Not tested here

- A machine with an AMD NPU, so the Q4NX card and switch reappearing was
not checked on real hardware.
- A real export with existing fine-tuned runs.
- Non-English locales still carry the previous wording for the upload
label.
chatgpt-codex-connector[bot]

This comment was marked as resolved.

@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 28, 2026
shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 28, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 28, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: a730942ba5

ℹ️ 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 a674707 into main Oct 28, 2026
2 of 42 checks passed
@shimmyshimmer
shimmyshimmer deleted the studio-composer-expand-fill branch October 28, 2026 05:41
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 28, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 28, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 28, 2026
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