Repository navigation
feat: start fresh Tauri installs with a local Gateway - #169512
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: blocked before merge. What this changesThis PR automatically prepares a local Gateway for fresh Linux and Windows Tauri installs and connects the shared setup card to native desktop actions. Example: Launch the Linux Tauri app with no openclaw.json and no saved Gateway profiles.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep this PR open: it provides distinct, maintainer-approved desktop onboarding work, and review found no actionable code defect. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe Tauri startup owner reads existing configuration and saved profiles, delegates provisioning to the existing installer and CLI service owners, and opens the Gateway-served Control UI; setup-card callbacks use the existing authenticated native settings transport. flowchart TD
A[Tauri launch] --> B[Config and saved profiles]
B --> C[Existing connection owner]
B --> D[Fresh local setup]
D --> E[Installer and CLI service]
E --> F[Custodian setup card]
F --> G[Authorized native settings]
D --> H[Manual recovery choices]
Technical reviewBest possible solution: Land the existing-owner implementation after validating stable-upgrade preservation, with inference selection remaining in its separate Gateway-owned change. Do we have a high-confidence way to reproduce the issue? This is an intentional feature change; fetched-main source confirms that fresh startup currently returns manual setup rather than invoking the new provisioning wrapper. Is this the best way to solve the issue? The implementation fits the existing ownership model: it reuses local setup and canonical CLI service operations, preserves configured installs, and adapts the existing native settings bridge. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 10bdf2c2ab1f. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +305, Tests +352, Docs +47, Config +1. Total +705 across 22 files. Added test files: 4. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (5 earlier review cycles)
Reviewed October 12, 2026, 5:56 PM ET / 21:56 UTC (Revision 6). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
## What Problem This Solves Knip treats three live files as unused because two documented executable roots are absent from its entry manifest. The Control UI cold-load benchmark added in #170033 (`5559404e2da9`) statically imports its probe helper. The Linux onboarding Vite configuration added in #169512 (`3036e1376019`) builds the card consumed by the Python onboarding fixture. ## Why This Change Was Made Register each executable in the existing `repositoryScriptEntries` list. The benchmark import makes its probe helper reachable automatically. This adds no ignore rule or separate helper entry, and preserves the normal dependency and export checks. ## User Impact Restores Knip's account of documented maintainer commands. Application behavior, benchmark behavior, and onboarding behavior are unchanged. Scope: one configuration file, four added lines; one focused commit per missing root. ## Evidence - [Run 38315479055, job 115031514632](https://github.com/openclaw/openclaw/actions/runs/38315479055/job/115031514632) passed production unused-file checks and reported the benchmark and its probe helper in the full-tree scan. - [Scheduled main run 38317311743, job 115037166371](https://github.com/openclaw/openclaw/actions/runs/38317311743/job/115037166371) failed the production scan on `apps/linux/tests/fixtures/vite.onboarding.config.ts`. The subsequent full-tree scan did not run. - Source verification follows the commands in `scripts/bench-control-ui-cold-load.md` and `apps/linux/README.md`, the benchmark's static probe import, and the card requirement in `apps/linux/tests/gateway_switch.py`. Formatting, basic oxlint, and whitespace checks passed for both additions. Each entry passed one isolated Codex review with no actionable P0–P2 findings (two reviews total). The exact-head release-gate run [38318772519](https://github.com/openclaw/openclaw/actions/runs/38318772519) checked out candidate `3bd92c43d6419637c5ac2c21c76c5ebef9c7aa50` and passed Knip and topology. All applicable types, lint, source contracts, baseline ratchets, guards and topology checks passed. The extra release-gate extension-package and SDK-report jobs remain pending; this manifest-only change touches no SDK, runtime API, or plugin implementation. They are not claimed as passed and are outside this repair scope. These manifest-only changes require no browser or runtime benchmark execution, SQL measurements, SDK diff, or update cell. The dependency job ran `pnpm deadcode:full`: production/all-export checks passed; both production/full-tree unused-file scans reported zero entries; script/production/full-tree unused-export scans each reported zero entries. The topology job reported zero runtime import cycles, zero Madge cycles, and passing Kysely guardrails. Ordinary PR CI was also green (31 successful, 28 skipped), but it intentionally omitted dependencies; the separate exact-head run supplies the actual Knip evidence. Prelanding source comparison against main `a55e956fe3613a5ae3962903accf75c1a7464ee7` confirms the Knip configuration preimage remains unchanged. Direct-main publication previously hit repository protection, so the emergency repair uses the authorized exact-head PR squash fallback.
* feat: start fresh Tauri installs with a local Gateway * test: align Tauri startup proof with automatic local setup * test: rely on native proof for automatic Tauri startup * feat: connect Tauri first run to shared native setup card * test: align native setup card fixture with lint rules
…aw#170347) ## What Problem This Solves Knip treats three live files as unused because two documented executable roots are absent from its entry manifest. The Control UI cold-load benchmark added in openclaw#170033 (`e35494d3fdfc`) statically imports its probe helper. The Linux onboarding Vite configuration added in openclaw#169512 (`ab19c2279b78`) builds the card consumed by the Python onboarding fixture. ## Why This Change Was Made Register each executable in the existing `repositoryScriptEntries` list. The benchmark import makes its probe helper reachable automatically. This adds no ignore rule or separate helper entry, and preserves the normal dependency and export checks. ## User Impact Restores Knip's account of documented maintainer commands. Application behavior, benchmark behavior, and onboarding behavior are unchanged. Scope: one configuration file, four added lines; one focused commit per missing root. ## Evidence - [Run 38315479055, job 115031514632](https://github.com/openclaw/openclaw/actions/runs/38315479055/job/115031514632) passed production unused-file checks and reported the benchmark and its probe helper in the full-tree scan. - [Scheduled main run 38317311743, job 115037166371](https://github.com/openclaw/openclaw/actions/runs/38317311743/job/115037166371) failed the production scan on `apps/linux/tests/fixtures/vite.onboarding.config.ts`. The subsequent full-tree scan did not run. - Source verification follows the commands in `scripts/bench-control-ui-cold-load.md` and `apps/linux/README.md`, the benchmark's static probe import, and the card requirement in `apps/linux/tests/gateway_switch.py`. Formatting, basic oxlint, and whitespace checks passed for both additions. Each entry passed one isolated Codex review with no actionable P0–P2 findings (two reviews total). The exact-head release-gate run [38318772519](https://github.com/openclaw/openclaw/actions/runs/38318772519) checked out candidate `3bd92c43d6419637c5ac2c21c76c5ebef9c7aa50` and passed Knip and topology. All applicable types, lint, source contracts, baseline ratchets, guards and topology checks passed. The extra release-gate extension-package and SDK-report jobs remain pending; this manifest-only change touches no SDK, runtime API, or plugin implementation. They are not claimed as passed and are outside this repair scope. These manifest-only changes require no browser or runtime benchmark execution, SQL measurements, SDK diff, or update cell. The dependency job ran `pnpm deadcode:full`: production/all-export checks passed; both production/full-tree unused-file scans reported zero entries; script/production/full-tree unused-export scans each reported zero entries. The topology job reported zero runtime import cycles, zero Madge cycles, and passing Kysely guardrails. Ordinary PR CI was also green (31 successful, 28 skipped), but it intentionally omitted dependencies; the separate exact-head run supplies the actual Knip evidence. Prelanding source comparison against main `7830520c6e458cdabc91dfcde917b7bbdf617e35` confirms the Knip configuration preimage remains unchanged. Direct-main publication previously hit repository protection, so the emergency repair uses the authorized exact-head PR squash fallback.
What Problem This Solves
Fresh Tauri installs require manual local-Gateway setup before users can reach their assistant, and the shared setup card needs working native actions in Tauri.
User Impact
Fresh Linux and Windows installs now prepare a local Gateway automatically and open custodian onboarding. Existing configurations and saved Gateways keep their startup behavior; nearby Gateways are never joined automatically. A setup failure returns to the manual local/remote choices with its error visible.
The shared card identifies the local Gateway as This computer and saved remote Gateways by name. Use a different Gateway, Review permissions, and Open AI setup use the existing native owners. Stale or out-of-base documents cannot perform those actions; failures appear in the native dashboard notice.
Why This Change Was Made
Automatic startup reuses the explicit-local installer, bundled runtime, and CLI service owners, including the landed Windows implementation. Tauri installs
window.__OPENCLAW_NATIVE_SETUP__before the Control UI boots; it adapts the existing device-settings transport rather than adding a second bridge or selection store. The shared card from #169568 is integrated. Gateway inference selection remains dependent on #169628; the native proof supplies a synthetic setup result.The Linux switching fixture now opens menus through the native lifecycle and refreshes an item only after libdbusmenu explicitly rejects its stale ID before dispatch. It does not skip the fixture or retry an accepted click.
Release-note context: fresh Tauri desktop installs automatically prepare a local Gateway and enter custodian onboarding, with visible manual recovery and working shared-card native actions.
Evidence
cargo test --locked --all-targets— 328 passed on macOS (cold build plus suites 473.58 s, main suite 23.46 s, power suite 0.36 s). CI also runs Windows Rust runtime/installer/first-run boundaries.node scripts/run-vitest.mjs test/linux-dashboard-recovery.test.ts --maxWorkers=1— 20 passed, including Windows; 42.66 s wrapper wall time, 4.64 s Vitest duration.efbf523281a6dc3c00866f4dd3e5064d325d76e8.The native Linux scenario uses the real Tauri app, bundled Bun launcher, WebKit, and production setup card with a synthetic installer, CLI/service, and provider result. It proves the native boundary, not real service installation or provider activation. No real Windows desktop session is claimed. Latest-stable packaged upgrade preservation is not exercised here; existing configuration, saved profiles, and runtime preservation are covered by the owner tests and native Gateway switching proof, with any additional packaged-upgrade proof left to the lead.
Diff size relative to the integrated main base: production +178 / −11, tests and test support +623 / −133 (including inline Rust tests), docs +65 / −18, CI +1 / −0.
The native locale check reports eight missing
native.apple.*translations in unchanged main-owned locale artifacts. This lane does not change Apple source or locale files.Before: manual setup opens Model Setup (synthetic native fixture from the previous baseline).
After: a fresh Linux Tauri launch reaches the shared setup card without setup clicks. Both captures below show the real native app with synthetic provider data.
Native proof command (run by the normal Linux App workflow):
The PR is ready, and exact-head main CI including
openclaw/ci-gatepassed. ClawSweeper reports no code findings on this head; its proof-only hold predates the attached native results. One re-review was requested, and no refreshed review arrived within the 15-minute wait. Latest-stable packaged-upgrade proof remains unrun and is left to the lead's merge decision. No merge requested; the lead owns landing.