From 0ec3159b7029d2d104d8ab70a1201de0dd21bc24 Mon Sep 17 00:00:00 2001 From: jif-oai Date: Fri, 1 May 2026 11:21:02 +0100 Subject: [PATCH] add comment --- codex-rs/core/src/agent/control.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/codex-rs/core/src/agent/control.rs b/codex-rs/core/src/agent/control.rs index 75974aa97e..11391147cc 100644 --- a/codex-rs/core/src/agent/control.rs +++ b/codex-rs/core/src/agent/control.rs @@ -133,6 +133,8 @@ fn keep_forked_rollout_item(item: &RolloutItem) -> bool { /// which keeps the registry scoped to that root thread rather than the entire `ThreadManager`. #[derive(Clone, Default)] pub(crate) struct AgentControl { + /// ID shared by the whole agent control session. This means every sub-agents from a common + /// root share the same session ID. session_id: SessionId, /// Weak handle back to the global thread registry/state. /// This is `Weak` to avoid reference cycles and shadow persistence of the form