mirror of
https://github.com/openai/codex.git
synced 2026-11-27 15:30:27 +00:00
Add opt-in nonfatal handling for clock read failures (#45825)
## Why Clock provider failures can abort a turn while preparing time context or running clock tools. Allow turns to continue with an explicit indication that the current time is unavailable. ## What changed - Add `features.nonfatal_clock_read_errors`, disabled by default, to report clock failures to the model without failing the turn. - Emit a generic `failed to read current time` notice for context reads and tool errors, without exposing provider error details. Deduplicate context notices per turn and compaction window, and remove inherited notices from forked subagent context. - Omit unavailable environment dates and explicitly clear previously visible dates with `<current_date status="unavailable" />`. - Return external sleep clock failures to the model when the feature is enabled, preserving sleep item completion notifications. ## Testing Add coverage for continued inference after clock failures, notice deduplication across compaction, subagent notice filtering, environment date removal and recovery, and sleep failures during initial and polling reads. GitOrigin-RevId: a39c3723c06a6f786d8ad59d667e8b9f626c973e
This commit is contained in:
1 parent
fac58c1153
commit
5bf132cd52
14 files changed
+367
-48
No files matched your search
@@ -894,6 +894,9 @@
|
||||
"non_prefixed_mcp_tool_names": {
|
||||
"$ref": "#/definitions/FeatureToml_for_NonPrefixedMcpToolNamesConfigToml"
|
||||
},
|
||||
"nonfatal_clock_read_errors": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"omit_app_server_notification_media": {
|
||||
"type": "boolean"
|
||||
},
|
||||
@@ -6531,6 +6534,9 @@
|
||||
"non_prefixed_mcp_tool_names": {
|
||||
"$ref": "#/definitions/FeatureToml_for_NonPrefixedMcpToolNamesConfigToml"
|
||||
},
|
||||
"nonfatal_clock_read_errors": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"omit_app_server_notification_media": {
|
||||
"type": "boolean"
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user