mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
Propagate session ID when compacting (#12802)
We propagate the session ID when sending requests for inference but we don't do the same for compaction requests. This makes it hard to link compaction requests to their session for debugging purposes
This commit is contained in:
committed by
GitHub
Unverified
parent
648a420cbf
commit
73eaebbd1c
@@ -315,7 +315,10 @@ impl ModelClient {
|
||||
instructions: &instructions,
|
||||
};
|
||||
|
||||
let extra_headers = self.build_subagent_headers();
|
||||
let mut extra_headers = self.build_subagent_headers();
|
||||
extra_headers.extend(build_conversation_headers(Some(
|
||||
self.state.conversation_id.to_string(),
|
||||
)));
|
||||
client
|
||||
.compact_input(&payload, extra_headers)
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user