Skip to content

Studio: add the repair-install strings to every locale and fix the repair test typecheck - #19924

Merged
danielhanchen merged 2 commits into
mainfrom
fix-locale-encoding
Nov 27, 2026
Merged

danielhanchen merged 2 commits into
mainfrom
fix-locale-encoding

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Summary

#19870 added settings.general.repairInstall.recommendedTorch and settings.general.repairInstall.recommendedDriver to en.ts only. The strict locale parity step in Frontend CI (npm run i18n:check:strict) fails on every PR because all 24 overlays are missing the two keys.

This adds both strings to every overlay. Placeholders ({torch}, {managedTorch}) are kept as in English. No code changes.

The same PR also fixes the Frontend CI typecheck step: tests/repair-recommendation.test.ts (also from #19870) passed text (type string | null) to assert.match after an assert.ok(text?.startsWith(...)) that does not narrow it, giving 3 TS2345 errors. The assertion now checks text != null && text.startsWith(...), which narrows text to string.

The related Backend CI failure (tests/test_gguf_load_trainable.py reading sources without encoding) is already fixed on main by #19920. tests/test_source_read_encoding.py passes on current main, so this PR does not touch it.

Tests

  • npm run i18n:check:strict in studio/frontend: Missing keys: 0, all locale overlays pass parity (it failed on main before this change).
  • npm run i18n:check: passes.
  • npm run typecheck: 0 errors (3 before).
  • node --test tests/repair-recommendation.test.ts: 5 passed.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T09:11:38.724647Z 436245b Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-27T08:41:47.922292Z
We couldn’t complete this review. Comment @codex review to try again.
b37ab67 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: b37ab6771a

ℹ️ 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".

@danielhanchen danielhanchen changed the title Studio i18n: add the repair-install recommendation strings to every locale Studio: add the repair-install strings to every locale and fix the repair test typecheck Nov 27, 2026
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 436245b65c

ℹ️ 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".

@danielhanchen
danielhanchen merged commit bd263b1 into main Nov 27, 2026
2 of 38 checks passed
@danielhanchen
danielhanchen deleted the fix-locale-encoding branch November 27, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant