Skip to content

Prepare MCP connections for coordinated OAuth refresh - #42128

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

Prepare MCP connections for coordinated OAuth refresh#42128
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/89596150f0338e6ede0e712badecea4450831766

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 1, 2026

Copy link
Copy Markdown

Prepare MCP connections for coordinated OAuth refresh

What changed

  • Add the under-development mcp_oauth_refresh_coordination feature and pin its selected refresh mode to each MCP connection.
  • Treat the refresh mode as part of OAuth connection identity so runtime and MCP configuration refreshes reconnect when the mode changes.
  • Keep legacy refresh behavior in builds where coordination is unavailable and emit a warning when coordinated mode is selected.

Testing

  • Cover connection replacement when the feature is toggled through both runtime and MCP configuration refresh paths.

## What changed

- Add the under-development `mcp_oauth_refresh_coordination` feature and pin its selected refresh mode to each MCP connection.
- Treat the refresh mode as part of OAuth connection identity so runtime and MCP configuration refreshes reconnect when the mode changes.
- Keep legacy refresh behavior in builds where coordination is unavailable and emit a warning when coordinated mode is selected.

## Testing

- Cover connection replacement when the feature is toggled through both runtime and MCP configuration refresh paths.

GitOrigin-RevId: 89596150f0338e6ede0e712badecea4450831766
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/89596150f0338e6ede0e712badecea4450831766 branch from 9363076 to bd89ce6 Compare September 1, 2026 20:28
@copyberry
copyberry Bot merged commit bd89ce6 into main Sep 1, 2026
24 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/89596150f0338e6ede0e712badecea4450831766 branch September 1, 2026 20:29
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 1, 2026
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