Repository navigation
[fix] canvas: one switch in Settings, not two - #498
Open
Zhangbo-cn wants to merge 6 commits into
Open
Zhangbo-cn wants to merge 6 commits into
Zhangbo-cn wants to merge 6 commits into
Conversation
Zhangbo-cn
requested review from
hsliuustc0106 and
princepride
as code owners
November 25, 2026 03:00
Settings -> General already has the interface language, and the welcome screen offers it before a project exists. The model setup panel repeated the same control in its top-right corner, so the same setting appeared in two places depending on which panel happened to be open, with nothing indicating they were the same value. The setup panel now opens on the thing it is for: which models are missing. The key it used stays, because the welcome screen still labels its switch with it.
Zhangbo-cn
force-pushed
the
fix/model-setup-language
branch
from
November 25, 2026 03:56
7c013e8 to
55ffecc
Compare
Collaborator
|
PASS 55ffecc
Two template gaps I am recording but not blocking on: the body uses "What / Verification" instead of the template sections, and a user-visible removal has no screenshot and no N/A line. For a pure deletion with an automated key check behind it I accepted that; the next removal in this panel should carry the evidence section. Ran: |
Removing the duplicated select from the model setup panel left the workflow reading #model-setup-language and switching the locale through it. The workflow now asserts the panel keeps no second switch and uses #settings-language.
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
This branch has not been deployed
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
The same interface language switch appeared twice in one Settings dialog. Opening Model connections showed an Interface language select in the panel's top-right corner, while the General tab showed the language setting under its own label. Both edited the same preference, so moving one moved the other with nothing on screen saying they were the same value.
This removes the copy inside the model connections panel. Settings → General remains the settings entry, and the welcome screen keeps its own switch because it is what a first-time user sees before a project with settings exists. No message key is added or removed: the welcome screen still uses
modelSetup.language, so the key stays in use.Changes
src/canvas/ModelSetup.tsx: drop the language select and the now-unusedlocale/setLocalebinding.src/canvas/model-setup.css: drop the two styles that only positioned that select.tests/browser/first_run.mjs: the first-run journey now asserts the model connections panel renders no#model-setup-languageand that Settings → General still exposes#settings-languagewith the active locale, in both languages at 390 px and 1440 px.Linked issue
No issue is linked; the scope is the duplicated control described above.
Evidence
Steps: the isolated fixture API and Vite served a project. The browser opened its Settings dialog on Model connections (
?setup=models, setup preference seeded so the dialog opens directly), then switched to the General tab. The viewport was 1440 × 900; the published images crop the dialog to 900 × 620, in English and Chinese.Before (
728b4077): the model connections panel shows Interface language in its top-right corner, next to the close button.After (
c986ee6d): the panel shows only the close button in that corner; the category rows and footer are unchanged.The single remaining settings entry is Settings → General, whose language row is unchanged:
Failing before, passing after: the updated
first_run.mjswas copied onto728b4077and run against the base revision:On the head the same file passes (
Browser first-run workspace selection, model setup, cancellation and retry passed).Test plan
Local, on the head tree (
c986ee6d;e2bce233has the same tree):node_modules/.bin/tsc --noEmit— passednpm test— 1111 passed, 0 failednpm run check:i18n— 3839 keys, 0 problems, 170 Chinese source lines (baseline 170)npm run check:browser-locale— 101 pages, 0 problemsnpm run check:browser-manifest— 109 entries, gate=37node tests/browser/first_run.mjsagainst the isolated fixture API and Vite at this head — passed728b4077— failed at line 408 (output above)Left to CI: Release checks on the pushed head, including the gate lane that runs
first_run.mjs. No other browser lane and no desktop package was run locally.The previous Release run on
18c5840f(run 46914029505) failedchecks / pythonat the setup oftest_real_opencode_native_visual_input[image-model]withAssertionError: Real OpenCode integration timed out(2_checks _ python.txtin the run log). That lane does not exercise frontend code, so this body does not attribute the failure to the diff. The branch then merged currentmain(728b4077) and pushede2bce233; run 47332260956 completed on that head with every job passing, includingchecks / python(job 145039030071, 22m28s) and the aggregatechecks / checks(job 145050937013).Provider verification
No real provider was called. The browser journey uses the isolated fixture API and a local Vite build; the models shown in the screenshots are fixture entries.
Bilingual UI
No message key or translation changed; the duplicate label was removed from the panel. Both
zh-CNanden-USwere exercised in the browser test and captured in the screenshots.Review
728b40774628307f315a2b29c466237a8c434a11(origin/main)e2bce233031f0ad83d2ed7da380708baea91e1bb.e2bce233is an empty retrigger commit whose tree equalsc986ee6d's, made after the previous run flaked in an unrelated browser lane.opendirector-review, candidate mode): 93/100 on that tree. Ratings: scope 3/3, correctness 3/3, validation 2/3 (Release checks had not run at review time), claim evidence 3/3 (before/after captures in both languages at the pinned base and head, steps, and a failing-before run), simplicity 3/3 (comments removed, no new state; the CSS and key cleanup is minimal). No blocking code finding.#welcome-languageis untouched but not asserted, so its retention rests on the unchanged source. The screenshot path seeds the setup preference to open Settings directly, which is suitable for a visual capture but is not itself the tested journey.tsc,npm test1111/0, and the three repository checks; it confirmed all six evidence images return HTTP 200 and show the described states; it read the CI jobs fore2bce233(all jobs pass, and the isolated browser lane's log shows the first-run journey passing); and it retrieved the retired run's Python log, which showsAssertionError: Real OpenCode integration timed out. It did not run the browser journey locally (missing Playwright system library, then a port collision) and did not re-capture the screenshots.🤖 Generated with Claude Code