Skip to content

fix(ci): clear main's stale zh-Hant phone string and eager connector schema - #50170

Merged
AmoabaKelvin merged 2 commits into
mainfrom
fix-stale-zh-hant-mcp-remove-message
Nov 27, 2026
Merged

AmoabaKelvin merged 2 commits into
mainfrom
fix-stale-zh-hant-mcp-remove-message

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

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.json has a key English no longer has. This removes that leftover entry.

Files Added Deleted Net
Test 0 0 0 0
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​6 $\color{#cf222e}{\Huge{\mathbf{−}}}$​5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1

What Changed

Removes mcpServers.removeMessage from mobile/src/i18n/locales/zh-Hant.json.

Why

#49475 replaced mcpServers.removeMessage with removeMessageSavedData in 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.ts at 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 on origin/main ("extra: mcpServers.removeMessage") and exits 0 with this change.

  • verify-localization-catalogs.mjs passes.

  • check-zod-prefer-lazy-ratchet.mjs fails on origin/main and passes with this change. lazyZodSchema returns 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

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

…he phone

#49475 replaced mobile mcpServers.removeMessage; #50002 then translated the old key, failing mobile locale validation on main.
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Traditional Chinese locale removes the mcpServers.removeMessage translation. The agentBlocked translation remains. ConnectorWakeReplyPlace now uses lazyZodSchema to construct its object schema lazily. Its sessionId validation is unchanged.

Merge Risk: Minimal · up to b1815

The change removes a stale Traditional Chinese translation key and defers construction of a connector schema. No concrete regression has been identified, so merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title names two changes: removing a stale zh-Hant phone string and making a connector schema eager-free. The raw summary covers both, with the zh-Hant locale removal and the ConnectorWakeReplyPlac…
Description check Passed The description follows the template well. It has an ELI5, What Changed, Why, Visual Proof marked N/A with reason, Testing with concrete commands and results, Performance with a one-line justification…
Full details: Title check

Explanation

The title names two changes: removing a stale zh-Hant phone string and making a connector schema eager-free. The raw summary covers both, with the zh-Hant locale removal and the ConnectorWakeReplyPlace lazyZodSchema change. However, the PR description and objectives focus on the locale fix, and the title's 'fix(ci)' framing and two-part scope fit the CI repair. The title is specific and accurate, though it spans two unrelated fixes.

Full details: Description check

Explanation

The description follows the template well. It has an ELI5, What Changed, Why, Visual Proof marked N/A with reason, Testing with concrete commands and results, Performance with a one-line justification, and Risk with a level and revert plan. Gaps: the Linked Issue section says 'None' rather than linking an issue, and the 'Fixes #' line is unfilled. The description also does not mention the connector-params.ts lazyZodSchema change in What Changed, even though the Why section covers it. The final lint/typecheck checkbox is unchecked, and the AI Disclosure and Review sections are empty.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c7dc1410-895f-4f5c-86fd-a55c1616d2e4
Commits

Reviewing files that changed from the base of the PR and between d637bbf and b18159e.

Files selected for processing: 1

  • src/shared/rpc-contract/connectors/connector-params.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

#49406 added an eager schema to connector-params.ts while #50160 set its ratchet baseline, failing ratchets on main.
@AmoabaKelvin AmoabaKelvin changed the title fix(i18n): drop the stale Traditional Chinese MCP remove message on the phone fix(ci): clear main's stale zh-Hant phone string and eager connector schema Nov 27, 2026
@AmoabaKelvin
AmoabaKelvin merged commit d8e476b into main Nov 27, 2026
59 checks passed
@AmoabaKelvin
AmoabaKelvin deleted the fix-stale-zh-hant-mcp-remove-message branch November 27, 2026 00:11
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