mirror of
https://github.com/openai/codex.git
synced 2026-11-25 23:30:49 +00:00
Support threadless MCP connections without event channels (#34408)
## What changed - Make the MCP connection manager's event sender optional. - Skip startup notifications when a caller has no session event stream. - Decline interactive MCP elicitations in that mode while allowing the underlying operation to continue. - Update threadless resource reads, status snapshots, and connector discovery to use the channel-free path. ## Testing - Extend the app-server MCP resource test to verify that a threadless resource read declines an elicitation and still returns the resource contents. GitOrigin-RevId: 65fea152adbc02a78e09a40cae4134b6dccffd34
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
use super::*;
|
||||
|
||||
use async_channel::unbounded;
|
||||
use codex_connectors::ConnectorRuntimeTool;
|
||||
use codex_connectors::connector_runtime_context_key;
|
||||
use codex_connectors::connector_tool_is_synthetic;
|
||||
@@ -75,8 +74,6 @@ impl AppsRequestProcessor {
|
||||
self.thread_manager.environment_manager(),
|
||||
config.cwd.to_path_buf(),
|
||||
);
|
||||
let (tx_event, rx_event) = unbounded();
|
||||
drop(rx_event);
|
||||
let cancellation_token = CancellationToken::new();
|
||||
let codex_apps_auth_manager =
|
||||
host_owned_codex_apps_enabled(&mcp_config, auth.as_ref())
|
||||
@@ -87,7 +84,7 @@ impl AppsRequestProcessor {
|
||||
config.auth_keyring_backend_kind(),
|
||||
&config.permissions.approval_policy,
|
||||
APPS_INSTALLED_SUBMIT_ID.to_string(),
|
||||
tx_event,
|
||||
/*tx_event*/ None,
|
||||
cancellation_token.clone(),
|
||||
PermissionProfile::default(),
|
||||
runtime_context,
|
||||
|
||||
Reference in New Issue
Block a user