Skip to content

fix(claude): show the claude-swap Source picker beneath its toggle - #5202

Open
QuantIntellect wants to merge 2 commits into
steipete:mainfrom
QuantIntellect:fix/claude-swap-source-picker-placement
Open

QuantIntellect wants to merge 2 commits into
steipete:mainfrom
QuantIntellect:fix/claude-swap-source-picker-placement

Conversation

@QuantIntellect

Copy link
Copy Markdown
Contributor

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 .connection placement.

  • ProviderSettingsToggleDescriptor gets inlinePickers, empty by default. The toggle row draws them above its inline fields, with the same visibility filter.
  • The claude-swap toggle carries the Source picker, and it is no longer a standalone picker. Its id, binding, options and visibility are unchanged.
  • 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 new source picker is not one of the standalone pickers fails on main (the standalone pickers include claude-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 does make check.

Options section with the integration on, rendered with the synthetic proof hook (CODEXBAR_CLAUDE_PRESENTATION_PROOF_DIR), not captured from the running app:

Before After
Before: only the executable field under the toggle After: Source picker above the executable field

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.
@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-04T23:48:20.865961Z e0d0ce1 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 28, 2026
@clawsweeper

clawsweeper Bot commented Nov 28, 2026

Copy link
Copy Markdown

Codex review: needs real behavior proof before merge.

What this changes

This PR places the claude-swap Source picker beneath its toggle, above the executable field.

Example: Enable Read accounts from claude-swap and select tcr.

  • Before: Source appears in Connection near the top of the pane, separated from the executable field.
  • After: Source appears directly above the executable field beneath the enabled toggle.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, source-supported repair with synthetic rendering evidence; the shipped-app proof gate remains unmet.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Enabling the integration reveals its Source control elsewhere in the pane, making the control difficult to discover.
Reason: Grouping dependent controls follows the earlier executable-placement repair and resolves a concrete reported usability defect with a small shared-renderer extension.

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: 2934941effe131ec6f2610f1ab826d17b28ea92f

Before merge

  • Add real behavior proof - The supplied before/after images exercise the production toggle row through a synthetic NSHostingView test Form; they support layout correctness but do not exercise the shipped provider pane in a running macOS app, so contributor runtime proof remains required. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.

Findings

None.

Tests

  • Missing end-to-end proof: Supply a screenshot or recording from the freshly built running macOS app showing integration off/on and both Source choices beside the correctly relabelled executable field, with personal data redacted.
Agent review details

How this fits together

Claude 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]
Loading

Technical review

Best 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

  • Source picker placement keeps the original intent (c8fa04e: Add tcr selection beside claude-swap while keeping the picker conditional on the integration being enabled.)
  • Toggle-owned inline controls keeps the original intent (9cbaedb: Keep the executable beneath its enabling toggle so users can find it, subsequently retaining shared rendering and help behavior in 12d9f8c.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 12d9f8c adds Sources/CodexBar/PreferencesProviderSettingsRows.swift:40 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 12d9f8cb448a; files: Sources/CodexBar/PreferencesProviderSettingsRows.swift)
  • Gil Portnoy: Raw commit c8fa04e adds Sources/CodexBar/Providers/Claude/ClaudeProviderImplementation.swift:93 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c8fa04e17584; files: Sources/CodexBar/Providers/Claude/ClaudeProviderImplementation.swift)
  • laitifranz: Raw commit 9cbaedb adds Sources/CodexBar/Providers/Claude/ClaudeProviderImplementation.swift:91 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 9cbaedbc5c7e; files: Sources/CodexBar/Providers/Claude/ClaudeProviderImplementation.swift)

Preflight source

Source 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 cluster

Relationship: fixed_by_candidate
Canonical: #5191
Summary: This PR directly addresses the linked report's standalone Source picker placement.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Label justifications:

  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Provide the running-app evidence described in missingE2e.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 27, 2026, 7:19 PM ET / November 28, 2026, 00:19 UTC.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Claude settings: the claude-swap Source picker appears at the top of the pane, far from the toggle that reveals it

2 participants