Add thread-scoped inventory list params

This commit is contained in:
jif-oai
2026-06-19 15:10:05 +02:00
parent 81b000421d
commit 960d9f1182
17 changed files with 182 additions and 9 deletions
@@ -1894,6 +1894,13 @@
"array",
"null"
]
},
"threadId": {
"description": "Optional loaded thread id used to evaluate plugins from that thread's config.",
"type": [
"string",
"null"
]
}
},
"type": "object"
@@ -3476,6 +3483,13 @@
"forceReload": {
"description": "When true, bypass the skills cache and re-scan skills from disk.",
"type": "boolean"
},
"threadId": {
"description": "Optional loaded thread id used to evaluate skills from that thread's config.",
"type": [
"string",
"null"
]
}
},
"type": "object"
@@ -13377,6 +13377,13 @@
"array",
"null"
]
},
"threadId": {
"description": "Optional loaded thread id used to evaluate plugins from that thread's config.",
"type": [
"string",
"null"
]
}
},
"title": "PluginListParams",
@@ -16417,6 +16424,13 @@
"forceReload": {
"description": "When true, bypass the skills cache and re-scan skills from disk.",
"type": "boolean"
},
"threadId": {
"description": "Optional loaded thread id used to evaluate skills from that thread's config.",
"type": [
"string",
"null"
]
}
},
"title": "SkillsListParams",
@@ -9801,6 +9801,13 @@
"array",
"null"
]
},
"threadId": {
"description": "Optional loaded thread id used to evaluate plugins from that thread's config.",
"type": [
"string",
"null"
]
}
},
"title": "PluginListParams",
@@ -14196,6 +14203,13 @@
"forceReload": {
"description": "When true, bypass the skills cache and re-scan skills from disk.",
"type": "boolean"
},
"threadId": {
"description": "Optional loaded thread id used to evaluate skills from that thread's config.",
"type": [
"string",
"null"
]
}
},
"title": "SkillsListParams",
@@ -36,6 +36,13 @@
"array",
"null"
]
},
"threadId": {
"description": "Optional loaded thread id used to evaluate plugins from that thread's config.",
"type": [
"string",
"null"
]
}
},
"title": "PluginListParams",
@@ -11,6 +11,13 @@
"forceReload": {
"description": "When true, bypass the skills cache and re-scan skills from disk.",
"type": "boolean"
},
"threadId": {
"description": "Optional loaded thread id used to evaluate skills from that thread's config.",
"type": [
"string",
"null"
]
}
},
"title": "SkillsListParams",
@@ -10,6 +10,10 @@ export type PluginListParams = {
* only home-scoped marketplaces and the official curated marketplace are considered.
*/
cwds?: Array<AbsolutePathBuf> | null,
/**
* Optional loaded thread id used to evaluate plugins from that thread's config.
*/
threadId?: string | null,
/**
* Optional marketplace kind filter. When omitted, only local marketplaces are queried, plus
* the default remote catalog when enabled by feature flag.
@@ -7,6 +7,10 @@ export type SkillsListParams = {
* When empty, defaults to the current session working directory.
*/
cwds?: Array<string>,
/**
* Optional loaded thread id used to evaluate skills from that thread's config.
*/
threadId?: string | null,
/**
* When true, bypass the skills cache and re-scan skills from disk.
*/
@@ -1843,6 +1843,7 @@ mod tests {
request_id: request_id(),
params: v2::SkillsListParams {
cwds: Vec::new(),
thread_id: None,
force_reload: false,
},
};
@@ -1866,6 +1867,7 @@ mod tests {
request_id: request_id(),
params: v2::PluginListParams {
cwds: None,
thread_id: None,
marketplace_kinds: None,
},
};
@@ -23,6 +23,10 @@ pub struct SkillsListParams {
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub cwds: Vec<PathBuf>,
/// Optional loaded thread id used to evaluate skills from that thread's config.
#[ts(optional = nullable)]
pub thread_id: Option<String>,
/// When true, bypass the skills cache and re-scan skills from disk.
#[serde(default, skip_serializing_if = "std::ops::Not::not")]
pub force_reload: bool,
@@ -131,6 +135,9 @@ pub struct PluginListParams {
/// only home-scoped marketplaces and the official curated marketplace are considered.
#[ts(optional = nullable)]
pub cwds: Option<Vec<AbsolutePathBuf>>,
/// Optional loaded thread id used to evaluate plugins from that thread's config.
#[ts(optional = nullable)]
pub thread_id: Option<String>,
/// Optional marketplace kind filter. When omitted, only local marketplaces are queried, plus
/// the default remote catalog when enabled by feature flag.
#[ts(optional = nullable)]
@@ -2765,20 +2765,25 @@ fn skills_list_params_serialization_uses_force_reload() {
assert_eq!(
serde_json::to_value(SkillsListParams {
cwds: Vec::new(),
thread_id: None,
force_reload: false,
})
.unwrap(),
json!({}),
json!({
"threadId": null,
}),
);
assert_eq!(
serde_json::to_value(SkillsListParams {
cwds: vec![PathBuf::from("/repo")],
thread_id: Some("thread-1".to_string()),
force_reload: true,
})
.unwrap(),
json!({
"cwds": ["/repo"],
"threadId": "thread-1",
"forceReload": true,
}),
);
@@ -2992,6 +2997,7 @@ fn plugin_list_params_ignore_removed_force_remote_sync_field() {
.unwrap(),
PluginListParams {
cwds: None,
thread_id: None,
marketplace_kinds: None,
},
);
@@ -3002,6 +3008,7 @@ fn plugin_list_params_serializes_marketplace_kind_filter() {
assert_eq!(
serde_json::to_value(PluginListParams {
cwds: None,
thread_id: Some("thread-1".to_string()),
marketplace_kinds: Some(vec![
PluginListMarketplaceKind::Local,
PluginListMarketplaceKind::Vertical,
@@ -3013,6 +3020,7 @@ fn plugin_list_params_serializes_marketplace_kind_filter() {
.unwrap(),
json!({
"cwds": null,
"threadId": "thread-1",
"marketplaceKinds": [
"local",
"vertical",
+4 -3
View File
@@ -206,13 +206,13 @@ Example with notification opt-out:
- `experimentalFeature/enablement/set` — patch the in-memory process-wide runtime feature enablement for currently supported feature keys. For each feature, precedence is: cloud requirements > --enable <feature_name> > config.toml > experimentalFeature/enablement/set (new) > code default. Invalid keys will be ignored.
- `environment/add` — experimental; add or replace a named remote environment by `environmentId` and `execServerUrl` for later selection by `thread/start` or `turn/start`; optional `connectTimeoutMs` overrides the WebSocket connection timeout; returns `{}` and does not change the default environment.
- `collaborationMode/list` — list available collaboration mode presets (experimental, no pagination). Built-in presets do not select a model; the Plan preset selects medium reasoning effort. This response omits built-in developer instructions; clients should either pass `settings.developer_instructions: null` when setting a mode to use Codex's built-in instructions, or provide their own instructions explicitly.
- `skills/list` — list skills for one or more `cwd` values (optional `forceReload`).
- `skills/list` — list skills for one or more `cwd` values (optional `forceReload`). Pass `threadId` to evaluate skills from a loaded thread's refreshed config; when `cwds` is omitted, the server uses that thread's cwd.
- `skills/extraRoots/set` — replace the app-server process runtime extra standalone skill roots. The roots are not persisted; missing directories are accepted and simply load no skills.
- `hooks/list` — list discovered hooks for one or more `cwd` values.
- `marketplace/add` — add a remote plugin marketplace from an HTTP(S) Git URL, SSH Git URL, or GitHub `owner/repo` shorthand, then persist it into the user marketplace config. Returns the installed root path plus whether the marketplace was already present.
- `marketplace/remove` — remove a configured marketplace by name from the user marketplace config, and delete its installed marketplace root when one exists.
- `marketplace/upgrade` — upgrade all configured Git plugin marketplaces, or one named marketplace when `marketplaceName` is provided. Returns selected marketplace names, upgraded roots, and per-marketplace errors.
- `plugin/list` — list discovered plugin marketplaces and plugin state, including effective marketplace install/auth policy metadata, plugin `availability` (`AVAILABLE` by default or `DISABLED_BY_ADMIN` for remote plugins blocked upstream), fail-open `marketplaceLoadErrors` entries for marketplace files that could not be parsed or loaded, and best-effort `featuredPluginIds` for the official curated marketplace. Clients can explicitly request the remote `workspace-directory`, `shared-with-me`, or `created-by-me-remote` marketplace kinds. `interface.category` uses the marketplace category when present; otherwise it falls back to the plugin manifest category (**under development; do not call from production clients yet**).
- `plugin/list` — list discovered plugin marketplaces and plugin state, including effective marketplace install/auth policy metadata, plugin `availability` (`AVAILABLE` by default or `DISABLED_BY_ADMIN` for remote plugins blocked upstream), fail-open `marketplaceLoadErrors` entries for marketplace files that could not be parsed or loaded, and best-effort `featuredPluginIds` for the official curated marketplace. Clients can explicitly request the remote `workspace-directory`, `shared-with-me`, or `created-by-me-remote` marketplace kinds. Pass `threadId` to evaluate plugins from a loaded thread's refreshed config; when `cwds` is omitted, the server uses that thread's cwd for repo marketplace discovery. `interface.category` uses the marketplace category when present; otherwise it falls back to the plugin manifest category (**under development; do not call from production clients yet**).
- `plugin/installed` — list installed plugin rows plus any explicitly requested local install-suggestion plugin names, without fetching the broader remote catalog. Mention surfaces can use this narrower view when they need plugin mention payloads rather than plugin-page discovery data (**under development; do not call from production clients yet**).
- `plugin/read` — read one plugin by `marketplacePath` plus `pluginName`, returning marketplace info, a list-style `summary`, manifest descriptions/interface metadata, and bundled skills/hooks/apps/MCP server names. Remote plugin details expose the canonical `shareUrl` supplied by the remote catalog when available; it is `null` for local plugins or when the catalog omits it. This field is separate from `summary.shareContext`, which continues to describe user and workspace sharing state. Returned plugin skills include their current `enabled` state after local config filtering; bundled hooks are returned as lightweight declaration summaries keyed for correlation with `hooks/list`. Use `plugin/install`'s `appsNeedingAuth` to drive post-install authentication and `app/list`'s `isAccessible` to determine current connector accessibility (**under development; do not call from production clients yet**).
- `plugin/skill/read` — read remote plugin skill markdown on demand by `remoteMarketplaceName`, `remotePluginId`, and `skillName`. This lets clients preview uninstalled remote plugin skills without downloading the plugin bundle.
@@ -1632,8 +1632,9 @@ Example:
$skill-creator Add a new skill for triaging flaky CI and include step-by-step usage.
```
Use `skills/list` to fetch the available skills (optionally scoped by `cwds`, with `forceReload`).
Use `skills/list` to fetch the available skills (optionally scoped by `cwds` or `threadId`, with `forceReload`).
`skills/list` might reuse a cached skills result per `cwd`; setting `forceReload` to `true` refreshes the result from disk.
When `threadId` is provided and `cwds` is omitted, the server lists skills for that loaded thread's cwd and refreshed config.
The server also emits `skills/changed` notifications when watched local skill files change. Treat this as an invalidation signal and re-run `skills/list` with your current params when needed.
Use `skills/extraRoots/set` to replace additional standalone skill roots for the current app-server process. These roots use the same layout as other standalone skill roots: each root contains skill directories, and each skill directory contains `SKILL.md`. Missing roots are accepted and load no skills until they exist. This setting is lost when app-server exits.
@@ -499,14 +499,34 @@ impl CatalogRequestProcessor {
&self,
params: SkillsListParams,
) -> Result<SkillsListResponse, JSONRPCErrorError> {
let SkillsListParams { cwds, force_reload } = params;
let SkillsListParams {
cwds,
thread_id,
force_reload,
} = params;
let config = match thread_id.as_deref() {
Some(thread_id) => {
let thread_id = ThreadId::from_string(thread_id)
.map_err(|err| invalid_request(format!("invalid thread id: {err}")))?;
let thread = self
.thread_manager
.get_thread(thread_id)
.await
.map_err(|_| invalid_request(format!("thread not found: {thread_id}")))?;
let thread_config = thread.config().await;
self.config_manager
.load_latest_config_for_thread(thread_config.as_ref())
.await
.map_err(|err| internal_error(format!("failed to reload config: {err}")))?
}
None => self.load_latest_config(/*fallback_cwd*/ None).await?,
};
let cwds = if cwds.is_empty() {
vec![self.config.cwd.to_path_buf()]
vec![config.cwd.to_path_buf()]
} else {
cwds
};
let config = self.load_latest_config(/*fallback_cwd*/ None).await?;
let auth = self.auth_manager.auth().await;
let workspace_codex_plugins_enabled = self
.workspace_codex_plugins_enabled(&config, auth.as_ref())
@@ -529,16 +529,37 @@ impl PluginRequestProcessor {
let plugins_manager = self.thread_manager.plugins_manager();
let PluginListParams {
cwds,
thread_id,
marketplace_kinds,
} = params;
let roots = cwds.unwrap_or_default();
let explicit_marketplace_kinds = marketplace_kinds.is_some();
let marketplace_kinds =
marketplace_kinds.unwrap_or_else(|| vec![PluginListMarketplaceKind::Local]);
let include_local = marketplace_kinds.contains(&PluginListMarketplaceKind::Local);
let include_vertical = marketplace_kinds.contains(&PluginListMarketplaceKind::Vertical);
let config = self.load_latest_config(/*fallback_cwd*/ None).await?;
let config = match thread_id.as_deref() {
Some(thread_id) => {
let thread_id = ThreadId::from_string(thread_id)
.map_err(|err| invalid_request(format!("invalid thread id: {err}")))?;
let thread = self
.thread_manager
.get_thread(thread_id)
.await
.map_err(|_| invalid_request(format!("thread not found: {thread_id}")))?;
let thread_config = thread.config().await;
self.config_manager
.load_latest_config_for_thread(thread_config.as_ref())
.await
.map_err(|err| internal_error(format!("failed to reload config: {err}")))?
}
None => self.load_latest_config(/*fallback_cwd*/ None).await?,
};
let roots = match cwds {
Some(cwds) => cwds,
None if thread_id.is_some() => vec![config.cwd.clone()],
None => Vec::new(),
};
let empty_response = || PluginListResponse {
marketplaces: Vec::new(),
marketplace_load_errors: Vec::new(),
@@ -503,6 +503,7 @@ async fn external_agent_config_import_sends_completion_notification_for_local_pl
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: None,
thread_id: None,
marketplace_kinds: None,
})
.await?;
@@ -96,6 +96,7 @@ async fn plugin_list_skips_invalid_marketplace_file_and_reports_error() -> Resul
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: Some(vec![AbsolutePathBuf::try_from(repo_root.path())?]),
thread_id: None,
marketplace_kinds: None,
})
.await?;
@@ -416,6 +417,7 @@ async fn plugin_list_keeps_valid_marketplaces_when_another_marketplace_fails_to_
AbsolutePathBuf::try_from(valid_repo_root.path())?,
AbsolutePathBuf::try_from(invalid_repo_root.path())?,
]),
thread_id: None,
marketplace_kinds: None,
})
.await?;
@@ -530,6 +532,7 @@ async fn plugin_list_returns_empty_when_workspace_codex_plugins_disabled() -> Re
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: Some(vec![AbsolutePathBuf::try_from(repo_root.path())?]),
thread_id: None,
marketplace_kinds: None,
})
.await?;
@@ -622,6 +625,7 @@ async fn plugin_list_reuses_cached_workspace_codex_plugins_setting() -> Result<(
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: Some(vec![AbsolutePathBuf::try_from(repo_root.path())?]),
thread_id: None,
marketplace_kinds: None,
})
.await?;
@@ -706,6 +710,7 @@ async fn plugin_list_uses_alternate_discoverable_manifest_and_keeps_undiscoverab
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: Some(vec![AbsolutePathBuf::try_from(repo_root.path())?]),
thread_id: None,
marketplace_kinds: None,
})
.await?;
@@ -819,6 +824,7 @@ async fn plugin_list_accepts_omitted_cwds() -> Result<()> {
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: None,
thread_id: None,
marketplace_kinds: None,
})
.await?;
@@ -872,6 +878,7 @@ async fn plugin_list_returns_share_context_for_shared_local_plugin() -> Result<(
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: Some(vec![AbsolutePathBuf::try_from(repo_root.path())?]),
thread_id: None,
marketplace_kinds: None,
})
.await?;
@@ -964,6 +971,7 @@ enabled = false
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: Some(vec![AbsolutePathBuf::try_from(repo_root.path())?]),
thread_id: None,
marketplace_kinds: None,
})
.await?;
@@ -1121,6 +1129,7 @@ enabled = false
AbsolutePathBuf::try_from(workspace_enabled.path())?,
AbsolutePathBuf::try_from(workspace_default.path())?,
]),
thread_id: None,
marketplace_kinds: None,
})
.await?;
@@ -1205,6 +1214,7 @@ async fn plugin_list_returns_plugin_interface_with_absolute_asset_paths() -> Res
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: Some(vec![AbsolutePathBuf::try_from(repo_root.path())?]),
thread_id: None,
marketplace_kinds: None,
})
.await?;
@@ -1318,6 +1328,7 @@ async fn plugin_list_accepts_legacy_string_default_prompt() -> Result<()> {
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: Some(vec![AbsolutePathBuf::try_from(repo_root.path())?]),
thread_id: None,
marketplace_kinds: None,
})
.await?;
@@ -1406,6 +1417,7 @@ enabled = true
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: Some(vec![AbsolutePathBuf::try_from(repo_root.path())?]),
thread_id: None,
marketplace_kinds: None,
})
.await?;
@@ -1596,6 +1608,7 @@ async fn plugin_list_sync_upgrades_and_removes_remote_installed_plugin_bundles()
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: None,
thread_id: None,
marketplace_kinds: None,
})
.await?;
@@ -1768,6 +1781,7 @@ async fn plugin_list_includes_remote_marketplaces_when_remote_plugin_enabled() -
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: None,
thread_id: None,
marketplace_kinds: None,
})
.await?;
@@ -1908,6 +1922,7 @@ async fn plugin_list_uses_cached_global_remote_catalog_and_refreshes_it() -> Res
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: None,
thread_id: None,
marketplace_kinds: None,
})
.await?;
@@ -1941,6 +1956,7 @@ async fn plugin_list_uses_cached_global_remote_catalog_and_refreshes_it() -> Res
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: None,
thread_id: None,
marketplace_kinds: None,
})
.await?;
@@ -2022,6 +2038,7 @@ async fn plugin_list_includes_openai_curated_remote_collection_when_requested()
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: None,
thread_id: None,
marketplace_kinds: Some(vec![PluginListMarketplaceKind::Vertical]),
})
.await?;
@@ -2110,6 +2127,7 @@ async fn plugin_list_propagates_explicit_openai_curated_remote_collection_errors
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: None,
thread_id: None,
marketplace_kinds: Some(vec![PluginListMarketplaceKind::Vertical]),
})
.await?;
@@ -2149,6 +2167,7 @@ async fn plugin_list_skips_explicit_openai_curated_remote_collection_for_api_aut
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: None,
thread_id: None,
marketplace_kinds: Some(vec![PluginListMarketplaceKind::Vertical]),
})
.await?;
@@ -2188,6 +2207,7 @@ async fn plugin_list_includes_api_curated_marketplace_for_api_auth_when_remote_p
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: None,
thread_id: None,
marketplace_kinds: None,
})
.await?;
@@ -2243,6 +2263,7 @@ async fn plugin_list_does_not_query_openai_curated_remote_collection_by_default(
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: None,
thread_id: None,
marketplace_kinds: None,
})
.await?;
@@ -2296,6 +2317,7 @@ async fn plugin_list_vertical_kind_noops_when_remote_plugin_enabled() -> Result<
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: None,
thread_id: None,
marketplace_kinds: Some(vec![PluginListMarketplaceKind::Vertical]),
})
.await?;
@@ -2350,6 +2372,7 @@ async fn plugin_list_does_not_append_global_remote_when_marketplace_kinds_are_ex
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: None,
thread_id: None,
marketplace_kinds: Some(vec![PluginListMarketplaceKind::Local]),
})
.await?;
@@ -2771,6 +2794,7 @@ async fn plugin_list_fetches_workspace_directory_kind_without_remote_plugin_flag
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: None,
thread_id: None,
marketplace_kinds: Some(vec![PluginListMarketplaceKind::WorkspaceDirectory]),
})
.await?;
@@ -2898,6 +2922,7 @@ plugin_sharing = false
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: None,
thread_id: None,
marketplace_kinds: Some(vec![PluginListMarketplaceKind::CreatedByMeRemote]),
})
.await?;
@@ -3025,6 +3050,7 @@ async fn plugin_list_fetches_shared_with_me_kind() -> Result<()> {
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: None,
thread_id: None,
marketplace_kinds: Some(vec![PluginListMarketplaceKind::SharedWithMe]),
})
.await?;
@@ -3182,6 +3208,7 @@ plugin_sharing = false
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: None,
thread_id: None,
marketplace_kinds: Some(vec![PluginListMarketplaceKind::SharedWithMe]),
})
.await?;
@@ -3242,6 +3269,7 @@ plugin_sharing = true
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: None,
thread_id: None,
marketplace_kinds: Some(vec![PluginListMarketplaceKind::CreatedByMeRemote]),
})
.await?;
@@ -3372,6 +3400,7 @@ async fn plugin_list_marks_remote_plugin_disabled_by_admin() -> Result<()> {
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: None,
thread_id: None,
marketplace_kinds: None,
})
.await?;
@@ -3432,6 +3461,7 @@ remote_plugin = true
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: None,
thread_id: None,
marketplace_kinds: None,
})
.await?;
@@ -3468,6 +3498,7 @@ async fn plugin_list_fetches_featured_plugin_ids_without_chatgpt_auth() -> Resul
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: None,
thread_id: None,
marketplace_kinds: None,
})
.await?;
@@ -3508,6 +3539,7 @@ async fn plugin_list_uses_warmed_featured_plugin_ids_cache_on_first_request() ->
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: None,
thread_id: None,
marketplace_kinds: None,
})
.await?;
@@ -716,6 +716,7 @@ async fn plugin_share_checkout_adds_personal_marketplace_entry() -> Result<()> {
let request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: None,
thread_id: None,
marketplace_kinds: Some(vec![
codex_app_server_protocol::PluginListMarketplaceKind::Local,
]),
@@ -248,6 +248,7 @@ async fn skills_list_loads_remote_installed_plugin_skills_from_cache() -> Result
let stale_skills_list_request_id = mcp
.send_skills_list_request(SkillsListParams {
cwds: vec![cwd.path().to_path_buf()],
thread_id: None,
force_reload: true,
})
.await?;
@@ -284,6 +285,7 @@ async fn skills_list_loads_remote_installed_plugin_skills_from_cache() -> Result
let plugin_list_request_id = mcp
.send_plugin_list_request(PluginListParams {
cwds: None,
thread_id: None,
marketplace_kinds: None,
})
.await?;
@@ -299,6 +301,7 @@ async fn skills_list_loads_remote_installed_plugin_skills_from_cache() -> Result
let skills_list_request_id = mcp
.send_skills_list_request(SkillsListParams {
cwds: vec![cwd.path().to_path_buf()],
thread_id: None,
force_reload: false,
})
.await?;
@@ -373,6 +376,7 @@ async fn skills_list_excludes_plugin_skills_when_workspace_codex_plugins_disable
let request_id = mcp
.send_skills_list_request(SkillsListParams {
cwds: vec![repo_root.path().to_path_buf()],
thread_id: None,
force_reload: true,
})
.await?;
@@ -423,6 +427,7 @@ async fn skills_list_skips_cwd_roots_when_environment_disabled() -> Result<()> {
let request_id = mcp
.send_skills_list_request(SkillsListParams {
cwds: vec![cwd.path().to_path_buf()],
thread_id: None,
force_reload: true,
})
.await?;
@@ -463,6 +468,7 @@ async fn skills_list_accepts_relative_cwds() -> Result<()> {
let request_id = mcp
.send_skills_list_request(SkillsListParams {
cwds: vec![relative_cwd.clone()],
thread_id: None,
force_reload: true,
})
.await?;
@@ -494,6 +500,7 @@ async fn skills_list_preserves_requested_cwd_order() -> Result<()> {
first_cwd.path().to_path_buf(),
second_cwd.path().to_path_buf(),
],
thread_id: None,
force_reload: true,
})
.await?;
@@ -528,6 +535,7 @@ async fn skills_list_uses_cached_result_until_force_reload() -> Result<()> {
let first_request_id = mcp
.send_skills_list_request(SkillsListParams {
cwds: vec![cwd.path().to_path_buf()],
thread_id: None,
force_reload: false,
})
.await?;
@@ -555,6 +563,7 @@ async fn skills_list_uses_cached_result_until_force_reload() -> Result<()> {
let second_request_id = mcp
.send_skills_list_request(SkillsListParams {
cwds: vec![cwd.path().to_path_buf()],
thread_id: None,
force_reload: false,
})
.await?;
@@ -575,6 +584,7 @@ async fn skills_list_uses_cached_result_until_force_reload() -> Result<()> {
let third_request_id = mcp
.send_skills_list_request(SkillsListParams {
cwds: vec![cwd.path().to_path_buf()],
thread_id: None,
force_reload: true,
})
.await?;
@@ -626,6 +636,7 @@ async fn skills_extra_roots_set_updates_process_runtime_roots() -> Result<()> {
let skills_request_id = mcp
.send_skills_list_request(SkillsListParams {
cwds: vec![cwd.path().to_path_buf()],
thread_id: None,
force_reload: false,
})
.await?;
@@ -661,6 +672,7 @@ async fn skills_extra_roots_set_updates_process_runtime_roots() -> Result<()> {
let skills_request_id = mcp
.send_skills_list_request(SkillsListParams {
cwds: vec![cwd.path().to_path_buf()],
thread_id: None,
force_reload: false,
})
.await?;
@@ -694,6 +706,7 @@ async fn skills_extra_roots_set_updates_process_runtime_roots() -> Result<()> {
let skills_request_id = mcp
.send_skills_list_request(SkillsListParams {
cwds: vec![cwd.path().to_path_buf()],
thread_id: None,
force_reload: false,
})
.await?;
@@ -718,6 +731,7 @@ async fn skills_extra_roots_set_updates_process_runtime_roots() -> Result<()> {
let skills_request_id = mcp
.send_skills_list_request(SkillsListParams {
cwds: vec![cwd.path().to_path_buf()],
thread_id: None,
force_reload: false,
})
.await?;
@@ -756,6 +770,7 @@ async fn skills_changed_notification_is_emitted_after_skill_change() -> Result<(
let initial_skills_request_id = mcp
.send_skills_list_request(SkillsListParams {
cwds: vec![codex_home.path().to_path_buf()],
thread_id: None,
force_reload: true,
})
.await?;
@@ -830,6 +845,7 @@ async fn skills_changed_notification_is_emitted_after_skill_change() -> Result<(
let updated_skills_request_id = mcp
.send_skills_list_request(SkillsListParams {
cwds: vec![codex_home.path().to_path_buf()],
thread_id: None,
force_reload: false,
})
.await?;