mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Report clock failures again after recovery (#46006)
## Why With `NonfatalClockReadErrors` enabled, a clock failure after a successful read could be suppressed if an earlier failure had already been reported in the same turn and context window. This left the model without a fresh notice that the clock was unavailable again. ## What changed Clear `last_clock_failure` after a successful clock read so a subsequent outage produces a new notice while consecutive failures remain deduplicated. ## Testing Add a regression test that scripts two failures, a successful read, and another failure within one turn. It verifies that the consecutive failures share one notice, recovery delivers a time reminder, and the later failure adds a new notice. GitOrigin-RevId: f2a9c4d7b63f2e8408a47b1803b0bc4577f23f32
This commit is contained in:
1 parent
43354d0f61
commit
39a99a6c36
2 files changed
+93
-2
No files matched your search
@@ -108,7 +108,11 @@ impl Session {
|
||||
.current_time(self.thread_id)
|
||||
.await
|
||||
{
|
||||
Ok(time) => return Ok(Some(time)),
|
||||
Ok(time) => {
|
||||
let mut state = self.state.lock().await;
|
||||
state.current_time_reminder.last_clock_failure = None;
|
||||
return Ok(Some(time));
|
||||
}
|
||||
Err(error) => error,
|
||||
};
|
||||
if !turn_context
|
||||
|
||||
Reference in new issue
Block a user