Skip to content

fix(i18n): separate native UI call discovery by platform - #142295

Closed
roboclaw-bot wants to merge 3 commits into
openclaw/pr138726-split-r-readinessfrom
openclaw/pr138726-split-i-i18n
Closed

roboclaw-bot wants to merge 3 commits into
openclaw/pr138726-split-r-readinessfrom
openclaw/pr138726-split-i-i18n

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #138726

What Problem This Solves

Fixes an issue where UI call names discovered on one native platform could cause protocol strings on the other platform to be classified as translatable UI copy.

Why This Change Was Made

Keep Android and Apple built-in and discovered call-name sets separate, while preserving the existing stable source-ID rules and canonical inventory generator.

User Impact

The native translation inventory no longer includes the affected false-positive Android entries. Real UI strings and existing translations retain their ownership; this does not change Talk routing or add translations.

Evidence

Source-only correction — September 10, 2026

Head: 6215c700c3db6687cf9f8724b35b352743791cf8. The source-only correction preserves the platform-scoped producer fix and intentional Accept inventory cleanup. Source-aware admission and native source verification pass; 37 focused tests passed, and canonical P0–P2 review of the correction returned zero findings.

  • 29 native-inventory tooling tests previously passed for the platform-scoped discovery change.

  • I removes the false-positive Accept source/inventory entry. Generated locale dictionaries, lookup code and Android resources are deliberately kept at the corresponding base here; their cleanup belongs to the Main-only native locale refresh workflow.

  • Prior generated-candidate evidence: the earlier regenerated candidate passed canonical validation of all 21 locales, Android/Apple resources and inventories. This is not a strict generated-parity claim for the current source-only PR.

  • Existing nonblocking localization quality advisories were not suppressed; no general translation cleanup was performed.

  • Current source-only verification: native source/inventory verification and the unchanged source-aware admission guard pass. The earlier strict 21-locale/generated-resource result belongs to the prior regenerated candidate.

Historical validation source tree: commit e394b7c742ef26513d158ea5b53430db619bc57b. The local evidence above has its stated scope.

Native locale publication boundary

This is a source-only PR. Source/inventory changes and program behavior are retained; generated native locale dictionaries, lookup tables and XML are owned by the serialized Main-only Native App Locale Refresh workflow after source landing. Source-aware admission and inventory verification are distinct from strict generated-resource parity. No refresh or Main merge is performed by this PR update.

The intentional Accept inventory cleanup and platform-specific discovery fix remain. Keeping predecessor-generated artifacts here removes mixed source/generated publication, not the producer fix.

Worked on by:

Keep Apple UI-call names out of Android protocol-string discovery and Android names out of Apple discovery. Preserve stable source identifiers and regenerate the canonical inventory.

Worked on by:
- @IWhatsskill

Co-authored-by: IWhatsskill <[email protected]>
@clawsweeper

clawsweeper Bot commented Sep 8, 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.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S maintainer Maintainer-authored PR labels Sep 8, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 8, 2026 15:53
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 8, 2026
@clawsweeper

clawsweeper Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 10, 2026, 10:10 AM ET / 14:10 UTC (Revision 10).

ClawSweeper review

What this changes

Separates Android and Apple translation-string discovery, adds collision coverage, and removes HTTP-header false positives from the native source inventory.

Merge readiness

✅ Ready for maintainer review

The fix remains useful: current main and the latest release still share call-name discovery across platforms. No introduced defect was found, and the updated body resolves the previous review’s evidence-scope request.

Priority: P2
Reviewed head: 6215c700c3db6687cf9f8724b35b352743791cf8

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused producer repair with meaningful collision coverage and resolved prior feedback; reported validation was not rerun during this read-only review.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied repository context identifies this as a member-authored PR, so the external-contributor proof gate does not apply. The body reports current-head inventory verification and 37 focused tests; historical generated-resource validation is explicitly separate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied repository context identifies this as a member-authored PR, so the external-contributor proof gate does not apply. The body reports current-head inventory verification and 37 focused tests; historical generated-resource validation is explicitly separate.
Evidence reviewed 8 items Platform-scoped producer repair: The extractor defaults to the selected platform’s builtins, and collection discovers and supplies separate platform sets. Stable identifiers still depend only on platform and source text.
Current-main and release necessity: Both fetched main and v2026.9.3 retain the combined Apple/Android builtin set and shared discovery set; neither inspected implementation contains this repair.
Current-main source check: Fetched main still initializes one shared call-name set and adds discovered platform names to it.
Findings None None.
Security None None.

How this fits together

Native localization tooling scans Android and Apple source files to identify translatable text. Its inventory feeds the separate locale-refresh process that generates translations and platform resources.

