mirror of
https://github.com/openai/codex.git
synced 2026-11-06 08:31:30 +00:00
Thread Guardian cache key through session (#24895)
Split from the Guardian prompt cache key change. This PR only updates codex-rs/core/src/session/session.rs. Validation was not run per request; this branch is expected to rely on the companion split PRs.
This commit is contained in:
1 parent
4e57239cac
commit
4b9eda6ff6
1 file changed
+6
@@ -1034,6 +1034,12 @@ impl Session {
|
|||||||
config.features.enabled(Feature::RuntimeMetrics),
|
config.features.enabled(Feature::RuntimeMetrics),
|
||||||
Self::build_model_client_beta_features_header(config.as_ref()),
|
Self::build_model_client_beta_features_header(config.as_ref()),
|
||||||
attestation_provider,
|
attestation_provider,
|
||||||
|
)
|
||||||
|
.with_prompt_cache_key_override(
|
||||||
|
crate::guardian::prompt_cache_key_override_for_review_session(
|
||||||
|
&session_configuration.session_source,
|
||||||
|
session_configuration.forked_from_thread_id,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
code_mode_service: crate::tools::code_mode::CodeModeService::new(),
|
code_mode_service: crate::tools::code_mode::CodeModeService::new(),
|
||||||
environment_manager,
|
environment_manager,
|
||||||
|
|||||||
Reference in new issue
Block a user