Skip to content

Commit 9056f1c

Browse files
committed
fix: doc comment indentation for CI clippy\n\n🤖 Generated with [Nori](https://noriagentic.com)\n\nCo-Authored-By: Nori <contact@tilework.tech>
1 parent 84288b3 commit 9056f1c

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎codex-rs/acp/src/connection/sacp_connection.rs‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ use sacp::schema::SetSessionModelRequest;
6666
/// Minimum supported ACP protocol version.
6767
const 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-
8482
pub struct SacpConnection {
8583
/// Connection context for sending requests to the agent.
8684
cx: JrConnectionCx<ClientToAgent>,

0 commit comments

Comments
 (0)