Stop client from being state carrier (#10595)

I'd like to make client session wide. This requires shedding all random
state it has to carry.
This commit is contained in:
pakrym-oai authored and GitHub committed 2026-02-04 09:05:37 -08:00
1 parent 49dd67a260
commit 7f20357611
15 files changed
+127 -176

No files matched your search

+1 -1
View File
@@ -66,7 +66,7 @@ impl SessionTask for UserShellCommandTask {
.counter("codex.task.user_shell", 1, &[]);
let event = EventMsg::TurnStarted(TurnStartedEvent {
model_context_window: turn_context.client.get_model_context_window(),
model_context_window: turn_context.model_context_window(),
collaboration_mode_kind: turn_context.collaboration_mode.mode,
});
let session = session.clone_session();