Repository navigation
Description
Objective
Implement only the Content-Encoding half of #1999 on the current desktop transport epic. Keep endpoint-default centralization deferred because it overlaps active discovery/Connect reconciliation.
Scope
Make bounded desktop pairing response validation interoperable with Fetch transparent decompression. Retain the 4 KiB decoded-body cap and all timeout, abort, redirect, UTF-8, JSON/schema, status, header and secret-handling checks, but never compare a compressed Content-Length header directly to transparently decoded bytes.
- Accept valid identity, gzip and Brotli responses after decoding.
- Reject malformed/truncated encoded bodies, decoded bodies over 4 KiB, conflicting/duplicate/unsupported encodings, invalid or ambiguous length metadata, redirects, timeouts, aborts, invalid UTF-8 and schema violations fail-closed.
- Preserve main-process-only pairing secrets and bounded redacted diagnostics; do not add renderer credential access.
- Prefer changes only in
packages/client/src/pairingProtocol.tsplus a focused newpackages/client/test/pairingContentEncoding.test.ts; touch existing pairing transport tests only if essential. Do not change package manifests, lockfiles, endpoint defaults, runtime config, API auth, Electron profiles, discovery schema, or Connect URL logic.
Validation and integration
Add deterministic identity/gzip/br proxy fixtures proving decoded size enforcement and no compressed-length confusion. Run focused client/pairing tests, client build/lint, desktop tests/typecheck, Validate Changes, Full Suite and git diff-check.
Target only 1953-epic-desktop-transport-api via the base label. Never target or merge to main. Do not merge the generated PR until #1989 is integrated, then sync this PR against the cumulative transport head and request exact-head Ultrafix review.
Activity
propr-dev commentedon Aug 31, 2026
🤖 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:
codexgpt-5.6-sol2022/gpt-5.6-sol-handle-encoded-desktop-pa-20260831-1330-dos1953-epic-desktop-transport-apiissue-2022-20260831-1330-gpt-5.6-sol-dos🔍 Track Task Execution
fix(ai): Resolve issue #2022 - Handle encoded desktop pairing respons…
integry commentedon Sep 4, 2026
Implemented by #2023, merged into
1953-epic-desktop-transport-api(4fb25c8). 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.