Repository navigation
fix(onboarding): show translated labels when connecting to a gateway - #1619
Conversation
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]>
|
🦞👀 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 changes before merge. Reviewed October 5, 2026, 10:09 PM ET / October 6, 2026, 02:09 UTC (Revision 3). ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherThe 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]
Before merge
Agent review detailsSecurityNone. Review metrics
Technical reviewBest 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. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
Rendered copy screenshotsCurrent source: These are complete 1411 × 1772 captures of the actual mounted WinUI SetupWindow, rendered through 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 Connection editorThe title, full description, Back, Check connection and Next display readable labels rather than resource keys. CheckingThe synthetic pending operation displays Checking the gateway connection... and the Cancel action. It does not display native package-installation copy. CancelledCancelling the synthetic operation displays Connection attempt cancelled. and restores the editor actions. Capture identity and integrityRun:
Only English rendered copy is shown. Other locales retain resource-level test coverage, not rendered-pixel proof. The existing interactive proof requirement remains open. |
Scoped maintainer triage verdictNEEDS_HUMAN_TEST. Take confidence: 75%. Recommendation confidence: 95%. Reviewed head: Basis and remaining gatesNo 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 confidencebkudiess: 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 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. |



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
synthetic-unsent-test-tokenfixture atOnboardingWindowsFlowTests.cs:816. No scanner bypass was used. These are helper limitations, not a clean autoreview claim.Change Type
Scope
winnodeRequired 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:.\build.ps1dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restoredotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restoredotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --filter "FullyQualifiedName~LocalizationValidationTests|FullyQualifiedName~NativeGatewaySetupUxContractTests|FullyQualifiedName~LocalizationHelperSourceTests"dotnet test .\tests\OpenClaw.SetupEngine.Tests\OpenClaw.SetupEngine.Tests.csproj --no-restore --filter FullyQualifiedName~SetupNativeConnectiondotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -r win-x64 --filter FullyQualifiedName~OnboardingWindowsFlowTests.NativeEditorAn initial Shared run hit the unrelated process-wide
FileStreamunobservedObjectDisposedExceptioninMcpHttpServerTests.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
ISetupNativeConnectionHost, three isolated tray storage roots, no real credentials or Gateway.a1182acf090dcd7bd73f6152c01106ff131a01db. Tests ran before commit; staged diff identity and all changed-file hashes were verified unchanged after validation/review. Diff SHA256:f4a98c376815cb1526ccaf10db916fe3e70e31abe229d06148967d29bf19163e.Passed! - Failed: 0, Passed: 4, Skipped: 0, Total: 4. TRX, source freeze, process ownership and metadata comparison receipts are retained locally, not uploaded.Security Impact
Compatibility and Migration
Review Conversations
No GitHub review threads existed at creation. Local dual-model findings were addressed and re-reviewed.