mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
Record an MCP refresh reason for session permission grants (#60513)
Add `McpRefreshReason::SessionPermissionsGranted` and pass it when marking the MCP runtime dirty after a session-scoped permission grant. This supplies the required reason argument and identifies the refresh cause in CLI diagnostics. GitOrigin-RevId: 2ff8f6b9e1a40d68e1f799d0414c2d45e2576a1a
This commit is contained in:
@@ -3810,7 +3810,7 @@ impl Session {
|
||||
environment_id,
|
||||
response.permissions.clone().into(),
|
||||
);
|
||||
self.mark_mcp_runtime_dirty();
|
||||
self.mark_mcp_runtime_dirty(McpRefreshReason::SessionPermissionsGranted);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -299,6 +299,7 @@ pub enum McpRefreshReason {
|
||||
RuntimeAuthChanged,
|
||||
SelectedCapabilityRootsChanged,
|
||||
SessionMcpInputsChanged,
|
||||
SessionPermissionsGranted,
|
||||
SkillMcpDependenciesAdded,
|
||||
TaskStartedExecutorDiscovery,
|
||||
TurnStartContributorPreparedMcp,
|
||||
|
||||
Reference in New Issue
Block a user