Repository navigation
Studio: keep an appearance edit made while the personalization load is in flight - #15953
Merged
danielhanchen merged 1 commit intoOct 29, 2026
Merged
Conversation
Member
Author
|
@codex review |
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: Didn't find any major issues. Already looking forward to the next diff. 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". |
danielhanchen
deleted the
personalization-keep-edits-made-during-hydration
branch
October 29, 2026 11:53
danielhanchen
added a commit
that referenced
this pull request
Oct 29, 2026
…inned row (#15959) ## Summary `Mac Unsloth UI + API + Update + Inference CI` fails now and then in `tests/studio/playwright_mac_tab_capabilities.py` on PRs that do not touch the sidebar (#15930 at 08:33, #15953 at 11:20 on 2026-10-29; the other runs that day passed): ``` [mac-tabs] FAIL: Library: nav row library is pinned inline by default but did not render ``` The run's `tab_library.png` shows why: the page was still on the app's boot `Loading...` screen, with no sidebar at all. Each tab is a full `page.goto(..., wait_until="domcontentloaded")` followed by a fixed 1.5 s wait, and on a slow macOS runner the app had not mounted by then. The Library row was never missing from a rendered sidebar; nothing had rendered yet. So this is the test's timing, not the product. ## What changed - `drive_tabs` waits up to 30 s for the sidebar shell (any `nav-row-*`; every pinned row renders in the same pass) before it judges the tab's row. A shell that never mounts is logged and the pinned-row check still fails. - The pinned-row failure now says whether the shell had mounted and lists every row's state, so a future failure tells "app not booted" apart from "row missing". ## Verification - `tests/studio/test_mac_tab_capability_warm_window.py`: 53 passed, including two new cases on its `FakePage`: - the sidebar only mounts once the script waits (the boot screen): no failure, every pinned row seen - the sidebar mounts without the Library row: still fails, and says `shell mounted: True` - With the wait removed from `drive_tabs`, both new cases fail; the existing "rows never render", "projects stand-in" and "hidden section" cases keep passing either way.
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.
Summary
Chat UI Tests (extra)fails now and then intests/studio/playwright_ui_font_scale.py, on PRs that do not touch the UI (#15917, #15859):18.125 is the nav font at UI size 20 (13.5938 x 20 / 15), so a size the test had left two steps earlier came back after it set the default. The test is right; this is a real product race in
usePersonalizationSync:/api/settings/personalizationand, when the answer arrives,replaceAlls the appearance store with the server copy.A user who changes a setting in the first moments after opening Studio can see it snap back the same way.
What changed
use-personalization-sync.tsnotes the appearance customization when the load starts. If the store holds a different object when the server answers, the user edited during the request, so local wins: the store is not overwritten, and because the baseline records the server's values, the normal debounced push uploads the edit.Verification
studio/frontend/tests/personalization-locale-hydration.test.ts, using its existing hook harness with the GET held open:npm run typecheckpasses and eslint is clean on both files. Biome reports the same 2 errors as on main, all in lines this change does not touch.The fix changes when a setting is kept, not anything drawn, so there is nothing to screenshot. The Playwright font-scale check in
Chat UI Tests (extra)is the end-to-end cover.