Skip to content

Add /mcp login <name> to the TUI - #49290

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/aeec2dbee566660f9aa26ef23039196ef3ca49d6
Sep 29, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/aeec2dbee566660f9aa26ef23039196ef3ca49d6

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Add /mcp login <name> to the TUI

What changed

Allow users with an active session to start MCP OAuth sign-in through /mcp login <name>. Request login through the app server, open the authorization URL in the browser, and display success or failure in the originating thread.

Guard overlapping start requests and track login attempts per server so stale retry completions do not overwrite current results. Skip opening the browser when the attempt has already completed, and retain results across thread switches and session refreshes.

Testing

Add command dispatch coverage and regression tests for overlapping starts, stale retry completions, rejected starts, independent server logins, and result retention across thread switches and session refreshes.

## What changed

Allow users with an active session to start MCP OAuth sign-in through `/mcp login <name>`. Request login through the app server, open the authorization URL in the browser, and display success or failure in the originating thread.

Guard overlapping start requests and track login attempts per server so stale retry completions do not overwrite current results. Skip opening the browser when the attempt has already completed, and retain results across thread switches and session refreshes.

## Testing

Add command dispatch coverage and regression tests for overlapping starts, stale retry completions, rejected starts, independent server logins, and result retention across thread switches and session refreshes.

GitOrigin-RevId: aeec2dbee566660f9aa26ef23039196ef3ca49d6
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/aeec2dbee566660f9aa26ef23039196ef3ca49d6 branch from f70ccff to 4773a13 Compare September 29, 2026 16:00
@copyberry
copyberry Bot merged commit 4773a13 into main Sep 29, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/aeec2dbee566660f9aa26ef23039196ef3ca49d6 branch September 29, 2026 16:00
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 29, 2026
@mralect
mralect deployed to issue-triage September 29, 2026 16:04 — with GitHub Actions Active
@mralect
mralect deployed to issue-triage September 29, 2026 16:04 — with GitHub Actions Active
@mralect
mralect deployed to issue-triage September 29, 2026 16:04 — with GitHub Actions Active
@ifennna
ifennna deployed to issue-triage September 29, 2026 16:06 — with GitHub Actions Active
@ifennna
ifennna deployed to issue-triage September 29, 2026 16:06 — with GitHub Actions Active
@ifennna
ifennna deployed to issue-triage September 29, 2026 16:06 — with GitHub Actions Active
@ifennna
ifennna deployed to issue-triage September 29, 2026 16:08 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — 4773a132 Deployed Sep 29, 2026 by ifennna via Identify potential duplicates (open issues fallback) #49794
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants