Skip to content

fix(onboarding): show translated labels when connecting to a gateway - #1619

Merged
karkarl merged 1 commit into
mainfrom
bkudiess-onboarding-localization-fix
Oct 6, 2026
Merged

karkarl merged 1 commit into
mainfrom
bkudiess-onboarding-localization-fix

Conversation

@bkudiess

@bkudiess bkudiess commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes raw resource keys in the connection editor's title, description, Back and Cancel labels when connecting to an existing or remote Gateway. Checking and cancellation also incorrectly described native package installation.

User Impact

Users see translated connection labels and connection-specific status messages in all six supported locales. Welcome's existing-Gateway choice and Advanced's existing/remote routes share this repair. Installer copy, navigation and connection transaction behavior are unchanged.

Why This Change Was Made

The editor mixed two resource namespaces and borrowed installer status text. Its 21 resource references now consistently use Onboarding_NativeConnection_*; both external failure-message callers are updated. Existing translations are preserved, with separate translated checking/cancellation messages.

Regression coverage derives keys from actual page calls, checks every locale and exact status wording, and asserts mounted labels, accessible names and cancellation messages. UI expectations use the compiled PRI's default language context instead of assuming English; valid invariant terms are no longer rejected by a blanket translation-inequality check.

Evidence

  • Seven new regression cases failed against the original source, exposing four missing keys in each locale and installer checking text; all now pass.
  • XML comparison verified all 15 renamed values per locale and all retained installer resources are unchanged.
  • Four synthetic mounted NativeEditor cases passed for Existing/Remote routes, readable labels/accessibility, action bounds, failed Check/Next, cancellation and drain.
  • Independent Opus 5.5 and GPT-6 Astra Hanselman reviews found no production defects. Both confirmed the two accepted test findings resolved on the final delta, with no new findings.
  • The additional autoreview helper did not complete model review: local mode exceeded its bundle limit under isolated Git configuration; commit mode rejected the pre-existing synthetic-unsent-test-token fixture at OnboardingWindowsFlowTests.cs:816. No scanner bypass was used. These are helper limitations, not a clean autoreview claim.

Change Type

  • Bug fix
  • Feature
  • Refactor
  • Docs or instructions
  • Tests or validation
  • Security hardening
  • Chore or infrastructure

Scope

  • Tray or WinUI UX
  • Windows node capability
  • Local MCP or winnode
  • Gateway, connection, or pairing
  • Setup or onboarding
  • Permissions, privacy, or security
  • Tests, CI, or docs

Required proof pools

  • windows-winui-interactive: connection-editor labels and status copy changed. Not verified / blocked: authorized interactive screenshot/native-input proof has not been collected. This PR is open for review; the required interactive proof remains outstanding.

Validation

Windows local validation of the exact source snapshot committed as a1182acf090dcd7bd73f6152c01106ff131a01db:

Command Result
.\build.ps1 Passed
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore 4,224 passed, 34 skipped, 0 failed
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore 3,897 passed, 0 failed
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --filter "FullyQualifiedName~LocalizationValidationTests|FullyQualifiedName~NativeGatewaySetupUxContractTests|FullyQualifiedName~LocalizationHelperSourceTests" 47 passed
dotnet test .\tests\OpenClaw.SetupEngine.Tests\OpenClaw.SetupEngine.Tests.csproj --no-restore --filter FullyQualifiedName~SetupNativeConnection 17 passed
dotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -r win-x64 --filter FullyQualifiedName~OnboardingWindowsFlowTests.NativeEditor 4 passed

An initial Shared run hit the unrelated process-wide FileStream unobserved ObjectDisposedException in McpHttpServerTests.Dispose_DuringInFlightHandler_DoesNotSurfaceObjectDisposedException. The failing test passed in isolation, followed by a full build/Shared/Tray rerun passing without code edits. Initial failure evidence is preserved; this PR does not modify MCP code. The full UI suite was not run locally.

Real Behavior Proof

  • Environment tested: existing isolated WinUI testhost with a synthetic ISetupNativeConnectionHost, three isolated tray storage roots, no real credentials or Gateway.
  • PR head or commit tested: source snapshot committed unchanged as a1182acf090dcd7bd73f6152c01106ff131a01db. Tests ran before commit; staged diff identity and all changed-file hashes were verified unchanged after validation/review. Diff SHA256: f4a98c376815cb1526ccaf10db916fe3e70e31abe229d06148967d29bf19163e.
  • Exact steps or command run: the NativeEditor filtered UI command above mounts Existing/Remote editors, asserts every constructor label and accessible input name, invokes failed Check/Next, cancels a held check, and closes during another held check.
  • Evidence after fix: Passed! - Failed: 0, Passed: 4, Skipped: 0, Total: 4. TRX, source freeze, process ownership and metadata comparison receipts are retained locally, not uploaded.
  • Observed result: mounted labels/status assertions pass; cancellation stays in the editor, creates no saved Gateway and drains on close. Real AppData metadata had zero before/after changes; no owned testhosts remained.
  • Screenshot or artifact links verified? N/A. No public screenshot or log attachments.
  • Not verified or blocked: interactive compositor screenshots, native keyboard/mouse input, explicitly non-English mounted/pixel rendering, and real Gateway execution. Six-locale wording is checked at the resource-source level. Synthetic framework assertions do not satisfy the interactive proof pool.

Security Impact

  • New permissions or capabilities? No
  • Secrets or tokens handling changed? No
  • New or changed network calls? No
  • Command or tool execution surface changed? No
  • Data access scope changed? No
  • If any answer is Yes, explain the risk and mitigation: N/A. Check remains read-only; Next revalidates and commits through existing owners. Cancellation/rollback, secret clearing and error visibility are unchanged.

Compatibility and Migration

  • Backward compatible? Yes
  • Config or environment changes? No
  • Migration needed? No
  • If yes, list the exact upgrade steps: N/A

Review Conversations

  • I replied to or resolved every bot review conversation addressed by this PR.
  • I left unresolved only conversations that still need maintainer judgment.

No GitHub review threads existed at creation. Local dual-model findings were addressed and re-reviewed.

Use connection-owned resources across all supported locales without changing native installer copy or connection transactions. Cover actual resource references and mounted localized controls.

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

clawsweeper Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

🦞👀
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.

@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 3, 2026
@bkudiess
bkudiess marked this pull request as ready for review October 3, 2026 02:24
@clawsweeper

clawsweeper Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codex review: needs changes before merge. Reviewed October 5, 2026, 10:09 PM ET / October 6, 2026, 02:09 UTC (Revision 3).

ClawSweeper review

What this changes

The PR repairs gateway connection labels and checking/cancellation messages across six languages, updates failure-message callers, and adds localization and mounted-editor regression coverage.

Merge readiness

⛔ Needs changes before merge - 1 item remains

The fix remains necessary on current main, and no introduced correctness defect was found. The inspected screenshots provide useful copy evidence, but the outstanding isolated interactive proof requirement remains unresolved.

Priority: P2
Reviewed head: a1182acf090dcd7bd73f6152c01106ff131a01db

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch and regression coverage are sound, but useful screenshot evidence does not yet satisfy the scoped interactive proof gate.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Evidence reviewed 8 items Introduced patch boundary: Reviewed the pinned merge-base-to-head delta across all 12 files. Production changes are resource-key alignment and message resources; connection transactions, authorization, persistence, and network execution are unchanged. Base-only CI changes are excluded. The supplied test merge is stale and was not used to infer landing behavior.
Still needed on main: Current main still constructs Onboarding_Native_ keys, while title, description, Back, and Cancel resources use Onboarding_NativeConnection_. SetupLocalization returns unresolved keys verbatim. Installer checking and cancellation resources also remain unsuitable for this editor.
Release boundary: The connection-editor source path is absent from the supplied latest release commit v2026.9.4. This is a repair to newer onboarding behavior; no shipped or main implementation superseding this PR was established.
Findings None None.
Security None None.

How this fits together

The Windows onboarding connection editor takes a gateway address, credentials, and optional SSH settings. It displays localized connection progress while existing connection owners check or save the gateway.

flowchart TD
 A[Existing or remote gateway route] --> B[Connection editor]
 C[Six language resource sets] --> B
 B --> D[Check or Next]
 D --> E[Existing connection host]
 E --> F[Localized result or cancellation]
 E --> G[Saved gateway after Next]
Loading

Before merge

  • Complete next step (P2) - Complete and attach current-head windows-winui-interactive evidence with verified isolation, a non-English editor, and checking/cancelled states before merge.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Production versus test growth production +12 net lines; tests +107 net lines Production growth supplies two connection-specific messages in six locales; most added code strengthens regression coverage.

Technical review

Best possible solution:

Use connection-owned translations consistently while preserving installer copy and existing connection transactions, with readable native rendering confirmed in English and a non-English locale.

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

Yes, from source: entering the Existing or Remote gateway editor on current main resolves four labels through mismatched keys and uses installer status resources. No live current-main reproduction was executed.

Is this the best way to solve the issue?

Yes. Aligning the editor and its two failure-message callers with a dedicated resource namespace is a focused repair that preserves existing translated values and connection behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 9dedabe66187.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This repairs confusing onboarding labels and status text without evidence that connection execution itself is blocked.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.

Evidence

What I checked:

  • Introduced patch boundary: Reviewed the pinned merge-base-to-head delta across all 12 files. Production changes are resource-key alignment and message resources; connection transactions, authorization, persistence, and network execution are unchanged. Base-only CI changes are excluded. The supplied test merge is stale and was not used to infer landing behavior. (src/OpenClaw.SetupEngine.UI/Pages/SetupNativeConnectionPage.xaml.cs:247, a1182acf090d)
  • Still needed on main: Current main still constructs Onboarding_Native_ keys, while title, description, Back, and Cancel resources use Onboarding_NativeConnection_. SetupLocalization returns unresolved keys verbatim. Installer checking and cancellation resources also remain unsuitable for this editor. (src/OpenClaw.SetupEngine.UI/Pages/SetupNativeConnectionPage.xaml.cs:247, 9dedabe66187)
  • Release boundary: The connection-editor source path is absent from the supplied latest release commit v2026.9.4. This is a repair to newer onboarding behavior; no shipped or main implementation superseding this PR was established. (3c43751b2bac)
  • Inspected screenshot evidence: Inspected all three prepared images linked in fix(onboarding): show translated labels when connecting to a gateway #1619 (comment). They visibly show readable English editor labels, 'Checking the gateway connection...', Cancel, and 'Connection attempt cancelled.' The contributor identifies the exact head and synthetic RenderTargetBitmap environment, and explicitly reports failed isolation verification. These establish narrow rendered-copy evidence, not successful isolated native interaction. (a1182acf090d)
  • Applicable interactive proof policy: The proof-pool contract distinguishes hosted framework assertions from authorized interactive desktop evidence with all three isolated tray roots and source/build freeze. The PR declares this pool outstanding. (docs/PROOF_POOLS.md:23, a1182acf090d)
  • Review continuity and collaborator disposition: The previous completed review had no findings and requested current-head interactive evidence. The subsequent collaborator triage at fix(onboarding): show translated labels when connecting to a gateway #1619 (comment) retains that gate and asks for a non-English editor plus checking/cancelled states; it does not attribute the isolation failure to a production defect. (a1182acf090d)

Likely related people:

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

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Attach current-head evidence from the maintainer-scheduled windows-winui-interactive pool with verified isolated storage, English and non-English editor labels, and checking/cancelled states. Prefer screenshots or video and redact credentials, private addresses, and unrelated desktop content. Update the PR body to trigger review, or ask a maintainer for @clawsweeper re-review.

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 (2 earlier review cycles)
  • reviewed 2026-10-03T02:24:02.312Z sha a1182ac :: needs changes before merge. :: none
  • reviewed 2026-10-03T02:28:43.670Z sha a1182ac :: needs changes before merge. :: none

