Repository navigation
Studio: add configurable chat width - #10958
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
A fixed 72rem collapses onto Full once the pane is narrower than about 1150px, and the two presets then render the same width. At 1000px both gave 1000, and at 900px both gave 900, so on a laptop two of the three options were indistinguishable. Make Wide half the room between Standard and the pane, so the presets stay distinct wherever there is room to give: pane standard wide full 2560px 768 1664 2560 1280px 768 1024 1280 1000px 768 884 1000 900px 768 834 900 It also pulls the far end back: Wide at 2560px was already clamped to 1152, which is barely past Standard on a display that size.
|
One thing worth changing before this lands: the Wide preset is a fixed
At 1000px and below, Wide and Full are the same control, so on a laptop two of the three options do nothing different from each other. At the other end, Wide on a 2560px display is still clamped to 1152, barely past Standard. Making Wide half the room between Standard and the pane keeps the three-preset UI and stays distinct wherever there is room to give: setVar(
"--custom-chat-max-width",
c.chatWidth === "full"
? "100%"
: c.chatWidth === "wide"
? "calc(48rem + (100% - 48rem) * 0.5)"
: null,
);
The percentage resolves per pane exactly like the current value, so the sidebar and compare-mode behaviour this PR already handles is unaffected. I have this committed locally and verified on top of 825c610: Also closed #10960, which was a duplicate of this feature. Worth knowing why, since it is a trap for anything else touching this area: it added a |
|
Pushed it, so the previous comment's offer is stale: the Wide change is now on this branch as 2c3a7f8 rather than waiting on you. Everything else in that comment stands, including the verification and the note about the backend tests not having been run locally. |
|
@codex review |
This reverts commit 2c3a7f8.
|
Codex is right about the double application, and the numbers are worse than the estimate. Reverted my Wide change in 8090efd, so The composer shell at Measured on this branch:
A 448px gap between the composer and the messages is far worse than the problem I was trying to fix, so it goes. Worth saying plainly that the original concern still stands: Sorry for the noise. The revert is verified: |
|
@codex review |
Full ran to the pane edge. Give it a 3rem gap either side. It cannot be done by narrowing the variable alone. The composer shell reads the same one its parents are already capped by, so calc(100% - 6rem) lands as 100% - 12rem on the composer. This is the nesting Codex flagged on the earlier Wide attempt, and it is why that one was reverted. Give the shell its own variable, set to 100% whenever the setting is active, so it fills whatever its parent was capped to and the cap applies once. That is a no-op at every current width: in wide the parent is already 72rem, in full it is already the pane, and on the projects page the parent is a fixed 44rem. Measured at a 1536px pane: mode messages composer standard 744 736 wide 1128 1152 full before 1512 1536 full after 1416 1440 Holds at 2560px: 2440 / 2464, not re-inset.
|
Pushed e5b58c2: Full now keeps a 3rem gap either side instead of running to the pane edge. This needed the nesting problem solved first, since narrowing the variable alone would have repeated the earlier mistake. The composer shell reads the same variable its parents are already capped by, so So the shell now has its own, set to That part is a no-op at every current width, which is the reason it is safe to do here rather than as a separate change. In Measured at a 1536px pane:
Holds at 2560px (2440 / 2464) and at 900px (780 / 804), so it is not re-inset as the pane grows.
Worth noting this also unblocks the Wide change I reverted earlier: with the shell no longer re-reading the cap, a pane-relative Wide would no longer compound. I have deliberately not re-landed it, since that is a product call about the preset rather than a fix. |
|
On the project composer one: the observation is correct, the suggested fix is not, so I have not applied it. It is true that the setting does nothing on a project's landing page. But that column is not a composer wrapper. It holds the folder icon and project title, the composer, and the Chats list below it. Pointing it at the width variable moves all three. Measured at a 2560px pane:
So the fix as described widens the whole project landing page, which is not what a setting labelled "Set the width of messages and the composer" should do. The other option in the suggestion, moving the fixed width off the ancestor, has the same effect for the same reason. Widening only the composer inside that column is not right either: it would render at 2464px directly above a 704px Chats list and below a 704px header. Worth noting this is pre-existing rather than something the recent commits introduced. Before the shell variable the composer resolved to If project landing pages should follow the setting, that is a layout decision about the whole page, and the header and chat list need to be part of it. Happy to do it if you want that, but it is a bigger change than this PR and I would rather not fold it in silently. Separately, the other two findings on this PR are already resolved on the current head: the legacy-hydration one by your own 825c610, which adds the |
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
Fixed Full width shrinking narrow chat panes in 3120f13. The inset now preserves at least the Wide preset's cap. Added Follow-up 8621a42 removes the extra welcome padding. The new transition assertion fails on 3120f13 and passes in Chromium and Firefox; Wide stays 1152px on both empty and active threads. Verification
At 1920px with the sidebar open:
UI evidenceSeparate production builds, app homes, databases and browser contexts. Before is merge base Wide · Editing · Welcome · Comparison · Sidebar collapsed Commands, logs, measurements, dependency versions and original images. Upstream mergeMerged The two upstream centering regression tests pass on the final commit: executed result. The final merge tree is GitHub reports the PR mergeable. The previous pre-commit mergeability error cleared; replacement CI is queued. Latest review found no major issues on final head |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3120f13743
ℹ️ 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".
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
mahiatlinux
left a comment
There was a problem hiding this comment.
LGTM! Ready to merge, all manually checked.
…d on (unslothai#11001) * Run the chat width presets in CI, and two guards main is currently red on Three merges left main failing guards that every open PR then inherits. Lint CI's "Workflow guard suites" step and Repo tests (CPU, studio) are red on main right now, and six open PRs show the failure as their own. 1. unslothai#10958 added tests/studio/playwright_chat_width.py and no workflow that runs it. test_every_playwright_driver_is_invoked_by_ci exists for exactly that and says so. It could not be wired as written: it took CHAT_THREAD_ID and no CI step can produce a thread id, so the presets shipped with a driver that runs nowhere. The driver now seeds its own conversation through /api/chat/threads, the way playwright_thread_scoped_settings.py does, and CHAT_THREAD_ID stays honoured when set. Seeding needs no model: the messages endpoint stores whatever roles it is given, and an assistant-role message renders the .aui-assistant-message-root every assertion here measures. Verified against a real Studio: the seeded thread renders the bubble, and the sweep passes. Its sign-in also handled only the already-rotated case, so it could not have run against a fresh CI boot even with a thread id. Same two-branch shape as its siblings now. While making it run, one assertion that could not fail: the preset ordering is >=, so three presets pinned to the same width satisfy every line of it. The setting could stop working entirely and the driver would pass. At the widest viewport the three are separated by construction (48rem / 72rem / max(72rem, 100% - 6rem) in appearance-custom-store.ts), so that separation is now required. Pinning --custom-chat-max-width in a live browser: the old assertions pass, the new one fails with "at 2560px Wide gives message 744px, no more than Standard's 744px, so the preset is doing nothing". 2. unslothai#10985 added studio/nvidia_probe.py, imported by both install_llama_prebuilt.py and install_python_stack.py, which studio-mac-install-matrix.yml lists as inputs. Editing the probe did not run the matrix that depends on it. Added to both triggers. 3. unslothai#10988 (mine) added tests/studio/test_core_setup_zoo_revision_notice.py, which reads a workflow file but was not in workflow-trigger-lint's guard step, the only job with no paths filter. A PR editing only workflow files never collected it. Added. The 1054 tests in the guard step pass, as does tests/studio (9687 passed; the two failures there are on main already and untouched by this: an mlx import and a PR-scoped guard). * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Tighten the comments this PR adds Comment/docstring text only. comment_tools.py check --strict-ext --allow-docstring-edits: 3/3 OK. The guard step's 1054 tests still pass, and the driver still runs green end to end against a real Studio. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Adds a Text encoder precision control to the Images Advanced panel (Default, FP8 storage, FP8 compute, INT8, NVFP4), sent to both download planning and loading from one snapshot. Default omits the field, so existing behaviour is unchanged. The select is seeded from resolvedSeedKey, the mechanism the other Advanced selects already use, so the panel can no longer give two controls opposite answers after a Reapply. An edit made while a load is staging survives it; Reapply is how the user applies it. Merged with three inherited failures, all reproduced on the merge base 66a38c7 and none caused by this PR: the startup bundle budget (5374.9 KB > 5371.1 KB, the identical number on main), and the unregistered playwright_chat_width.py from #10958, which reds both Repo tests (CPU, studio) and workflow-trigger lint.
…d on (unslothai#11001) * Run the chat width presets in CI, and two guards main is currently red on Three merges left main failing guards that every open PR then inherits. Lint CI's "Workflow guard suites" step and Repo tests (CPU, studio) are red on main right now, and six open PRs show the failure as their own. 1. unslothai#10958 added tests/studio/playwright_chat_width.py and no workflow that runs it. test_every_playwright_driver_is_invoked_by_ci exists for exactly that and says so. It could not be wired as written: it took CHAT_THREAD_ID and no CI step can produce a thread id, so the presets shipped with a driver that runs nowhere. The driver now seeds its own conversation through /api/chat/threads, the way playwright_thread_scoped_settings.py does, and CHAT_THREAD_ID stays honoured when set. Seeding needs no model: the messages endpoint stores whatever roles it is given, and an assistant-role message renders the .aui-assistant-message-root every assertion here measures. Verified against a real Studio: the seeded thread renders the bubble, and the sweep passes. Its sign-in also handled only the already-rotated case, so it could not have run against a fresh CI boot even with a thread id. Same two-branch shape as its siblings now. While making it run, one assertion that could not fail: the preset ordering is >=, so three presets pinned to the same width satisfy every line of it. The setting could stop working entirely and the driver would pass. At the widest viewport the three are separated by construction (48rem / 72rem / max(72rem, 100% - 6rem) in appearance-custom-store.ts), so that separation is now required. Pinning --custom-chat-max-width in a live browser: the old assertions pass, the new one fails with "at 2560px Wide gives message 744px, no more than Standard's 744px, so the preset is doing nothing". 2. unslothai#10985 added studio/nvidia_probe.py, imported by both install_llama_prebuilt.py and install_python_stack.py, which studio-mac-install-matrix.yml lists as inputs. Editing the probe did not run the matrix that depends on it. Added to both triggers. 3. unslothai#10988 (mine) added tests/studio/test_core_setup_zoo_revision_notice.py, which reads a workflow file but was not in workflow-trigger-lint's guard step, the only job with no paths filter. A PR editing only workflow files never collected it. Added. The 1054 tests in the guard step pass, as does tests/studio (9687 passed; the two failures there are on main already and untouched by this: an mlx import and a PR-scoped guard). * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Tighten the comments this PR adds Comment/docstring text only. comment_tools.py check --strict-ext --allow-docstring-edits: 3/3 OK. The guard step's 1054 tests still pass, and the driver still runs green end to end against a real Studio. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Adds a Text encoder precision control to the Images Advanced panel (Default, FP8 storage, FP8 compute, INT8, NVFP4), sent to both download planning and loading from one snapshot. Default omits the field, so existing behaviour is unchanged. The select is seeded from resolvedSeedKey, the mechanism the other Advanced selects already use, so the panel can no longer give two controls opposite answers after a Reapply. An edit made while a load is staging survives it; Reapply is how the user applies it. Merged with three inherited failures, all reproduced on the merge base 66a38c7 and none caused by this PR: the startup bundle budget (5374.9 KB > 5371.1 KB, the identical number on main), and the unregistered playwright_chat_width.py from unslothai#10958, which reds both Repo tests (CPU, studio) and workflow-trigger lint.


Summary
Chat messages and the composer have fixed width limits, leaving large unused margins on wide screens even when sidebars are closed. Add Settings > Appearance > Preferences > Chat width with three options:
The setting applies to messages, message editing, and the composer, including comparison panes. It uses the existing appearance persistence and reset behavior, falls back to Standard for missing or invalid stored values, and is included in settings search. All 12 locales include the new labels.
The server reports whether chat width was explicitly stored. Older customization records preserve and upload the local width during hydration, while explicit server choices still take precedence. Writes from older clients preserve the stored width.
Validation
At 2560 px, message width increased from 744 px in Standard to 1128 px in Wide and 2485 px in Full width. Reducing the pane by 600 px reduced Full width by the same amount.
Targeted lint still reports the existing
react-hooks/set-state-in-effecterror in the unchangedFontSizeInputfunction.