Skip to content

Scaffold the secure Electron desktop runtime and reusable Web UI renderer #1956

Closed

Description

@propr-dev

Objective

Create the production-quality Electron application under apps/desktop and reuse the existing React/Vite ProPR UI as its renderer.

Scope

  • Add a TypeScript Electron workspace with development, typecheck, test, package, and make scripts. Prefer Electron Forge unless repository constraints demonstrate a better maintained fit.
  • Reuse the existing propr-ui source/build through an explicit desktop entry mode; do not fork or copy the dashboard.
  • Create a secure BrowserWindow: contextIsolation: true, nodeIntegration: false, sandboxing where compatible, navigation/window-open allowlists, CSP, permission denial by default, and no remote module.
  • Add a narrow typed preload contract for app metadata, platform, external-browser opening, encrypted credential/profile persistence, and local lifecycle operations that later tasks can implement. No arbitrary command execution or filesystem API may reach the renderer.
  • Use Electron safeStorage plus app-owned storage for secrets; define behavior when encryption is unavailable.
  • Support custom-protocol/deep-link activation, single-instance routing, clean shutdown, structured main-process logs, and safe development URL loading.
  • Add an initial native-feeling desktop frame/connection placeholder and focused main/preload security tests.
  • Ensure root workspace scripts can run the desktop app without breaking existing builds.

Non-goals

  • Do not implement the full pairing or local setup wizard.
  • Do not silently download or execute ProPR runtime components.

Epic integration contract

  • Target the ProPR-managed epic base branch selected by the base-1952-epic-electron-runtime-app 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 #1952.

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: 1956/gpt-5.6-sol-scaffold-the-secure-elect-20260829-1408-gux
    • Base Branch: main
    • Worktree: issue-1956-20260829-1408-gpt-5.6-sol-gux

    🔍 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 #1967, merged into 1952-epic-electron-runtime-app (85aee4b). 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