Skip to content

Make clock reads synchronous and remove client clock requests - #61382

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/09479d6eb28453b343dee78b3673092e73ae5d73
Nov 13, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/09479d6eb28453b343dee78b3673092e73ae5d73

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Make clock reads synchronous and remove client clock requests

What changed

  • Make TimeProvider::current_time and CodexThread::current_time synchronous, with clock reads required to avoid yielding or calling back into the session.
  • Remove the experimental currentTime/read app-server request and its client-backed clock and sleep polling implementation.
  • Require a host-provided TimeProvider for external clocks. App-server thread startup now fails when features.current_time_reminder.clock_source = "external" has no provider.

Testing

Add coverage for external provider selection and rejection of app-server thread startup without an external provider.

## What changed

- Make `TimeProvider::current_time` and `CodexThread::current_time` synchronous, with clock reads required to avoid yielding or calling back into the session.
- Remove the experimental `currentTime/read` app-server request and its client-backed clock and sleep polling implementation.
- Require a host-provided `TimeProvider` for external clocks. App-server thread startup now fails when `features.current_time_reminder.clock_source = "external"` has no provider.

## Testing

Add coverage for external provider selection and rejection of app-server thread startup without an external provider.

GitOrigin-RevId: 09479d6eb28453b343dee78b3673092e73ae5d73
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/09479d6eb28453b343dee78b3673092e73ae5d73 branch from 7891601 to 4aac2ea Compare November 13, 2026 21:52
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor
Codex Review Summary: 🔄 Running

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-13T21:52:16.872804Z 7891601 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot merged commit 4aac2ea into main Nov 13, 2026
11 of 18 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/09479d6eb28453b343dee78b3673092e73ae5d73 branch November 13, 2026 21:52
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 13, 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.

1 participant