File tree Expand file tree Collapse file tree
codex-rs/acp/src/connection Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,6 +66,8 @@ use sacp::schema::SetSessionModelRequest;
6666/// Minimum supported ACP protocol version.
6767const MINIMUM_SUPPORTED_VERSION : ProtocolVersion = ProtocolVersion :: V1 ;
6868
69+ type ActiveUpdateSlot = std:: sync:: Arc < Mutex < Option < ( u64 , mpsc:: Sender < SessionUpdate > ) > > > ;
70+
6971/// A thread-safe connection to an ACP agent subprocess using SACP v10.
7072///
7173/// Unlike the old `AcpConnection`, this does NOT require a dedicated worker thread.
@@ -77,10 +79,6 @@ const MINIMUM_SUPPORTED_VERSION: ProtocolVersion = ProtocolVersion::V1;
7779/// - The `JrConnectionCx` is cloned out and used for all subsequent requests.
7880/// - Session notifications and approval requests are forwarded via channels.
7981/// - The session update channel is swapped for each prompt via an `Arc<Mutex<...>>`.
80- /// Shared slot for the active session update sender, paired with a generation
81- /// counter to prevent stale uninstalls from wiping a newer sender.
82- type ActiveUpdateSlot = std:: sync:: Arc < Mutex < Option < ( u64 , mpsc:: Sender < SessionUpdate > ) > > > ;
83-
8482pub struct SacpConnection {
8583 /// Connection context for sending requests to the agent.
8684 cx : JrConnectionCx < ClientToAgent > ,
You can’t perform that action at this time.
0 commit comments