@bkudiess

bkudiess commented Oct 3, 2026

Copy link
Copy Markdown
Collaborator Author

Rendered copy screenshots

Current source: a1182acf090dcd7bd73f6152c01106ff131a01db.

These are complete 1411 × 1772 captures of the actual mounted WinUI SetupWindow, rendered through RenderTargetBitmap with a synthetic connection host and the English resource context. The .invalid address and masked token are test data. No source changes were needed.

Warning

Isolation verification FAILED. The before/after check detected changes to four real-storage metadata entries on this shared host. This is treated as an isolation breach; attribution is unproven. Runtime attempts have stopped, all owned processes are gone, and metadata/PID/timing evidence is preserved. These images are narrowly scoped, framework-rendered copy evidence, not a successful isolated-runtime validation, native compositor/input proof, real Gateway behavior proof, or completion of windows-winui-interactive.

Connection editor

The title, full description, Back, Check connection and Next display readable labels rather than resource keys.

Connection editor showing readable title, description and action labels

Checking

The synthetic pending operation displays Checking the gateway connection... and the Cancel action. It does not display native package-installation copy.

Connection editor showing connection-specific checking status and Cancel action

Cancelled

Cancelling the synthetic operation displays Connection attempt cancelled. and restores the editor actions.

Connection editor showing connection-specific cancellation status

Capture identity and integrity

Run: run-20261003T023600Z-1619. Clean source HEAD verified before and after capture. All three frames were visually inspected; uploaded bytes were downloaded with authenticated access and SHA256-matched to the local originals.

Image SHA256
Editor 50adc4816a92b5e6d0ca4067b2ab5f3cfa9e298cbe37f00f3ba84d2975ac56fd
Checking e11e504aefc8b66b078fce3c6fdbdaa504321c6764b068860e8daa22fc639cdb
Cancelled a5bae281a204afd9e0053965586bb8cefd39802d52bdf9aae456c05ae4f9987f

Only English rendered copy is shown. Other locales retain resource-level test coverage, not rendered-pixel proof. The existing interactive proof requirement remains open.

@karkarl

karkarl commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

Scoped maintainer triage verdict

NEEDS_HUMAN_TEST. Take confidence: 75%. Recommendation confidence: 95%.

Reviewed head: a1182acf090dcd7bd73f6152c01106ff131a01db. Live state refreshed October 5, 2026 (UTC): open, non-draft, merge state CLEAN, CI Gate SUCCESS. A clean merge state is not proof of validation against the eventual landing base.

Basis and remaining gates

No confirmed blocking source defect. Static review found consistent renamed keys across six locales. Reported build, Shared 4,224, Tray 3,897 and focused localization/setup/editor tests passed. Existing RenderTargetBitmap captures had failed isolation verification; this is not proof of a production write bug, but those captures cannot close the isolated interactive gate. Include a non-English editor and checking/cancelled states.

To reach 90%+ take confidence

bkudiess: all-locale key/placeholder tests plus visible current-head connect labels in a verified isolated app. Existing failed-isolation captures are not qualifying proof. UI.

Here, Floor means final-head .\build.ps1, dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore and dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore, with real restore/build first on a fresh worktree. Add the touched-owner suites. UI means windows-winui-interactive with isolated data and visible changed-state proof; other hardware/installer/Gateway pools must match the affected behavior. Recheck the actual landing base, required CI and final review; rerun affected proof if integration changes the head.

Quoted execution results are author/maintainer receipts reviewed during the scoped triage, not tests rerun by this posting session. Missing or stale-head proof is not a pass. A dedicated child session is preparing a read-only revalidation/closeout plan; no implementation, destructive execution, CI rerun or merge is authorized by this verdict.

@karkarl
karkarl merged commit f433589 into main Oct 6, 2026
31 checks passed
@karkarl
karkarl deleted the bkudiess-onboarding-localization-fix branch October 6, 2026 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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