Skip to content

fix(i18n): keep HTTP headers out of native translations - #147119

Merged
vincentkoc merged 1 commit into
mainfrom
fix/native-i18n-call-discovery-20260913
Sep 15, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/native-i18n-call-discovery-20260913

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 13, 2026 •

Copy link
Copy Markdown
Member

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 Accept entry and one false Location source 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 checkout e65de429305fc100cd8a4288a1d5ec7a10a30a0d combines main d02f206fb1d1cabf12939d6de158420c617c9092 with that head; tested tree f4c9a7e45001304e53d29947f6f20f6722ba135f.

  • Collector regression and sibling tests: all 42 cases in test/scripts/native-app-i18n.test.ts passed, 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.
  • Native inventory verification: 3,949 entries, no source-inventory drift. Guards, formatting/lint, types, build and the aggregate gate passed.
  • Current source review: no actionable findings; best-fix judgment positive; no remaining premerge or Rank-up items. Independent review also found no actionable P0–P2 defect.
  • The original author, date and message are preserved. The three-path delta is conserved: collector +18/-8, tests +58, generated inventory +1/-2. git diff --check passed.

This qualifies the localization collector. Downstream Cloudflare Access layers retain their separate review and compatibility requirements.

@vincentkoc vincentkoc self-assigned this Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@vincentkoc
vincentkoc marked this pull request as ready for review September 13, 2026 15:10
@openclaw-barnacle openclaw-barnacle Bot added app: android App: android scripts Repository scripts size: S maintainer Maintainer-authored PR labels Sep 13, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 3:38 AM ET / 07:38 UTC (Revision 9).

ClawSweeper review

What this changes

Separates 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
Reviewed head: a5b18356d3922f7f2b199b048fa9bcb970082a42

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level repair with useful regression coverage, successful hosted source verification, and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored collector fix is exempt from external-contributor runtime proof. Hosted source verification exercises the filesystem collector; the reported regression results are supporting validation, and native UI or authentication proof is unrelated.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored collector fix is exempt from external-contributor runtime proof. Hosted source verification exercises the filesystem collector; the reported regression results are supporting validation, and native UI or authentication proof is unrelated.
Evidence reviewed 8 items Introduced change and production entry point: The verified merge-base-to-head diff changes only the collector, its regression test, and source inventory. The filesystem collector calls the same platform-scoped collection function exercised by the regression; built-in recognition and shared Apple discovery remain intact.
Current main still contains the defect: Current main builds one shared uiCallNames set and adds both Kotlin composables and Swift view helpers to it. A Swift header helper therefore enables Android HTTP header calls to enter the inventory.
Latest release comparison: The v2026.9.4 collector also uses shared typedSources and uiCallNames.add calls; this platform-isolation fix is not present there.
Findings None None.
Security None None.

How this fits together

Native 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +58, Other +9. Total +67 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 58 0 +58
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 19 10 +9
Total 3 77 10 +67

Review metrics

None.

Technical review

Best 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.

Labels

Label justifications:

  • P2: Repairs a source-proven localization inventory defect with limited scope and no runtime HTTP behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored collector fix is exempt from external-contributor runtime proof. Hosted source verification exercises the filesystem collector; the reported regression results are supporting validation, and native UI or authentication proof is unrelated.

Evidence

