Repository navigation
fix(apple): surface rejected chat session settings - #128737
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 24, 2026, 9:28 AM ET / 13:28 UTC. ClawSweeper reviewWhat this changesThis PR surfaces rejected thinking-level, verbosity, and fast-mode session changes in the shared Apple chat error banner and clears a prior banner when a new setting change begins. Merge readinessKeep this maintainer-labeled PR open for explicit landing review. The patch correctly routes current-session setting rejections to the existing shared error banner without changing Gateway authorization; no code-level blocking finding was found. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherApple chat pickers call the shared chat view model, which sends an optimistic session-settings patch to the Gateway and rolls back on rejection. The view model’s error text feeds the existing chat notice banner for the active conversation. flowchart LR
A[Apple chat picker] --> B[Shared chat view model]
B --> C[Serialized session patch]
C --> D{Gateway accepts?}
D -->|Yes| E[Keep selected setting]
D -->|No| F[Restore accepted state]
F --> G[Current chat error banner]
Decision needed
Why: The patch is source-correct, but the intended accessibility-visible outcome is a native UI behavior and the protected maintainer label requires explicit maintainer handling. Before merge
Agent review detailsSecurityNone. PR surfaceOther +14. Total +14 across 3 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the owner-local error propagation after current-head checks and a native Apple rejection walkthrough confirm that the active conversation announces the existing banner while inactive-session failures remain silent. Do we have a high-confidence way to reproduce the issue? Yes—source establishes that current main rolls back these rejected patches without writing the banner’s error state, while the PR’s focused tests inject the same rejection path. This read-only review did not execute the Swift suite. Is this the best way to solve the issue? Yes. Reusing the existing shared error banner at the rollback owners is narrower and safer than changing Gateway permissions or adding a parallel Apple-only error mechanism. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 15e9bea3cbb2. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
|
Follow-up to #126520: merged #146343 resolves that issue's remaining Gateway authorization request for write-scoped session thinking and Fast Mode updates. This PR already supplied the native error feedback for rejected settings. The two fixes address different parts of the report; #146343 does not replace or remove this error handling. |
Summary
Addresses the silent-failure/accessibility portion of #126520. That issue must remain open for its separate request to change gateway authorization policy.
The shared Apple chat model already exposes rejected model-picker changes through its existing visible error banner, but thinking-level, verbosity, and fast-mode changes silently rolled back when the gateway rejected them. This was particularly difficult for VoiceOver users because the picker closed without an applied change or an explanation.
operator.adminauthorization boundary; no gateway permission, security, protocol, schema, or configuration changes.Verification
Native accessibility proof boundary
ClawSweeper's optional rank-up request for a redacted Apple-client rejection recording is skipped because this task has no paired physical iPhone/iPad with an enabled VoiceOver session and a bounded operator token available for capture. The changed path is instead proven by three real shared Apple view-model fail-before/pass-after regressions, inactive-session isolation, the inspected existing
ChatViewerror-banner consumer, the full 289-test Apple chat suite, and exact-head hosted iOS/macOS/Android CI. No claim is made that VoiceOver announcement behavior was physically exercised.