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:
Rasmus Rygaard
2026-02-25 11:17:38 -08:00
committed by GitHub
Unverified
parent 648a420cbf
commit 73eaebbd1c
2 changed files with 17 additions and 1 deletions
+4 -1
View File
@@ -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