Skip to content

Extract the UI-agnostic local setup engine for CLI and desktop use #1958

Closed

Description

@propr-dev

Objective

Move reusable setup orchestration out of the CLI renderer layer so the CLI and Electron main process can drive exactly the same validated setup state machine.

Scope

  • Add a packages/local-setup workspace package by extracting the existing engine under packages/cli/src/commands/setup and any reusable check/init/start orchestration it requires.
  • Expose typed state, step descriptors, progress events, prompts/decisions, cancellation, retry, structured errors, and resumable/re-runnable behavior.
  • Inject host operations behind explicit interfaces so tests do not require a real Docker daemon or GitHub login.
  • Keep Ink and sequential CLI setup behavior compatible by making them consumers of the package.
  • Define platform capability results. Linux local setup remains supported; macOS and Windows must return a clear remote-only/local-unsupported result until the underlying launcher supports those hosts.
  • Ensure secrets never appear in progress events or logs and preserve private file permissions.
  • Add comprehensive engine and CLI regression tests.

Non-goals

  • Do not add Electron imports or renderer code.
  • Do not claim Docker Desktop support that the launcher does not provide.

Epic integration contract

  • Target the ProPR-managed epic base branch selected by the base-1951-epic-desktop-experience-uxs label; do not target main.
  • Preserve existing Web UI, CLI, API, and self-hosted deployment behavior.
  • Add focused automated tests for new behavior and run relevant typecheck/build/test commands.
  • Do not merge this PR. It must receive Ultrafix and independent review before integration.
  • Report exact verification commands and any cross-platform behavior that could not be exercised locally.

Part of #1950 and #1951.

Activity

  1. propr-dev commented on Aug 29, 2026

    @propr-dev
    ContributorAuthor

    🤖 AI processing has started for this issue using codex agent with gpt-5.6-sol model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-5.6-sol
    • Branch: 1958/gpt-5.6-sol-extract-the-ui-agnostic-l-20260829-1408-o4c
    • Base Branch: main
    • Worktree: issue-1958-20260829-1408-gpt-5.6-sol-o4c

    🔍 Track Task Execution

  2. added a commit that references this issue on Aug 29, 2026
  3. integry commented on Sep 4, 2026

    @integry
    Owner

    Implemented by #1963, merged into 1951-epic-desktop-experience-uxs (6882e61). Closing the completed child issue during epic issue/PR reconciliation. Final desktop integration and delivery remain tracked by #1950 / #1970; this does not claim a main-branch release.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions