Skip to content

Desktop CSP: reconcile after failed activation rollback #2121

Closed

Description

@integry

Follow-up to PR #2120 review F6 on c0bcb4c.

After connection activation commits, the IPC error handler attempts discardActivation before reconciling CSP. A rejected rollback, or a false discard result, can skip reconciliation. Ensure authoritative reconciliation runs in a finally block regardless of rollback outcome, preserving rejection and the existing reconciliation generation guards. Add focused coverage for rejected rollback and false discard after a changed selection.

This is a follow-up rather than a blocker for the macOS/Linux integration: DesktopCredentialService.discardActivation clears its live binding before the durable setActive(null) write; prepareRequest independently rejects live-renderer traffic with no current binding or a mismatched origin, and session security enables that boundary on macOS/Linux. Stale CSP alone does not authorize the old endpoint. Preserve those controls.

Start after #2120 is merged into the transport branch. Keep changes localized to IPC reconciliation and meaningful regression coverage. Do not broaden CSP or change Windows behavior. Validate focused lifecycle tests and desktop typecheck, and inspect relevant CI results.

Activity

  1. propr-dev commented on Sep 4, 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: 2121/gpt-5.6-sol-desktop-csp-reconcile-aft-20260904-2100-dng
    • Base Branch: 1953-epic-desktop-transport-api
    • Worktree: issue-2121-20260904-2100-gpt-5.6-sol-dng

    🔍 Track Task Execution

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

    @integry
    OwnerAuthor

    Implemented by #2124, merged into 1950-epic-cross-platform-dsk (63a5653). 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

    AIAI-donebugllm-codex-gpt56-sol

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions