Skip to content

fix: polish provider settings and label Codex connections by email - #193

Merged
sanchitrk merged 1 commit into
canaryfrom
fix/providers-settings-polish
Dec 2, 2026
Merged

sanchitrk merged 1 commit into
canaryfrom
fix/providers-settings-polish

Conversation

@sanchitrk

@sanchitrk sanchitrk commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

A design review of Settings > Providers turned up an instant Remove, controls screen readers couldn't use, lost focus and a raw account id shown as the Codex account. This fixes those, and labels Codex connections with the account's email.

Desktop UI (apps/web)

These changes apply to Providers and to the MCP Connectors and Integrations pages, which share the same code.

  • Remove asks for confirmation in a dialog, naming the connection and the machine its credentials are deleted from. The row menu is dense, sized to its content, and has no separators.
  • One row toggle. Connect, Sign In and Close share one outlined button with an accessible name ("Connect Anthropic") and aria-expanded. The button-style pickers are radio groups, and panel errors are announced as alerts.
  • Focus and scroll.
    • Closing a panel hands focus back to the button that opened it. When that button is gone, as with a reconnect from the menu, focus goes to the row's menu.
    • A panel focuses its first field once it has opened, and a row near the bottom scrolls into view.
    • The panel uses the shared Collapse for its motion. It still unmounts once closed, so a typed key is never left in a hidden panel.
  • Search: one search field for every connector list, with its own clear button in place of the browser's. Escape clears it.
  • Smaller fixes:
    • Ids look the same in both lists.
    • The catalog shows "1 connected" for a provider that already has a connection.
    • "Default" only appears when a provider has more than one connection.
    • The panel suggests the provider's environment variable.
    • The machine picker and Refresh match, and Refresh shows when it's loading.
    • Empty states name the page's kind ("No Matching Providers").
    • Copy buttons clear their timers when the panel closes.
    • The ⋯ and shuffle buttons are 44px to tap.

Codex account label (packages/aikit, packages/codework)

  • aikit keeps the id_token from sign-in and refresh. getOpenAICodexAccountEmail reads the account email from it: the email claim first, then the profile claim. The CLI's own login strips the id_token before writing auth.json.
  • codework labels Codex connections with that email in all three places it saves one: browser sign-in, device-code sign-in and refresh. A refresh without an id_token keeps the current label, and if there's no email the account id stays the label, as it was before.

Surfaces:

  • RPC server: stores the new label.
  • Desktop app: shows it with no change.
  • CLI: codework connect lists it.
  • Other providers: no change.

Testing

  • vp run verify passes. vp check and the @codeworksh/web typecheck pass for the app files.
  • vp test test/oauth.codex.test.ts in aikit: 21 passed. The new cases cover which email claim wins, an id_token without an email, and refresh with and without an id_token.
  • vp test test/server.test.ts -t "OpenAI Codex" in codework: 3 passed.
  • In the real desktop app (dev Relay, RPC server and Electron, driven through agent-browser over CDP), I signed in to OpenAI Codex again. The row now reads Connected · OAuth · <account email> instead of the account id.
  • In the same app I checked:
    • the Remove dialog (cancelled)
    • the dense menu
    • focus going back after Escape, and the fallback to the row menu
    • the first field getting focus when a panel opens
    • the empty search state and the clear button
    • Close and Connect lining up
    • validation errors announced as alerts
  • Not seen: the bottom-row scroll after its last fix (it now waits one frame after the panel opens). The Electron window was behind other windows and drew no frames. Earlier I confirmed by hand that scrollIntoView works once the panel has settled.
  • Not covered: dark mode, narrow windows, and connections that need signing in again (none in the test data).

Model and harness: Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Settings > Providers (and the MCP and Integrations pages that share it):
- Remove asks for confirmation; the row menu is dense, sized to its
  content, without separators.
- Connect, Sign In and Close share one outlined toggle with an accessible
  name; segmented pickers are radio groups; panel errors are alerts.
- Closing a panel hands focus back to its opener, or to the row menu when
  the opener is gone; a panel opened near the bottom scrolls into view and
  focuses its first field once open, using the shared Collapse.
- One search field for all connector lists, with its own clear button.
- Consistent ids, "1 connected" in the catalog, Default only with more
  than one connection, an env var hint, quieter header controls, Refresh
  feedback, and copy that names the page's kind.

Codex connections:
- aikit keeps the id_token from sign-in and refresh, and reads the
  account email from it: its email claim, then the profile claim.
- The host labels Codex connections with that email; a refresh without an
  id_token keeps the label, and the account id stands in without an email.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sanchitrk
sanchitrk merged commit 2b830ec into canary Dec 2, 2026
3 checks passed
@sanchitrk
sanchitrk deleted the fix/providers-settings-polish branch December 2, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant