Repository navigation
fix(claude): show the claude-swap Source picker beneath its toggle - #5202
QuantIntellect wants to merge 2 commits into
Conversation
Toggles can now carry inline pickers, drawn above their inline fields. The claude-swap Source picker moves from the standalone Connection pickers to the claude-swap toggle, next to the executable field it selects. Fixes steipete#5191.
|
🦞👀 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 Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs real behavior proof before merge. What this changesThis PR places the claude-swap Source picker beneath its toggle, above the executable field. Example: Enable Read accounts from claude-swap and select tcr.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep open: this PR addresses a source-confirmed settings-layout defect that remains on main, with no introduced correctness or security defect found. Reviewed head: Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherClaude supplies settings descriptors to the shared SwiftUI provider pane, which renders controls bound to the existing SettingsStore preferences. flowchart TD
A[Claude settings descriptors] --> B[Integration toggle]
B --> C[Inline Source picker]
B --> D[Inline executable field]
C --> E[Shared settings rows]
D --> E
E --> F[SettingsStore bindings]
Technical reviewBest possible solution: Keep Source and the executable field together beneath the enabled integration toggle through the existing shared settings components. Do we have a high-confidence way to reproduce the issue? Main's standalone picker descriptor and Connection-before-Options form ordering establish the reported separation, corroborating the linked user's release report without a live reproduction. Is this the best way to solve the issue? The change extends the existing inline-field composition pattern, reuses the picker renderer, and removes the former standalone control while preserving its behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a26ca57b5186. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 27, 2026, 7:19 PM ET / November 28, 2026, 00:19 UTC. |
Fixes #5191.
With "Read accounts from claude-swap" on, the executable field appears under the toggle, but the Source picker, which chooses between claude-swap and tcr and relabels that field, sits in the Connection section at the top of the pane. Toggle descriptors could carry inline fields but not pickers, so Source was a standalone
settingsPickers()entry with the default.connectionplacement.ProviderSettingsToggleDescriptorgetsinlinePickers, empty by default. The toggle row draws them above its inline fields, with the same visibility filter.docs/claude.md: the tcr note points to the picker above the executable field.No new strings, and no other toggle gets inline pickers.
Tests: in
ClaudeSwapSettingsPlacementTests, the newsource picker is not one of the standalone pickersfails on main (the standalone pickers includeclaude-swap-source) and passes with the change. The tcr test now also checks that the picker belongs to the claude-swap toggle and that no other toggle has inline pickers.make test-fast FILTER='ClaudeSwapSettingsPlacementTests|ProviderSettingsDescriptorTests|ProvidersPaneCoverageTests|PopupLocalizationTests|ProviderArchitectureGatekeeper'passes (170 tests), and so doesmake check.Options section with the integration on, rendered with the synthetic proof hook (
CODEXBAR_CLAUDE_PRESENTATION_PROOF_DIR), not captured from the running app: