mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Attribute executor skill invocations to plugins (#39309)
## What changed - Carry selected plugin identities from MCP discovery into per-turn extension data, limited to capability roots that are ready for the turn. - Annotate executor skill catalog entries with the matching plugin ID and `user` scope. - Include that attribution in `skill_invocation` analytics for both explicit and implicit executor skill invocations. ## Testing - Extend the executor skills app-server test to verify plugin ID, skill scope, and invocation type for explicit and implicit analytics events. GitOrigin-RevId: 9345600ae29bcb8eb894fffd2d6f7b05f22ebf74
This commit is contained in:
1 parent
c97bd2dcb5
commit
280d56b1d8
17 files changed
+129
-18
No files matched your search
@@ -141,6 +141,7 @@ impl Session {
|
||||
ready_selected_capability_roots: &[SelectedCapabilityRoot],
|
||||
elicitation_reviewer: Option<ElicitationReviewerHandle>,
|
||||
) {
|
||||
let selected_plugins = mcp_projection.selected_plugins.clone();
|
||||
let input = self.build_mcp_runtime_input(
|
||||
desired,
|
||||
mcp_projection,
|
||||
@@ -148,6 +149,7 @@ impl Session {
|
||||
elicitation_reviewer,
|
||||
);
|
||||
self.services.mcp_runtime.replace(input).await;
|
||||
self.services.thread_extension_data.insert(selected_plugins);
|
||||
}
|
||||
|
||||
pub(super) fn build_mcp_runtime_input(
|
||||
@@ -161,6 +163,7 @@ impl Session {
|
||||
let McpRuntimeProjection {
|
||||
mut config,
|
||||
plugins_available,
|
||||
selected_plugins: _,
|
||||
} = mcp_projection;
|
||||
config.approval_policy = desired.config.permissions.approval_policy.clone();
|
||||
config.permission_profile = desired.config.permissions.effective_permission_profile();
|
||||
|
||||
Reference in new issue
Block a user