Skip to content

[codex] add clock current-time tool#29011

Merged
rka-oai merged 4 commits into
mainfrom
codex/current-time-tool
Jun 19, 2026
Merged

[codex] add clock current-time tool#29011
rka-oai merged 4 commits into
mainfrom
codex/current-time-tool

Conversation

@rka-oai

@rka-oai rka-oai commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • expose clock.curr_time when current-time reminders are enabled
  • query the session's configured time provider with the calling thread id
  • return the existing UTC reminder text for direct model calls
  • return { "current_time": "YYYY-MM-DD HH:MM:SS UTC" } in Code Mode

Clock lookup failures remain fatal, matching pre-inference reminder behavior.

Testing

  • just test -p codex-core current_time_tool_returns_the_latest_time
  • just test -p codex-core code_mode_current_time_returns_structured_result
  • just fix -p codex-core

@rka-oai rka-oai requested a review from a team as a code owner June 19, 2026 00:58
@rka-oai rka-oai changed the title [codex] add current time inspection tool [codex] add clock current-time tool Jun 19, 2026
@rka-oai rka-oai requested a review from sayan-oai June 19, 2026 01:12
@rka-oai rka-oai enabled auto-merge (squash) June 19, 2026 01:26
@rka-oai rka-oai merged commit 73251b2 into main Jun 19, 2026
45 of 47 checks passed
@rka-oai rka-oai deleted the codex/current-time-tool branch June 19, 2026 01:46
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants