[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:
Matthew Zeng
2026-05-04 10:20:58 -07:00
committed by GitHub
Unverified
parent e3451ce6be
commit 83a4e3b66b
+3
View File
@@ -117,6 +117,9 @@ fn event_msg_persistence_mode(ev: &EventMsg) -> Option<EventPersistenceMode> {
None
}
}
EventMsg::McpToolCallEnd(event) if event.mcp_app_resource_uri.is_some() => {
Some(EventPersistenceMode::Limited)
}
EventMsg::Error(_)
| EventMsg::GuardianAssessment(_)
| EventMsg::WebSearchEnd(_)