Skip to content

Create a shared ProPR API client and instance connection model #1954

Closed

Description

@propr-dev

Objective

Create a reusable workspace package for local and remote instance communication, then migrate the Web UI's central transport plumbing to it without changing visible behavior.

Scope

  • Add a focused packages/client workspace package with typed base-URL handling, REST requests, bearer/session authentication hooks, request cancellation/timeouts, structured errors, compatibility negotiation, and Socket.IO connection/reconnection support.
  • Model named instance profiles without coupling the package to Electron persistence APIs.
  • Refactor the central pieces of propr-ui/src/api, runtime configuration, and socket provider to consume the package. Domain-specific UI API modules may remain in propr-ui but should use the shared transport.
  • Keep same-origin browser deployment working and allow an explicit absolute API URL for desktop use.
  • Reject malformed or unsafe endpoint configurations and avoid logging credentials.
  • Add unit tests covering local/remote URLs, auth header behavior, errors, compatibility mismatch, and socket configuration.

Non-goals

  • Do not add Electron dependencies.
  • Do not implement the server pairing flow in this issue.

Epic integration contract

  • Target the ProPR-managed epic base branch selected by the base-1953-epic-desktop-transport-api 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 #1953.

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: 1954/gpt-5.6-sol-create-a-shared-propr-api-20260829-1408-n3k
    • Base Branch: main
    • Worktree: issue-1954-20260829-1408-gpt-5.6-sol-n3k

    🔍 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 #1965, merged into 1953-epic-desktop-transport-api (2ee3db9). 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