Repository navigation
fix(ci): clear main's stale zh-Hant phone string and eager connector schema - #50170
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
ELI5
Main's "localization and generated files" check fails on every PR. Two PRs crossed. One replaced an English phone string for removing an MCP server. The other then added a Traditional Chinese translation of the old string, so the phone's
zh-Hant.jsonhas a key English no longer has. This removes that leftover entry.What Changed
Removes
mcpServers.removeMessagefrommobile/src/i18n/locales/zh-Hant.json.Why
#49475 replaced
mcpServers.removeMessagewithremoveMessageSavedDatain the mobile English catalog. #50002 was written before that landed and added a translation for the old key. Mobile locale validation rejects extra keys ("Fix or retire the existing target entry"), so main fails. The new key is just untranslated for now, which the check allows.#50160 set the zod-prefer-lazy baseline for
connector-params.tsat 4 eager schemas. #49406 had already added a 5th (ConnectorWakeReplyPlace), so the ratchet fails with "5 eager top-level Zod schema(s), baseline allows 4".Linked Issue
None. This fixes main CI, which broke when #49475 and #50002 crossed, and when #49406 and #50160 crossed.
Visual Proof
N/A: nothing changes on screen. The removed key isn't referenced anywhere.
Testing
bun config/scripts/localization/catalog-validation/verify-mobile-localization.mjs: exits 1 onorigin/main("extra: mcpServers.removeMessage") and exits 0 with this change.verify-localization-catalogs.mjspasses.check-zod-prefer-lazy-ratchet.mjsfails onorigin/mainand passes with this change.lazyZodSchemareturns the same schema type, so the RPC method and the generated params catalog are unchanged.I manually tested these changes locally
Automated tests added/updated, or explained why not below
Every added test fails without this change and avoids the test anti-patterns
No test added: the existing CI check covers this.
Performance
None, because it removes one unused string and defers one schema until its first use.
Risk
Level: Low
The removed key has no readers after #49475. Every other connector schema in that file already uses the same lazy wrapper. A plain revert brings both CI failures back.
AI Disclosure
Review
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)