Skip to content

Studio: Composer appearance section, composer outline on by default - #16455

Merged
shimmyshimmer merged 10 commits into
mainfrom
studio-composer-outline-setting
Nov 2, 2026
Merged

shimmyshimmer merged 10 commits into
mainfrom
studio-composer-outline-setting

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Adds a Composer section to Settings > Appearance for the composer's own settings, and makes the composer outline an Appearance setting.

  • New Composer section, after Preferences: Chat width, Composer at the bottom, Composer outline and Attachments in sent messages, all moved out of Preferences.
  • Composer outline now applies to every composer, not only over a background image; the slider moved out of the Background image controls. It stays off by default without a background image, and a background image still brings its own outline. Any value you set, 0 included, wins over both.
  • The outline syncs with the account like the other Appearance settings, and the section title is translated into all 25 locales.
  • Glass theme and the Appearance tab in the Settings list get the same New badge as Background image.
  • The Settings list's scroll bar sits at the panel edge, and the tab pills keep equal left and right insets whether or not a scroll bar is showing (overlay or classic).

The new section (since renamed to Composer and given Chat width and Attachments):

Composer appearance section

Verified locally: typecheck, i18n parity, the full frontend test suite and the build pass, with no new lint findings. In a local Studio the composer has no outline without a background image and a 30% outline over one, and the section holds the four rows.

shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Nov 2, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Nov 2, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 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-11-02T07:38:04.780777Z 5287a25 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 chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4661d6a27a

ℹ️ 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".

Comment thread studio/frontend/src/index.css Outdated
Comment on lines +6064 to +6065
html[data-composer-outline] .unsloth-composer-surface {
--composer-shadow: inset 0 0 0 1px color-mix(in srgb, var(--foreground) var(--composer-outline, 30%), transparent);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Apply the composer outline setting to plain glass backdrops

With Glass theme enabled and no background image, the new Composer outline control has no visible effect, including when set to 0. The glass rules later in index.css (around lines 6199–6205 and 6243–6247) override this declaration with fixed shadows, while GlassBackdrop hard-codes data-outline="true", preventing the existing outline-removal selectors from matching. Route the appearance setting through the glass backdrop and glass shadow rules too so users can actually adjust or disable the outline in this supported configuration.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 820c02048f

ℹ️ 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".

@danielhanchen

Copy link
Copy Markdown
Member

Chat UI Tests (extra) fails here in the chat width driver, which passes on main (the last main run, at d56738f404, is green):

[chat-width] FAIL in step "measure the 'Standard' preset across 7 viewports" after 30.1s: TimeoutError: Locator.click: Timeout 30000ms exceeded.

tests/studio/playwright_chat_width.py opens Settings, clicks Appearance, then clicks get_by_role("combobox", name = "Chat width") and picks a preset from the listbox. This PR moves ChatWidthSelect into the new Composer section of the Appearance tab. That click now times out, so either the combobox is no longer reachable under that accessible name, or the new section has to be opened or scrolled to first. If the move is intended, the driver needs to follow it (scroll to or expand the Composer section before clicking). The job artifact has the screenshots.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: fdab843180

ℹ️ 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".

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 5f4d1ce2c4

ℹ️ 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".

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 0d55122f7d

ℹ️ 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

Copy link
Copy Markdown
Member Author

@codex review

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

Copy link
Copy Markdown

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

Reviewed commit: 5287a25c13

ℹ️ 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 adfd9e0 into main Nov 2, 2026
@shimmyshimmer
shimmyshimmer deleted the studio-composer-outline-setting branch November 2, 2026 08:06
danielhanchen added a commit that referenced this pull request Nov 3, 2026
… offsets from the UI scale (#16524)

## Summary

Two UI font scale guards are red on main, so every Studio PR fails three
jobs at once: `Repo tests (CPU, studio)`, `Frontend build + bundle
sanity` and `Frontend unit tests (Windows)`. In the last 30 PRs that is
18, 9 and 9 PRs respectively. Both reproduce on current main
(`99d1bc6686`).

**1.
`tests/studio/test_ui_font_scale_contract.py::test_no_raw_pixel_text_utilities`**

```
Raw px text utilities ignore the UI font size preference; use the text-ui-* / leading-ui-* tokens in index.css instead:
['features/settings/components/composer-settings.tsx: text-[10px]']
```

#16298 (`63a3896459`) added the composer's Beta badge with
`text-[10px]`. Every other Beta badge of this shape uses `h-4 px-1.5
text-ui-10`, and `utils.ts` registers `text-ui-*` with tailwind-merge as
a font size. `--text-ui-10` is `calc(0.625rem * var(--ui-font-scale,
1))`, which is exactly 10px at the default size. The guard is right.

**2. `studio/frontend/tests/ui-font-size-scales-spacing.test.ts`: "no
hand-set length above a hairline skips the scale"**

```
'features/settings/settings-dialog.tsx: left-[13.5px]',
'features/settings/settings-dialog.tsx: pl-[39.5px]',
'features/settings/settings-dialog.tsx: right-[12.5px]'
```

#16455 (`adfd9e0cc9`) added the settings search field. Its height is
already `h-[calc(36px*var(--ui-space-scale,1))]`, and its search and
clear icons are `size-4`, which scales too. Only the three offsets that
place the icons and the text inside the field were fixed pixels, so at a
larger interface scale the icons and the text start would drift relative
to a field that grew. The guard is right here too.

## Change

- `composer-settings.tsx`: `text-[10px]` becomes `text-ui-10`.
- `settings-dialog.tsx`: the three offsets become
`calc(...px*var(--ui-space-scale,1))`, the same form as the field's
height on the same line.

At the default font size and interface scale, every changed value
computes to the same length as before, so nothing moves for anyone on
the defaults. At other scales, the badge text and the search field's
contents now follow the scale like their neighbours. No behaviour,
layout structure or copy changes.

## Testing

- `studio/frontend/tests/ui-font-size-scales-spacing.test.ts`: main
gives 1 failed of 27 (the case above); this branch passes 27 of 27.
- `tests/studio/test_ui_font_scale_contract.py`: main gives 1 failed of
12; this branch passes 12 of 12.
- No screenshots: at the default scale, the computed lengths are
identical by construction (`calc(13.5px * 1)` is `13.5px`, and
`0.625rem` at a 16px root is `10px`).
shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Nov 3, 2026
…slothai#16471)

The Settings search field introduced three fixed pixel offsets in unslothai#16455 while its height and icons already follow the interface spacing scale. Those offsets break the existing spacing guard and leave the search icon, text inset and clear button out of proportion at non-default interface sizes.

Scale the three offsets with the same interface spacing variable. Their exact original values remain at the default scale. The existing regression test is unchanged.

The same validation pass found a second font-scaling regression in unslothai#16298: its rich-paste Beta badge used `text-[10px]`. Preserve the new feature and use the existing `text-ui-10` typography token, which follows the font preference. That shared token computes to 9.375 px at the default preference and 15 px at the enlarged setting; the former fixed value was 10 px at both. The existing font-contract test is unchanged. [Tailwind's typography documentation](https://tailwindcss.com/docs/font-size) describes how the theme token supplies the generated utility.

Validation:

- Matching-head strict staging passes 12 Python font-contract checks and 42 Node spacing/control checks on [Linux](https://github.com/Imagineer99/unsloth/actions/runs/41582365621), [Apple Silicon macOS](https://github.com/Imagineer99/unsloth/actions/runs/41582365722) and [Windows](https://github.com/Imagineer99/unsloth/actions/runs/41582365773), with zero failures or skips. Logs and staged ancestry were checked. The initial generic advisory jobs are not counted as correctness gates.
- The badge regression reproduces on merge base `242f14b1d`: 11 font-contract checks pass and one fails. All 12 pass after the one-line correction. Two isolated real Studio installs show the enlarged badge at 10 px before and 15 px after, retaining the feature label and switch. A separate [strict live-Studio staging probe](https://github.com/Imagineer99/unsloth/actions/runs/41582365955) confirms 9.375 / 15 px and visible controls on the published head; this is separate from the synthetic test-kit smoke.
- Production-built stylesheet probes pass in Chromium, Firefox, WebKit and Edge on both badge arms at default and enlarged settings. The current dependent auth frontend passes 14,747 tests, zero failures and one existing skip after a normal local dependency installation. A first run using symlinked dependencies was rejected by Vite's filesystem boundary and is excluded from passing evidence.
- The baseline spacing guard fails on exactly these three offsets. The focused spacing, icon and Settings visibility selection passes 31 tests with the fix.
- The refreshed combined application tree, including unslothai#16468 and unslothai#16470, passes 14,747 frontend tests, no failures and one existing skip. Its frontend Git tree equals the tested auth head. The production build and all 62 actual Tauri command tests pass.
- Real Studio rendering at default scale preserves icon/text/clear offsets of 13.5 / 39.5 / 12.5 px. At 1.4 scale the branch computes 18.9 / 55.3 / 17.5 px; base incorrectly retains the default offsets.
- Chromium, Firefox, WebKit and Edge all compute the intended geometry at default and 1.5 scale using the production-built stylesheet and representative search markup.
- Linux, Apple Silicon macOS and Windows staging checks complete. The selected UI suites also run successfully on both arms on a GPU-equipped cloud worker. No training or inference kernel is changed or benchmarked.

An initial local auth journey hit an intermittent blank frontend boot before the auth request. The same-head confirmation and a fresh paired auth run both pass all nine steps. Its cause remains unproven, and the redirect assertion and timeout are unchanged. The fresh paired Studio/Desktop run with the corrected harness passes its strict gate: 49 steps, all ten native Desktop steps successful on both sides, and no failed or VOID steps. The older failed run is retained as a driver failure, not relabelled as a pass.

The latest organization CPU security job was cancelled, without a test failure. Its exact four-file suite passes 105 tests locally. The same strict, unmasked job also passes [105 tests on an owned Linux CPU runner](https://github.com/Imagineer99/unsloth/actions/runs/41596344327), with zero failures or skips. The staged job equals the source job, contains this PR head and uses identical test-file blobs.

Earlier official CI included cancelled checks, which are not counted as passes. Matching owned staging checks are complete for the current head; organization CI is still running, and no all-green organization CI claim is made.

Comparison at 1.4 spacing scale:

![Settings search spacing before and after](https://raw.githubusercontent.com/danielhanchen/unsloth-staging-2/pr-media/pr/16471/pr16471_before_after-a78db41ffd5e.png)

Rich-paste badge at the enlarged font preference, from merge base `242f14b1d` and head `e3a4e3a06`; the feature and switch are preserved:

![Rich-paste badge font scaling before and after](https://raw.githubusercontent.com/danielhanchen/unsloth-staging-2/pr-media/pr/16471/pr16471_before_after-3e473cadeed6.png)
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.

2 participants