Repository navigation
Condense comments added since the last cleanup: Studio backend - #16110
Merged
Merged
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. |
This was referenced Oct 30, 2026
danielhanchen
added a commit
that referenced
this pull request
Oct 30, 2026
… guards (#16116) #15973 (add customizable chat background images and effects) left 12 frontend unit tests red on main. Every PR's `Frontend unit tests` and `Frontend build + bundle sanity` jobs fail on them, for example #16109, #16110 and #16112. This fixes 11 of the 12. The last one is the titlebar `:has()` on the document root, which needs a product change and goes in its own PR. ## 1. General Settings token sync (9 tests) ``` not ok - an untouched General Settings tab adopts a token changed in another tab (and 8 more in the file) error: 'no stub for import "@/features/chat-background" in .../settings/tabs/general-tab.tsx' ``` `general-tab.tsx` now imports `resetChatBackground` from `@/features/chat-background` for Reset all preferences. The test's stub map was one module behind, so this adds `"@/features/chat-background": { resetChatBackground: async () => true }`. ## 2. Every page loads the polyfill (1 test) ``` smoke-chat-background.html must load /crypto-boot.js ``` The new smoke page skipped the `crypto.randomUUID` polyfill that every other page loads before its module entry. It now carries the same `<script src="/crypto-boot.js"></script>`. ## 3. Toasts and composers read one shadow variable (1 test) ``` :is([data-wallpaper-workspace], [data-chat-content-root]):has(> .chat-wallpaper[data-ready]) .unsloth-composer-surface, .wallpaper-preview-composer uses the shared shadow actual: 'inset 0 0 0 1px var(--border)' expected: 'var(--composer-shadow)' ``` The wallpaper composer draws an outline instead of a drop shadow, which is a deliberate design. It now sets that through the variable rather than around it: `--composer-shadow: inset 0 0 0 1px var(--border); box-shadow: var(--composer-shadow);`. The "Composer outline" off rule sets `--composer-shadow: none`, and its `:has()` is more specific, so it still wins. Nothing reading `--composer-shadow` sits inside the composer surface, so the override reaches nothing else. ## Verification - Frontend suite: on main, 12 failures across those four files. Here, `general-settings-token-sync` 9/9, `crypto-uuid-boot` 4/4, `toast-composer-shadow` 2/2 and `chat-background` 7/7 pass. The one remaining failure is `titlebar-modal-layering`'s document-root `:has()`, as described above. - Rendering on `smoke-chat-background.html`, driven the way `tests/studio/playwright_chat_background.js` drives it (reset, upload an image, toggle Composer outline): - Computed `box-shadow` of both preview composers and the live composer is `oklch(0.9208 0 0) 0px 0px 0px 1px inset` with the outline on and `none` with it off, on main and here alike. - A screenshot pixel diff in the same tree, with only `index.css` swapped, is 80 / 26 pixels for outline on / off. Main against main is 71 / 26, so that is the run-to-run noise floor and there is no visible change. ## Screenshots Chat background settings with an uploaded image on this branch. Composer outline on: the previews and the live composer keep the 1px outline.  Composer outline off: no outline and no shadow, as on main. 
danielhanchen
added a commit
that referenced
this pull request
Nov 1, 2026
…te for one archived result (#16401) ## Summary `Frontend build + bundle sanity` (Linux) and `Frontend unit tests (Windows)` fail on PRs based on current main. Staging CI shows it for #16109, #16110 and #16112, all in the `data_settings` Playwright driver: ``` File "tests/studio/playwright_data_settings.py", line 705, in run_library_locales AssertionError: Locator expected to contain text 'This permanently deletes 1 archived chats and their messages. This cannot be undone.' Actual value: Delete chatThis permanently deletes "Sample 0" and its messages. This cannot be undone. ... ``` #16390 (`4726a1c1b8`) changed the archived chats dialog on purpose. When exactly one chat is selected, it now shows the single-chat description, which names the chat (`shell.dialog.deleteChat.description`), instead of "1 archived chats". Its description lists this ("Archived chats: one chat (now names the chat instead of reading "1 archived chats")"). The driver still expected the bulk wording with `{count}` = 1. ## Change `run_library_locales` now also reads `shell.dialog.deleteChat.description` from each locale's catalog. For the one-result delete, it expects that string with `{name}` = `Sample 0`, the one archived chat left after the No project filter. ## Testing On this host, Chromium, same frontend tree, `python tests/studio/playwright_data_settings.py`: - main's driver: exit 1 with the same `AssertionError` as CI; - this branch: exit 0, `chromium: 183 Data settings checks passed`, across all 12 locales the driver walks.
This was referenced Nov 4, 2026
This was referenced Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Condenses the multi-line comments, docstrings and JSDoc / block comments that landed in the Studio backend (
studio/backend) after the last cleanup (#12966, #12967, #12968, #12969, #15333, #15594). Same rules as before: every fact a reader needs stays (the reason for a workaround, version bounds, shapes and dtypes, env vars and flags, issue numbers, must / never rules, ordering and security reasons); narration, step-by-step restatement and history go. Informative one-line comments are not touched.No code changes: every changed file has an identical code token stream (and, for Python, an identical AST once docstrings are removed).
922 files, +5,663 / -11,400 lines.
Scope
Only sections of 2+ lines whose lines were mostly written after the last cleanup merged. A rewrite is applied only when it saves at least one line, so tight comments are left as they are.
Left untouched:
noqa,type: ignore,eslint-disable,@ts-expect-error,biome-ignore,shellcheck,#region, ...), PowerShell comment-based help, JSX{/* */}comments__doc__; module docstrings only where a reader analysis over the whole repo found no reader)$0/BASH_SOURCE/$PSCommandPath/__file__)scripts/lint_av_shapes.pykeys its baseline oninstall.ps1/studio/setup.ps1functions, a few Python helpers): every copy keeps the same comments, since tests compare the copies as textVerification
comment_tools.py check --strict-ext --allow-docstring-editspasses on every changed file (code tokens identical, all languages).scripts/lint_*.py(av_shapes, exec_literals, risky_loaders, workflow_triggers, no_parallel_clamp, no_duplicate_ts_imports, duplicate_definitions, backend_python_floor) andruff checkgive the same result on main and on this branch.--helpsurface (41unslothCLI commands, 40 scripts with a parser) is byte-identical to main.unsloth_clitests that read source text (41,578 tests), and every frontend node test (14,542 tests). No test fails only on the branch once ordering effects are rerun alone; the real readers this and staging CI turned up (a sidebar layout regex, the av_shapes baseline line, and the test that compares theinstall.ps1/studio/setup.ps1helpers) are handled by keeping those comments verbatim. Functions that were identical across files on main (PowerShell, shell, Python) are still identical on the branches.install.ps1,studio/setup.ps1or the changed shell test (64 files, run withpwsh/bash): all pass on main and on the branches.