mirror of
https://github.com/openai/codex.git
synced 2026-11-29 07:35:16 +00:00
Track resource-backed skill invocations (#38066)
## What changed - Emit skill invocation analytics when a resource-backed skill is explicitly selected or its main resource is successfully read from the first page. - Preserve provider-supplied skill IDs and user scope when available, and derive a stable ID from the main resource otherwise. - Deduplicate repeated implicit reads of the same main resource within a turn. ## Testing - Extend the orchestrator skill integration test to cover explicit and implicit invocation events, stable fallback IDs, failed reads, and repeated-read deduplication. GitOrigin-RevId: 7d8453b31b5a2205847e65cda2c46183d6c97b45
This commit is contained in:
1 parent
104e25ac5a
commit
c8f673fddc
14 files changed
+311
-71
No files matched your search
@@ -178,6 +178,8 @@ pub struct SkillCatalogEntry {
|
||||
pub short_description: Option<String>,
|
||||
pub main_prompt: SkillResourceId,
|
||||
pub display_path: Option<String>,
|
||||
pub(crate) canonical_skill_id: Option<String>,
|
||||
pub(crate) analytics_scope: Option<SkillScope>,
|
||||
alias_root: Option<String>,
|
||||
alias_root_order: Option<usize>,
|
||||
prompt_scope: Option<SkillScope>,
|
||||
@@ -202,6 +204,8 @@ impl SkillCatalogEntry {
|
||||
short_description: None,
|
||||
main_prompt,
|
||||
display_path: None,
|
||||
canonical_skill_id: None,
|
||||
analytics_scope: None,
|
||||
alias_root: None,
|
||||
alias_root_order: None,
|
||||
prompt_scope: None,
|
||||
|
||||
Reference in new issue
Block a user