Remove Codex Apps prompt residue

This commit is contained in:
Meta Vens 2026-05-14 05:15:08 +01:00
commit b84acf78b1
18 changed files with 78 additions and 125 deletions

View file

@ -1614,8 +1614,8 @@ mod tests {
fn function_call_deserializes_optional_namespace() {
let item: ResponseItem = serde_json::from_value(serde_json::json!({
"type": "function_call",
"name": "mcp__codex_apps__gmail_get_recent_emails",
"namespace": "mcp__codex_apps__gmail",
"name": "mcp__mail_mcp__gmail_get_recent_emails",
"namespace": "mcp__mail_mcp__gmail",
"arguments": "{\"top_k\":5}",
"call_id": "call-1",
}))
@ -1625,8 +1625,8 @@ mod tests {
item,
ResponseItem::FunctionCall {
id: None,
name: "mcp__codex_apps__gmail_get_recent_emails".to_string(),
namespace: Some("mcp__codex_apps__gmail".to_string()),
name: "mcp__mail_mcp__gmail_get_recent_emails".to_string(),
namespace: Some("mcp__mail_mcp__gmail".to_string()),
arguments: "{\"top_k\":5}".to_string(),
call_id: "call-1".to_string(),
}
@ -2122,7 +2122,7 @@ mod tests {
execution: "client".to_string(),
tools: vec![serde_json::json!({
"type": "function",
"name": "mcp__codex_apps__calendar_create_event",
"name": "mcp__calendar_mcp__calendar_create_event",
"description": "Create a calendar event.",
"defer_loading": true,
"parameters": {
@ -2143,7 +2143,7 @@ mod tests {
execution: "client".to_string(),
tools: vec![serde_json::json!({
"type": "function",
"name": "mcp__codex_apps__calendar_create_event",
"name": "mcp__calendar_mcp__calendar_create_event",
"description": "Create a calendar event.",
"defer_loading": true,
"parameters": {
@ -2167,7 +2167,7 @@ mod tests {
"execution": "client",
"tools": [{
"type": "function",
"name": "mcp__codex_apps__calendar_create_event",
"name": "mcp__calendar_mcp__calendar_create_event",
"description": "Create a calendar event.",
"defer_loading": true,
"parameters": {

View file

@ -92,8 +92,6 @@ pub const USER_INSTRUCTIONS_OPEN_TAG: &str = "<user_instructions>";
pub const USER_INSTRUCTIONS_CLOSE_TAG: &str = "</user_instructions>";
pub const ENVIRONMENT_CONTEXT_OPEN_TAG: &str = "<environment_context>";
pub const ENVIRONMENT_CONTEXT_CLOSE_TAG: &str = "</environment_context>";
pub const APPS_INSTRUCTIONS_OPEN_TAG: &str = "<apps_instructions>";
pub const APPS_INSTRUCTIONS_CLOSE_TAG: &str = "</apps_instructions>";
pub const COLLABORATION_MODE_OPEN_TAG: &str = "<collaboration_mode>";
pub const COLLABORATION_MODE_CLOSE_TAG: &str = "</collaboration_mode>";
pub const EPIPHANY_STATE_OPEN_TAG: &str = "<epiphany_state>";