Skip to content

Expose session sources to MCP contributors - #37167

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/23da1509858e023fbd9e2d179034ddc83553f17b
Aug 5, 2026
Merged

Expose session sources to MCP contributors#37167
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/23da1509858e023fbd9e2d179034ddc83553f17b

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 5, 2026

Copy link
Copy Markdown

Expose session sources to MCP contributors

What changed

  • Add session_source() to McpServerContributionContext for thread-scoped MCP resolution.
  • Propagate each thread's SessionSource through initial setup, per-step resolution, and runtime refreshes.

Testing

  • Verify global contexts omit the source while thread-scoped contexts retain it.
  • Verify MCP contributors observe distinct sources for a root thread and its spawned subagent.

## What changed

- Add `session_source()` to `McpServerContributionContext` for thread-scoped MCP resolution.
- Propagate each thread's `SessionSource` through initial setup, per-step resolution, and runtime refreshes.

## Testing

- Verify global contexts omit the source while thread-scoped contexts retain it.
- Verify MCP contributors observe distinct sources for a root thread and its spawned subagent.

GitOrigin-RevId: 23da1509858e023fbd9e2d179034ddc83553f17b
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/23da1509858e023fbd9e2d179034ddc83553f17b branch from 437aaf0 to 15ea598 Compare August 5, 2026 21:46
@copyberry
copyberry Bot merged commit 15ea598 into main Aug 5, 2026
13 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/23da1509858e023fbd9e2d179034ddc83553f17b branch August 5, 2026 21:47
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 5, 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.

1 participant