mirror of
https://github.com/openai/codex.git
synced 2026-11-13 14:46:14 +00:00
[mcp-apps] Persist MCP Apps specific tool call end event. (#20853)
- [x] Persist a special type of MCP tool calls for triggering MCP App, this type of mcp tool calls has 'mcpAppResourceUri` set. These events are needed so that the Codex App can correctly render the MCP App after resume.
This commit is contained in:
1 parent
e3451ce6be
commit
83a4e3b66b
1 file changed
+3
@@ -117,6 +117,9 @@ fn event_msg_persistence_mode(ev: &EventMsg) -> Option<EventPersistenceMode> {
|
|||||||
None
|
None
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
EventMsg::McpToolCallEnd(event) if event.mcp_app_resource_uri.is_some() => {
|
||||||
|
Some(EventPersistenceMode::Limited)
|
||||||
|
}
|
||||||
EventMsg::Error(_)
|
EventMsg::Error(_)
|
||||||
| EventMsg::GuardianAssessment(_)
|
| EventMsg::GuardianAssessment(_)
|
||||||
| EventMsg::WebSearchEnd(_)
|
| EventMsg::WebSearchEnd(_)
|
||||||
|
|||||||
Reference in new issue
Block a user