mirror of
https://github.com/openai/codex.git
synced 2026-11-22 07:13:50 +00:00
[core] debounce current-time reminders by elapsed time (#29659)
## Summary - rename `reminder_interval_model_requests` to `reminder_interval_seconds` - read the configured time provider before every model request and inject a reminder only after the configured number of seconds has elapsed - preserve immediate first delivery and forced delivery after compaction changes the context window ## Tests - `just test -p codex-core current_time_reminder`
This commit is contained in:
1 parent
02c326f646
commit
9fe689783d
9 files changed
+60
-38
No files matched your search
@@ -357,7 +357,7 @@ mod tests {
|
||||
features.current_time_reminder,
|
||||
Some(FeatureToml::Config(CurrentTimeReminderConfigToml {
|
||||
enabled: Some(true),
|
||||
reminder_interval_model_requests: Some(1),
|
||||
reminder_interval_seconds: Some(1),
|
||||
clock_source: Some(codex_features::CurrentTimeSource::System),
|
||||
}))
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user