Skip to content

native: onboarding setup terminal for Install and Sign in (CN-WELCOME slice) #121

Closed

Description

@rynfar

Slice of #81 (CN-WELCOME). Today the native Agents step shows the Install/Sign in command and asks the user to run it on the computer. The web embeds a setup terminal with the command typed in, but not run.

Port: apps/web/src/components/onboarding/WelcomeWizard.tsx covers ConnectedAgentsStep (terminal session, Install/Sign in buttons, terminalAvailable, "This connection cannot control terminals.") and AgentInstallTerminal:

  • thread id onboarding-agent-setup and terminal id onboarding-<driver>-<uuid>
  • open with cwd and providerInstanceId, then write the command with no newline
  • states preparing / ready / openFailed / writeFailed with the web copy, Retry, Close
  • generation guard so a stale open never pre-types into or closes a replacement
  • close with deleteHistory: true only while terminal:operate remains; revocation leaves the PTY
  • session exit closes the panel; provider readiness refreshes on close

Command sources: apps/web/src/onboarding/providerReadiness.logic.ts. Native: crates/app/src/onboarding/agents.rs, reusing the pane in crates/app/src/terminal/, with setup state logic in crates/core/src/onboarding* with tests.

Out of scope: Codex ChatGPT setup/accounts, T3 Connect/relay, multi-computer, actually running an installer or sign-in.

Done when: Install/Sign in opens an embedded terminal with the command pre-typed and not run, on the right environment/instance. All four states, permission loss, Retry and Close behave as on the web. Tests cover the state/generation/permission logic. Offscreen captures show each state.

Activity

  1. added this to the M1 Daily driver milestone on Nov 3, 2026
  2. added
    parity
    native:feature
    status:in-progress
    on Nov 3, 2026
  3. rynfar commented on Nov 3, 2026

    @rynfar
    OwnerAuthor

    Implemented the embedded setup-terminal slice; CN-WELCOME remains partial. Remaining parent #81 gaps: Codex ChatGPT setup/accounts, T3 Connect/relay and multi-computer onboarding.

    Validation: 1,111 native tests, Clippy, snapshot build, theme/parity/conformance checks. One smoke 14658 PTY was opened on the Codex instance, pre-typed without a newline, and closed with deleteHistory; nothing was executed. All four setup states plus permission denial, Retry and Close have local offscreen captures listed in the PR.

    Verification limits: live permission revocation, session exit and actual Install/Sign in clicks were not exercised (smoke providers already ready); no installers or sign-ins were run. The offscreen attached-pane capture intermittently loses surrounding cached labels, especially writeFailed; ready and font-refresh captures show the complete dialog. Real-window rendering remains unverified under the factory rules. Root check:changed was interrupted after expanding to repo-wide work; the ledger formatting finding was fixed separately.

  4. added
    status:review
    and removed
    status:in-progress
    status:review
    on Nov 3, 2026
  5. rynfar commented on Nov 3, 2026

    @rynfar
    OwnerAuthor

    Merged in #123 as c194dff4de, from exact reviewed/gated head dcbc552129.

    • Review: a fresh independent Sol review found one P2: the provider instance was dropped on terminal attach. It was fixed with a failing-first payload test. An optional P3 removed the per-frame wizard rebuilds. The same reviewer approved the fix head.
    • Gate: the parent trial-merge gate onto 1945b8001f is GREEN: 1,114 native tests, Clippy, theme, parity and conformance.

    Unverified at runtime: a live server restart, permission revocation, session exit, and real-window rendering. One smoke PTY was opened, had the command typed in and was closed with history deleted. Enter was never sent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    native:featureparity

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions