Repository navigation
refactor(macos): retire pre-July Gateway response fallbacks - #163389
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 2, 2026, 4:38 AM ET / 08:38 UTC. ClawSweeper reviewWhat this changesThe macOS app removes legacy session-preview and health-output fallbacks and stops decoding unused paired-node metadata. Merge readiness✅ Ready for maintainer review Keep open: this focused cleanup remains absent from current main and the latest release. No introduced correctness defect was found. Likely related people: steipete (high-confidence routing based on prior merged macOS work). Priority: P3 Review scores
Verification
How this fits togetherThe macOS app reads Gateway responses to populate session previews, health status, and pairing prompts. These decoders turn RPC payloads into native display state while existing connection and approval owners retain authority. flowchart TD
A[macOS menu and health refresh] --> B[Gateway RPC connection]
B --> C[Structured Gateway responses]
C --> D[Preview and health decoding]
D --> E[Preview cache and native status]
C --> F[Pairing list decoding]
F --> G[Existing pairing approval owner]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceOther -135. Total -135 across 4 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Use the structured Gateway response path as the single native decoder while preserving supported preview, health, and pairing behavior. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR retires compatibility code rather than reporting a current bug; source and release contracts support the cleanup boundary. Is this the best way to solve the issue? Yes: removing the alternate renderer and unreachable CLI-noise parser is narrower than maintaining parallel decoders, and the supported response mapper remains equivalent. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d1ba4d9bdbd5. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
…#163389) Remove the macOS menu's chat.history fallback for Gateways predating sessions.preview, first shipped in January 2026. Supported July+ replies continue through the existing preview mapper and cache. Remove health stdout-noise salvage from a CLI route retired in December 2025, plus its obsolete test. Limit the private paired-node response model to the fields actually consumed; retain pending-request metadata and approval authority. Release context: pre-July Gateway compatibility is retired without changing stored data or public plugin SDK contracts. Reviewed production reduction: 128 lines.
What Problem This Solves
The macOS app retains a second preview renderer for Gateways predating January 2026 and a health-output parser for an app CLI path retired in December 2025.
User Impact
Supported July 2026 and newer Gateways keep the existing preview, cache, error, and health behavior. Connections to Gateways predating
sessions.previewno longer fall back tochat.history. No stored data, schema, permissions, or public plugin SDK changes.Why This Change Was Made
sessions.previewfirst shipped inv2026.1.21on January 22;v2026.1.20is the last release without it. The July baseline and current Gateway always register the method. Removing the alternate request deletes its duplicate text/tool/media renderer and history-only limits.Health has received structured RPC JSON since December 8, 2025 (
293b4960f39), before the first tag containing native app source,v2.0.0-beta1. Its CLI-noise extraction and obsolete noise-only test are unreachable. Clean JSON and malformed-input tests remain. The pairing list also now decodes only the paired-node fields it consumes; pending-request metadata and approval authority checks stay intact.Release-note context: upgrades/connections from pre-July-2026 versions are no longer given the old preview RPC fallback. July-shaped replies retain the existing mapper. This is transport compatibility retirement, not a SQLite migration.
Evidence
GatewayConnection.shared; its test endpoint deliberately refuses networking. A native loader invocation against a July reply remains an explicit fixture gap. Existing server preview tests and exact-head hosted native compilation/tests provide the available contract proof.0f470aecdc1for an inherited cycle.2a390ec087731f6251ad55362a3603138b58e8b6; merge ancestry and exact changed-file equality verified.Local
check-changedcompleted its static guards and macOS source lint, then full app lint reported two unchanged shared Chat UI functions at complexity 21 (limit 20):ChatViewModel+TransportEvents.swift:25andChatSessionSidebarGrouping.swift:5. Neither is in this diff; hosted native CI is green. These are recorded for the shared-owner follow-up.