flowchart TD
  A[Android source] --> C[Android UI call names]
  B[Apple source] --> D[Apple UI call names]
  C --> E[Extract translatable text]
  D --> E
  E --> F[Stable source inventory]
  F --> G[Locale refresh and platform resources]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +72, Other +1. Total +73 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 73 1 +72
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 11 10 +1
Total 3 84 11 +73

Review metrics

None.

Technical review

Best possible solution:

Keep discovery platform-scoped at the inventory producer and let the existing locale-refresh owner publish derived resources.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: the shared discovery set lets an Apple UI helper named header classify Android HTTP-header literals as UI text. No runtime reproduction was executed in this read-only review.

Is this the best way to solve the issue?

Yes. Separating the existing producer’s platform sets repairs the demonstrated collision without adding a competing extraction path or changing source identifiers.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 878bc51433d4.

Labels

Label justifications:

  • P2: This repairs a bounded localization-inventory defect without changing application routing or user settings.
  • 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: The supplied repository context identifies this as a member-authored PR, so the external-contributor proof gate does not apply. The body reports current-head inventory verification and 37 focused tests; historical generated-resource validation is explicitly separate.

Evidence

What I checked:

  • Platform-scoped producer repair: The extractor defaults to the selected platform’s builtins, and collection discovers and supplies separate platform sets. Stable identifiers still depend only on platform and source text. (scripts/native-app-i18n.ts:1306, 6215c700c3db)
  • Current-main and release necessity: Both fetched main and v2026.9.3 retain the combined Apple/Android builtin set and shared discovery set; neither inspected implementation contains this repair. (scripts/native-app-i18n.ts, 1391f7cd2d40)
  • Current-main source check: Fetched main still initializes one shared call-name set and adds discovered platform names to it. (scripts/native-app-i18n.ts, 878bc51433d4)
  • Concrete collision mechanism: Apple ChatTalkActivityViews declares a View-producing function named header. Android SafeRemoteImage uses header for Accept and Location HTTP fields, explaining why cross-platform name discovery creates false positives. (apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatTalkActivityViews.swift:89, 6215c700c3db)
  • Regression coverage: The new cases exercise builtin and discovered-name collisions in both directions while retaining legitimate UI strings. The readFile substitution delegates other reads and restores the original implementation in finally. (test/scripts/native-app-i18n.test.ts:367, 6215c700c3db)
  • Previous review follow-up resolved: The captured body explicitly identifies current source-only verification and labels the older 21-locale validation historical. The complete introduced delta contains no generated dictionaries, lookup code, or Android resources, resolving the earlier generated-publication finding. (6215c700c3db)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: 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 (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-08T16:53:12.811Z sha 91bd0ba :: needs maintainer review before merge. :: none
  • reviewed 2026-09-08T19:44:50.479Z sha e394b7c :: needs maintainer review before merge. :: none
  • reviewed 2026-09-08T19:53:13.426Z sha e394b7c :: needs maintainer review before merge. :: none
  • reviewed 2026-09-08T20:27:43.464Z sha e394b7c :: needs maintainer review before merge. :: none
  • reviewed 2026-09-08T21:24:42.398Z sha e394b7c :: needs maintainer review before merge. :: none
  • reviewed 2026-09-09T10:07:07.049Z sha cd2af30 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-09T15:14:47.042Z sha c1f1b7e :: needs changes before merge. :: [P2] Leave generated locale removals to the refresh workflow
  • reviewed 2026-09-10T13:58:20.741Z sha 6215c70 :: needs changes before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: android App: android app: web-ui App: web-ui gateway Gateway runtime size: L and removed size: S labels Sep 8, 2026
@openclaw-barnacle openclaw-barnacle Bot closed this Sep 8, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Sep 8, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: S and removed docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime size: L labels Sep 8, 2026
@openclaw-barnacle openclaw-barnacle Bot closed this Sep 8, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Sep 8, 2026
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/pr138726-split-i-i18n branch from e394b7c to cd2af30 Compare September 9, 2026 09:55
Integrate the reviewed owner-scoped repairs and updated stack prerequisite.
Retain the validated I layer source with only the inherited legacy agent-binding fix.
Preserve the historical secondary parent and the validated layer source while restacking its prerequisite.

Co-authored-by: IWhatsskill <[email protected]>
Worked on by:
- @IWhatsskill
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/pr138726-split-i-i18n branch from cd2af30 to c1f1b7e Compare September 9, 2026 15:07
@clawsweeper clawsweeper Bot added 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. 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 9, 2026
Keep platform-scoped extraction, its regression coverage, and the stable source inventory in the source PR. Leave derived locale/resource cleanup to the existing serialized native refresh.

Worked on by:
- @IWhatsskill

Co-authored-by: IWhatsskill <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot removed the app: android App: android label Sep 10, 2026
@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 10, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Closing this PR in favor of a planned rebuild on current main.

@RomneyDa
RomneyDa deleted the openclaw/pr138726-split-i-i18n branch October 22, 2026 00:23
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.

2 participants