Repository navigation
fix(i18n): keep HTTP headers out of native translations - #147119
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 3:38 AM ET / 07:38 UTC (Revision 9). ClawSweeper reviewWhat this changesSeparates Android and Apple translation-helper discovery so HTTP header names stay out of the native translation inventory, with regression coverage. Merge readiness✅ Ready for maintainer review This fix remains necessary: current main and v2026.9.4 still share discovered helper names across platforms. No actionable patch defect remains, and the earlier generated-locale finding is resolved. Priority: P2 Review scores
Verification
How this fits togetherNative localization tooling scans Kotlin and Swift source for translatable text. Its inventory feeds the existing Android and Apple translation-resource generators. flowchart TD
A[Kotlin source] --> C[Native text discovery]
B[Swift source] --> C
C --> D[Platform-specific helper names]
D --> E[Translation source inventory]
E --> F[Locale refresh workflow]
F --> G[Android and Apple resources]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +58, Other +9. Total +67 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep helper discovery scoped by platform in the existing collector, preserving stable inventory identities and the established post-merge locale refresh. Do we have a high-confidence way to reproduce the issue? Yes, from source: the shared Swift header helper name causes Android header("Accept", ...) and header("Location") calls to qualify as UI text. No local execution was performed. Is this the best way to solve the issue? Yes. Platform-scoped learned names repair the classification owner directly without adding header-specific exclusions or changing native networking. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7dcdb14e8435. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (8 earlier review cycles)
|
506da71 to
082b452
Compare
082b452 to
4314e0c
Compare
2f1f086 to
b204047
Compare
4314e0c to
4427aae
Compare
4427aae to
f261089
Compare
f261089 to
a5b1835
Compare
|
Merged via squash.
|
* commit '0945dabbe487213e95e84a72ad1aae3659e0e000': (115 commits) fix: omit automation service aliases from squash coauthors (#148883) test: restore services typecheck shard headroom (#148885) perf(trajectory): avoid native probes for truncation records (#148870) improve(gateway): load cron only when reload requests it (#143500) fix: resolve issue #146088 — [Bug]: The most recent Linux AppImage does not ship with the correct versions of libs needed to run (#148174) refactor(theme): share nonvirtual ANSI color lookup (#148717) perf(gateway): scope exact session row topology reads (#148836) improve(memory): reduce vector replacement overhead (#148201) fix(i18n): keep HTTP headers out of native translations (#147119) refactor(plugins): share source-root display formatting (#148646) fix(cron): reject blank script paths before mutations (#148787) refactor(config): share audit positional scanning (#148643) fix(test): restore infrastructure typecheck shard headroom (#148861) fix(release): harden package validation fallbacks (#148729) refactor(config): share leaf and descendant unset pruning (#148216) test: reuse prepared runtime for pristine preflight (#148858) fix(ui): settle global model drafts across agent switches (#148843) fix(queue): avoid repeated scans when cancelling backlogs (#148754) fix(logging): orphaned \\\\?\\ path markers corrupt redacted Windows diagnostics (#147542) refactor(hooks): share optional reply metadata projection (#148641) ...
What Problem This Solves
Native localization discovery mistakes Android HTTP header names for UI text when a SwiftUI helper shares the name
header.User Impact
The source inventory contains UI text without enrolling protocol headers. HTTP behavior and app connections are unchanged.
Why This Change Was Made
Learned UI helper names stay within their Android or Apple surface. iOS, macOS, and shared Swift still share Apple helpers. The filesystem collector uses the same source-array path exercised by the regression tests.
This removes the false Android
Acceptentry and one falseLocationsource site, preserving real Location UI entries and main's unrelated inventory additions. Generated locale refresh remains with its existing post-merge owner.The former UI prerequisite 148059 is closed as superseded by 147990 and 147994. This PR targets main and remains the dependency of 146996.
Evidence
CI 34940928486, attempt 1 passed for signed head
a5b18356d3922f7f2b199b048fa9bcb970082a42: 80 successful jobs, 16 skipped, no failures. Actual checkoute65de429305fc100cd8a4288a1d5ec7a10a30a0dcombines maind02f206fb1d1cabf12939d6de158420c617c9092with that head; tested treef4c9a7e45001304e53d29947f6f20f6722ba135f.test/scripts/native-app-i18n.test.tspassed, with zero failures or skips. Coverage includes cross-file helper reuse, platform isolation, shared Apple discovery, built-in calls, HTTP-header exclusion and stable filesystem collection.git diff --checkpassed.This qualifies the localization collector. Downstream Cloudflare Access layers retain their separate review and compatibility requirements.