mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08: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:
committed by
GitHub
Unverified
parent
e3451ce6be
commit
83a4e3b66b
@@ -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(_)
|
||||
|
||||
Reference in New Issue
Block a user