Lightweight coding agent that runs in your terminal
Rust
[apps] Fix app mention syntax. (#11894)
Matthew Zeng5b421bba3479
diff --git a/codex-rs/core/src/apps/render.rs b/codex-rs/core/src/apps/render.rsindex f450eb3a3a..7f706f737e 100644--- a/codex-rs/core/src/apps/render.rs+++ b/codex-rs/core/src/apps/render.rs@@ -2,6 +2,6 @@ use crate::mcp::CODEX_APPS_MCP_SERVER_NAME;pub(crate) fn render_apps_section() -> String {format!(- "## Apps\nApps are mentioned in the prompt in the format `[$app-name](apps://{{connector_id}})`.\nAn app is equivalent to a set of MCP tools within the `{CODEX_APPS_MCP_SERVER_NAME}` MCP.\nWhen you see an app mention, the app's MCP tools are either already provided in `{CODEX_APPS_MCP_SERVER_NAME}`, or do not exist because the user did not install it.\nDo not additionally call list_mcp_resources for apps that are already mentioned."+ "## Apps\nApps are mentioned in the prompt in the format `[$app-name](app://{{connector_id}})`.\nAn app is equivalent to a set of MCP tools within the `{CODEX_APPS_MCP_SERVER_NAME}` MCP.\nWhen you see an app mention, the app's MCP tools are either already provided in `{CODEX_APPS_MCP_SERVER_NAME}`, or do not exist because the user did not install it.\nDo not additionally call list_mcp_resources for apps that are already mentioned.")}diff --git a/codex-rs/core/templates/search_tool/tool_description.md b/codex-rs/core/templates/search_tool/tool_description.mdindex 0c84a6f52e..05667b7356 100644--- a/codex-rs/core/templates/search_tool/tool_description.md+++ b/codex-rs/core/templates/search_tool/tool_description.md@@ -24,5 +24,5 @@ Notes:- `description`- `connector_name`- input schema property keys (`input_keys`)-- If the needed app is already explicit in the prompt (for example an `apps://...` mention) or already present in the current `tools` list, you can call that tool directly.+- If the needed app is already explicit in the prompt (for example `[$app-name](app://{connector_id})`) or already present in the current `tools` list, you can call that tool directly.- Do not use `search_tool_bm25` for non-apps/local tasks (filesystem, repo search, or shell-only workflows) or anything not related to {{app_names}}.