Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

nit: comment (#21763)

jif-oaif9bbbafb68df
diff --git a/codex-rs/memories/write/src/runtime.rs b/codex-rs/memories/write/src/runtime.rs
index 53a10934a5..65e3fa1cc1 100644
--- a/codex-rs/memories/write/src/runtime.rs
+++ b/codex-rs/memories/write/src/runtime.rs
@@ -174,7 +174,7 @@ impl MemoryStartupContext {
let session_source = self.thread.config_snapshot().await.session_source;
let model_client = ModelClient::new(
Some(Arc::clone(&self.auth_manager)),
- SessionId::from(self.thread_id),
+ SessionId::from(self.thread_id), // We use thread_id to detach this query from the foreground user session.
self.thread_id,
installation_id,
config.model_provider.clone(),