What I checked:

  • Introduced change and production entry point: The verified merge-base-to-head diff changes only the collector, its regression test, and source inventory. The filesystem collector calls the same platform-scoped collection function exercised by the regression; built-in recognition and shared Apple discovery remain intact. (scripts/native-app-i18n.ts:1292, a5b18356d392)
  • Current main still contains the defect: Current main builds one shared uiCallNames set and adds both Kotlin composables and Swift view helpers to it. A Swift header helper therefore enables Android HTTP header calls to enter the inventory. (scripts/native-app-i18n.ts:1299, 7dcdb14e8435)
  • Latest release comparison: The v2026.9.4 collector also uses shared typedSources and uiCallNames.add calls; this platform-isolation fix is not present there. (scripts/native-app-i18n.ts:1327, 3a9d69db306c)
  • Meaningful regression coverage: The added fixture places callers before helper declarations, checks cross-file discovery in both platforms, preserves shared iOS/macOS helpers, and excludes HTTP headers and cross-platform helper collisions. Existing filesystem coverage remains. Tests were inspected, not executed during this read-only review. (test/scripts/native-app-i18n.test.ts:422, a5b18356d392)
  • Earlier locale-artifact finding resolved: Current policy assigns generated locale snapshots and resources to serialized refresh workflows while source PRs maintain the extraction inventory. The current introduced diff follows that split; the prior request to remove generated locale artifacts should not be raised again. Public docs: docs/ci/pipeline.md. (docs/ci/pipeline.md:143, a5b18356d392)
  • Hosted source verification: GitHub reports the native-i18n job and its source-verification step successful, with strict generated-locale parity intentionally skipped. The captured PR body ties this run to the verified test merge and reports 3,949 inventory entries without drift; GitHub also reports the linked regression-test shard successful. (.github/workflows/ci.yml:2581, e65de429305f)

Likely related people:

  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (8 earlier review cycles)
  • reviewed 2026-09-13T15:18:36.818Z sha 1e4a062 :: needs changes before merge. :: [P2] Remove generated locale artifacts from this source PR
  • reviewed 2026-09-13T15:33:21.926Z sha 506da71 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-13T17:03:41.905Z sha 506da71 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-14T02:36:52.006Z sha 082b452 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-14T07:45:35.132Z sha 4314e0c :: blocked before merge. :: none
  • reviewed 2026-09-14T08:47:38.787Z sha 4427aae :: blocked before merge. :: none
  • reviewed 2026-09-14T11:42:28.400Z sha f261089 :: blocked before merge. :: none
  • reviewed 2026-09-15T07:23:10.392Z sha a5b1835 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 13, 2026
@vincentkoc
vincentkoc force-pushed the fix/native-i18n-call-discovery-20260913 branch from 506da71 to 082b452 Compare September 14, 2026 02:29
@openclaw-barnacle openclaw-barnacle Bot removed the app: android App: android label Sep 14, 2026
@vincentkoc
vincentkoc force-pushed the fix/native-i18n-call-discovery-20260913 branch from 082b452 to 4314e0c Compare September 14, 2026 07:33
@vincentkoc
vincentkoc changed the base branch from main to fix/ui-website-frame-input-20260914 September 14, 2026 07:33
@vincentkoc
vincentkoc marked this pull request as draft September 14, 2026 08:23
@vincentkoc
vincentkoc force-pushed the fix/ui-website-frame-input-20260914 branch from 2f1f086 to b204047 Compare September 14, 2026 08:27
@vincentkoc
vincentkoc force-pushed the fix/native-i18n-call-discovery-20260913 branch from 4314e0c to 4427aae Compare September 14, 2026 08:27
@vincentkoc
vincentkoc marked this pull request as ready for review September 14, 2026 08:29
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 14, 2026
@vincentkoc
vincentkoc marked this pull request as draft September 14, 2026 10:05
@vincentkoc
vincentkoc force-pushed the fix/native-i18n-call-discovery-20260913 branch from 4427aae to f261089 Compare September 14, 2026 10:06
@vincentkoc
vincentkoc marked this pull request as ready for review September 14, 2026 10:13
@vincentkoc
vincentkoc marked this pull request as draft September 15, 2026 07:16
@vincentkoc
vincentkoc changed the base branch from fix/ui-website-frame-input-20260914 to main September 15, 2026 07:16
@vincentkoc
vincentkoc force-pushed the fix/native-i18n-call-discovery-20260913 branch from f261089 to a5b1835 Compare September 15, 2026 07:16
@vincentkoc
vincentkoc marked this pull request as ready for review September 15, 2026 07:17
@vincentkoc
vincentkoc merged commit 8ac05a7 into main Sep 15, 2026
188 of 189 checks passed
@vincentkoc
vincentkoc deleted the fix/native-i18n-call-discovery-20260913 branch September 15, 2026 07:43
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 15, 2026
* 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)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant