mirror of
https://github.com/openai/codex.git
synced 2026-09-17 12:23:33 +00:00
This makes MCP startup not block TUI startup. Messages sent while MCPs are booting will be queued. https://github.com/user-attachments/assets/96e1d234-5d8f-4932-a935-a675d35c05e0 Fixes #6317 --------- Co-authored-by: pakrym-oai <pakrym@openai.com>
26 lines
1001 B
Rust
26 lines
1001 B
Rust
use std::sync::Arc;
|
|
|
|
use crate::AuthManager;
|
|
use crate::RolloutRecorder;
|
|
use crate::mcp_connection_manager::McpConnectionManager;
|
|
use crate::tools::sandboxing::ApprovalStore;
|
|
use crate::unified_exec::UnifiedExecSessionManager;
|
|
use crate::user_notification::UserNotifier;
|
|
use codex_otel::otel_event_manager::OtelEventManager;
|
|
use tokio::sync::Mutex;
|
|
use tokio::sync::RwLock;
|
|
use tokio_util::sync::CancellationToken;
|
|
|
|
pub(crate) struct SessionServices {
|
|
pub(crate) mcp_connection_manager: Arc<RwLock<McpConnectionManager>>,
|
|
pub(crate) mcp_startup_cancellation_token: CancellationToken,
|
|
pub(crate) unified_exec_manager: UnifiedExecSessionManager,
|
|
pub(crate) notifier: UserNotifier,
|
|
pub(crate) rollout: Mutex<Option<RolloutRecorder>>,
|
|
pub(crate) user_shell: crate::shell::Shell,
|
|
pub(crate) show_raw_agent_reasoning: bool,
|
|
pub(crate) auth_manager: Arc<AuthManager>,
|
|
pub(crate) otel_event_manager: OtelEventManager,
|
|
pub(crate) tool_approvals: Mutex<ApprovalStore>,
|
|
}
|