Skip to content

feat(native): embed onboarding install and sign-in terminal - #123

Merged
rynfar merged 2 commits into
nativefrom
nw/121-onboarding-terminal
Nov 3, 2026
Merged

rynfar merged 2 commits into
nativefrom
nw/121-onboarding-terminal

Conversation

@rynfar

@rynfar rynfar commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Native onboarding's Install/Sign in actions only displayed a command to run elsewhere. They now open the embedded native terminal on the selected environment/provider instance and pre-type the web's command without a newline.

Ports AgentInstallTerminal from WelcomeWizard.tsx: preparing/ready/openFailed/writeFailed copy, Retry/Close, serialized cleanup and generation guards, fresh terminal:operate checks before open/write/close, revocation leaving the PTY running, session-exit closure and provider readiness refresh. The existing terminal pane handles input and permission changes. Pure setup rules and wire payloads live in core with three tests; the stale-generation test was observed failing before the guard. The pane publishes output frames directly without rebuilding the wizard; pane creation/focus occurs outside render. Optional provider instance ids are retained in launch locations and sent on attach/reopen, so a server restart recreates the selected instance environment. Thread terminals omit the field as before. Only exports changed under the app terminal/; the PR #119 paths are untouched.

Closes #121. CN-WELCOME stays partial. Remaining #81 gaps are Codex ChatGPT setup/accounts, T3 Connect/relay and multi-computer onboarding.

Validation:

  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace: 1,114 passed after rebasing on 1945b8001f
  • cargo build -p t3-native --features snapshot
  • theme generation check, 42 parity-sync tests, TypeScript/Rust conformance generation check
  • ledger formatting and git diff --check
  • One PTY on smoke 14658: opened on providerInstanceId=codex in the server cwd, wrote codex login with no newline, attached for captures, then closed with deleteHistory: true. No Enter, installers, sign-ins, paid turns or real windows. Transcript: /private/tmp/native-121-evidence/smoke-transcript.txt.

Local offscreen evidence (kept local per factory rules):

  • Before: /private/tmp/native-121-evidence/before.png
  • Preparing: /private/tmp/native-121-evidence/preparing.png
  • Ready, real pre-typed PTY: /private/tmp/native-121-evidence/ready.png
  • Open failed: /private/tmp/native-121-evidence/openFailed.png
  • Write failed: /private/tmp/native-121-evidence/writeFailed.png
  • Permission denied: /private/tmp/native-121-evidence/revoked.png
  • Retry to preparing: /private/tmp/native-121-evidence/retry.png
  • Close: /private/tmp/native-121-evidence/closed.png
  • Fresh review-fix open-failed capture: /private/tmp/native-121-evidence/review-openFailed.png
  • Font-refresh capture: /private/tmp/native-121-evidence/ready-refresh.png

The review fix extends the existing core payload test for initial/resumed attaches and reopen with providerInstanceId, plus omission for thread terminals. The new assertion was observed failing before the payload fix.

Verification limits: error/permission states are fixtures; no live server restart, permission revocation, shell exit, or real Install/Sign in click was exercised (smoke providers are already ready). Installers and sign-ins were intentionally never run. Offscreen attached-pane rendering intermittently drops surrounding cached labels, especially in the writeFailed capture; ready and font-refresh captures show the full dialog. The fresh review-fix openFailed capture has complete labels; attached-pane captures are retained from the original smoke check. Real-window rendering is unverified under the no-window rule. Root check:changed was interrupted when its default fork/main comparison expanded to repo-wide checks; its ledger formatting finding was fixed and checked separately.

Built with GPT-6.1 Sol in Codex

@rynfar rynfar mentioned this pull request Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant