Repository navigation
Conversation
Signed-off-by: Chao Wang <[email protected]>
There was a problem hiding this comment.
This fixes the Simplified Chinese summary. I ran the #61594 repro on the base and on this branch: zh changes from TextImagePDFAudioVideoTools to Text、Image、PDF、Audio、Video和Tools.
It also changes English, though. With style: "short", the conjunction format gives Text, Image, PDF, Audio, Video, & Tools. The existing e2e test at packages/app/e2e/regression/mobile-model-pickers.spec.ts:152 expects exactly Text, Image, PDF, Tools, so it will fail (see inline comment). Type checking (tsc -b) and the src/providers/models unit tests pass. I couldn't run the Playwright component or e2e tests here.
The public API is unchanged.
Related: #58200
|
|
||
| const summary = () => | ||
| new Intl.ListFormat(language.intl(), { style: "short", type: "unit" }).format([ | ||
| new Intl.ListFormat(language.intl(), { style: "short", type: "conjunction" }).format([ |
There was a problem hiding this comment.
With style: "short", conjunction also changes English, from Text, Image, PDF, Tools to Text, Image, PDF, & Tools. That breaks the exact-match assertion in e2e/regression/mobile-model-pickers.spec.ts:152. { style: "narrow", type: "conjunction" } keeps English as it is and still adds separators in every locale I checked: zh-Hans/ja Text、Image、PDF、Tools, de Text, Image, PDF und Tools, ko Text, Image, PDF 및 Tools. If you switch, the new story's expected string becomes Text、Image、Tools.
There was a problem hiding this comment.
Thanks, fixed in f74ddbc: narrow conjunction keeps English unchanged and adds separators for Chinese. Thanks for rechecking.
Signed-off-by: Chao Wang <[email protected]>
There was a problem hiding this comment.
The earlier point about English output is addressed. With narrow conjunction, English stays Text, Image, PDF, Audio, Video, Tools, matching the existing e2e assertion, and Simplified Chinese now reads Text、Image、PDF、Audio、Video、Tools. I checked this by re-running the #61594 repro on this commit (base: TextImagePDFAudioVideoTools). tsc -b passes. I couldn't run the Playwright component or e2e tests here.
The public API is unchanged. Nothing new to raise.
Signed-off-by: Chao Wang <[email protected]>
There was a problem hiding this comment.
The merge with upstream keeps the fix as it was. I re-ran the #61594 repro on this head: English stays Text, Image, PDF, Audio, Video, Tools and Simplified Chinese reads Text、Image、PDF、Audio、Video、Tools. tsc -b passes. The updated story test (resumes the clock paused by the new upstream beforeEach, hovers "Claude Sonnet 5") looks fine. I couldn't run Playwright here.
The public API is unchanged. Nothing new to raise.
Issue for this PR
Closes #61594
Type of change
What does this PR do?
Use narrow conjunction list formatting for the model capability summary. The
unitformatter omits separators in Simplified Chinese, turning the English fallback labels intoTextImageTools. Narrow conjunction displaysText、Image、Toolswhile preserving the existing comma-only English summary.How did you verify your code works?
Current head
9d6e4510606a905e1072aab27b26119785df7978merges upstream83960f8a. The tooltip test conflict is resolved by preserving upstream's clock-controlled tests and resuming live timers for the localized model regression. Its locator now targets the current story's Claude Sonnet 5 option.mobile-model-pickers.spec.ts: 18 passed, five workers, no retries, including the exact English summary checks.bun run check(lint and all 35 typecheck tasks), Prettier, and diff checks passed.f74ddbc; those full suites were not rerun for this merge.Visual
Screenshots / recordings
Before:

After:

Checklist
Added by the opencode bot (AI-generated).
Related: #58200