Repository navigation
feat(native): first-run welcome wizard, connection and agents steps - #84
Merged
Merged
Conversation
4 of 5 tasks
…nt, keyboard reachable rows, local re-pair errors
Owner
Author
|
Review fixes in 7354522. All three findings were real.
Gates: clippy (default and |
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #81
Problem
A first launch of the native client drops the user on the bare connect screen. The web, desktop and
npx t3clients open a welcome wizard instead: connect a computer, check its agents, import projects.FirstRunGatedecides when the wizard shows, and it recordsonboardingCompletedAtonce setup is done or once the server shows an established workspace. Native had neither the wizard nor the gate.Approach
Gate (
crates/core/src/onboarding.rs, pure and tested). It portsfirstRun.logic.ts:resolveFirstRunDecision,isFreshFirstRunWorkspace(Windows path normalization included), and the welcome's provenance check.Native connects one environment at a time and reads its settings and saved environments synchronously. So the web's hydration, catalog and multi-environment inputs fall away, and one
liveflag (connected, shell replayed) stands in for them. The adaptations:resolve_unpaired).onboardingCompletedAtand never shows the wizard, so existing users are not interrupted. A fresh one opens the wizard from home. The server'ssubscribeServerLifecyclewelcome is read once per connection, and only while the gate is undecided.Wizard (
crates/app/src/onboarding/). The frame followsui/wizard.tsx: brand,WizardStepswith done steps clickable, a glass dialog, and a close button that finishes setup, as on the web.environments.rs). "Add a computer" holds the pairing-link form, its error, and "Need a pairing link?" with copyablenpx t3 pair. It also has the privacy line, including the managed-policy wording when telemetry is turned off, and Continue once connected.connect.rsnow shares its local-server details, discovery copy and pairing-error lookup with it.--welcome [connect|agents]opens the wizard offscreen whatever the gate decides.Also:
onboardingCompletedAtis now a client setting (ClientSettingChange::OnboardingCompletedAt).platform.osfor the setup commands.monitoricon is vendored.Ledger
CN-WELCOME:
todo→partial.crates/app/src/onboarding, crates/core/src/onboarding.rs.apps/web/src/onboarding, where the gate logic lives, so intake sees its changes.Gaps (this is a first slice, so the row stays partial):
CodexSetupSection) is missing, along with "Connect another ChatGPT account" and resuming at#agents:<environment>.Screenshots
Offscreen renderer at 1280×840, against the smoke server (
Replay (dev), port 14658).T3CODE_HOMEwas set to a scratch home throughout, so nothing read or paired with~/.t3.Before (
native):/private/tmp/claude-501/-Volumes-DevSSD-t3code-native/15deb025-b650-4cf9-a1aa-1cc16b006f6d/scratchpad/shots81/before-first-run-empty.png/private/tmp/claude-501/-Volumes-DevSSD-t3code-native/15deb025-b650-4cf9-a1aa-1cc16b006f6d/scratchpad/shots81/before-first-run-smoke.pngAfter:
/private/tmp/claude-501/-Volumes-DevSSD-t3code-native/15deb025-b650-4cf9-a1aa-1cc16b006f6d/scratchpad/shots81/after-first-run-none.png/private/tmp/claude-501/-Volumes-DevSSD-t3code-native/15deb025-b650-4cf9-a1aa-1cc16b006f6d/scratchpad/shots81/after-pairing-help-light.png/private/tmp/claude-501/-Volumes-DevSSD-t3code-native/15deb025-b650-4cf9-a1aa-1cc16b006f6d/scratchpad/shots81/after-first-run-local.pngt3 pair, against a wrapper bound to the smoke home, and connects. The wizard stays over the workspace with Continue enabled:/private/tmp/claude-501/-Volumes-DevSSD-t3code-native/15deb025-b650-4cf9-a1aa-1cc16b006f6d/scratchpad/shots81/after-local-paired.png/private/tmp/claude-501/-Volumes-DevSSD-t3code-native/15deb025-b650-4cf9-a1aa-1cc16b006f6d/scratchpad/shots81/after-local-agents.png/private/tmp/claude-501/-Volumes-DevSSD-t3code-native/15deb025-b650-4cf9-a1aa-1cc16b006f6d/scratchpad/shots81/after-established-no-wizard.png--welcome/--welcome agentsover the paired workspace:/private/tmp/claude-501/-Volumes-DevSSD-t3code-native/15deb025-b650-4cf9-a1aa-1cc16b006f6d/scratchpad/shots81/after-paired-connect.png,/private/tmp/claude-501/-Volumes-DevSSD-t3code-native/15deb025-b650-4cf9-a1aa-1cc16b006f6d/scratchpad/shots81/after-paired-agents.pngBoth smoke-server sessions the local-pairing runs created were revoked afterwards with
t3 auth session revoke.I took no real-window capture, because launching the app would take focus from the developer's session.
Tests
onboarding::tests(17) mirrorfirstRun.logic.test.tsandproviderReadiness.logic.test.ts, plus the native rules:The
client_settingsround-trip test now coversonboardingCompletedAt.cargo clippy --workspace --all-targets -- -D warnings✓ (and-p t3-native --features snapshot)cargo test --workspace✓node scripts/gen-theme.ts --check✓node --test parity/sync.test.ts✓node ../../apps/native/conformance/generate.ts --check✓Opus 5.5, Claude Code.