mirror of
https://github.com/openai/codex.git
synced 2026-11-13 14:46:14 +00:00
Enable clock tools for persistent reasoning turns (#40942)
## What changed - Default the current-time reminder and interruptible `clock.sleep` tool on for turns using persistent reasoning effort. - Preserve explicit `features.current_time_reminder` settings and managed requirements, and gate reminder recording on the resolved feature state. ## Testing - Cover configured, persistent, ordinary-effort, explicitly disabled, and managed-disabled clock setups. - Verify review turns do not expose clock tools or current-time reminders. GitOrigin-RevId: 4ff8805807ceeef374abd962b1d9e7c37f1fbd83
This commit is contained in:
1 parent
e0c727de04
commit
0e9a2bae52
4 files changed
+114
-10
No files matched your search
@@ -18,6 +18,7 @@ use codex_protocol::config_types::ShellEnvironmentPolicy;
|
||||
use codex_protocol::models::AdditionalPermissionProfile;
|
||||
use codex_protocol::openai_models::MODEL_SPECIALTY_CYBER;
|
||||
use codex_protocol::openai_models::ModelInfo;
|
||||
use codex_protocol::openai_models::ReasoningEffort;
|
||||
use codex_protocol::permissions::RawFileSystemSandboxPolicy;
|
||||
use codex_protocol::protocol::EnvironmentConfig;
|
||||
use codex_protocol::protocol::EnvironmentConfigState;
|
||||
@@ -725,6 +726,9 @@ impl Session {
|
||||
|
||||
let mut per_turn_config = per_turn_config;
|
||||
super::token_budget::apply_model_defaults(&mut per_turn_config, model_info);
|
||||
if step_settings.reasoning_effort() == Some(&ReasoningEffort::Persistent) {
|
||||
super::time_reminder::apply_persistent_defaults(&mut per_turn_config);
|
||||
}
|
||||
per_turn_config.service_tier = step_settings.service_tier.clone();
|
||||
let permission_profile = environments.permission_profile_or_else(|| {
|
||||
per_turn_config.permissions.effective_permission_profile()
|
||||
|
||||
Reference in new issue
Block a user