Skip to content

Harden desktop endpoint defaults and encoded pairing responses #1999

Closed

Description

@integry

Objective

Track the non-blocking follow-ups from the exact-head review of remote desktop connectivity without delaying the functional/authentication merge.

Scope

  • Centralize the local desktop endpoint default so the profile editor, setup wizard, examples and runtime configuration do not disagree between ports 3000 and 4000. Derive UI defaults from the shared runtime/local-setup contract.
  • Make bounded desktop pairing response validation interoperable with Content-Encoding. Retain the 4 KiB decoded-body cap and all timeout/abort/redirect/UTF-8/schema checks, but do not compare a compressed Content-Length to transparently decoded Fetch bytes. Reject malformed or oversized encoded responses and add gzip/br/identity proxy fixtures.

Dependency and integration

Start after #1977 is integrated into the transport epic so the changes target the reviewed remote flow. Add the AI label and current transport descendant base label at that point. Require exact-head review and relevant client/Electron/UI tests. Never target or merge directly to main.

Follow-up to review suggestions S1 and S2 on #1977. Part of #1950, #1953, and #1961.

Activity

  1. added
    enhancement
    on Aug 30, 2026
  2. integry commented on Aug 30, 2026

    @integry
    OwnerAuthor

    Deferred from the bounded final review of remote PR #1977 (exact head 6b05bce0ef0e0ef9eea8ecfc1394828cf9846a92): preserve safe same-profile renderer preferences across renderer launches using an encrypted identity marker and/or per-profile partition. Current behavior deliberately clears in-memory renderer state on first activation after launch and is fail-closed, so this is advisory hardening and does not block integration.

  3. integry commented on Sep 4, 2026

    @integry
    OwnerAuthor

    Issue/PR reconciliation: encoded pairing-response work is implemented by merged PR #2023 (issue #2022). The endpoint-default centralization item remains separately outstanding, so this issue is intentionally left open rather than closed with the already-merged partial implementation.

  4. integry commented on Sep 6, 2026

    @integry
    OwnerAuthor

    Please implement only the remaining endpoint-default centralization now, targeting 1950-epic-cross-platform-dsk, never main. The encoded pairing response work is already complete in #2023; do not redo it. Same-profile renderer preference persistence remains advisory and out of this implementation.

    Independent audit of epic 923d5db and setup PR #2132 a54f16b confirms DesktopExperiencePanels.tsx editor and browserAdapters.ts example still default to 127.0.0.1:3000, whereas docker/launcher/orchestrator.mjs, .env.example, and packages/local-setup/src/engine.ts use API port 4000. Establish a shared local API default contract and derive desktop editor/example/setup fallback defaults consistently. Preserve configured API ports and hosted dynamic/same-origin behavior. Coordinate with #2132: its desktopLocalSetup callback already uses actual cfg.apiPort through localhostServiceUrl; preserve that correctness and avoid unrelated wizard edits.

    Keep this bounded and nonblocking for #2125/#2127/#2132 integration. Add focused regression tests, run relevant typechecks/tests, put Closes #1999 in the PR body, and request Ultrafix verification. Do not merge; report exact head and evidence.

  5. propr-dev commented on Sep 6, 2026

    @propr-dev
    Contributor

    🤖 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: 1999/gpt-5.6-sol-harden-desktop-endpoint-d-20260906-1049-9n9
    • Base Branch: 1950-epic-cross-platform-dsk
    • Worktree: issue-1999-20260906-1049-gpt-5.6-sol-9n9

    🔍 Track Task Execution

  6. added a commit that references this issue on Sep 6, 2026
  7. integry commented on Sep 6, 2026

    @integry
    OwnerAuthor

    Both scoped items are now integrated: encoded pairing-response validation in #2023, and shared endpoint defaults in #2133 (merge164f25d into desktop epic1950-epic-cross-platform-dsk, not main). #2133 passed independent and ProPR review with no code blockers, all four Linux/macOS package and Connect checks, checksum finalization, and the full test suite. Closing explicitly because child merges into an epic do not trigger GitHub default-branch issue closure. Same-profile preference persistence mentioned in an advisory comment was not part of this implementation.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions