openai/codex · error
features.current_time_reminder.clock_source is external…
Error message
features.current_time_reminder.clock_source is external, but no external current-time provider is available
What it means
resolve_time_provider was asked for an External clock source (features.current_time_reminder.clock_source = external) but no external current-time provider was registered in the runtime, so no provider can satisfy the configuration. Returned as an error rather than silently falling back to the system clock.
Solutions
- Provide an external current-time provider, or change features.current_time_reminder.clock_source.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at codex-rs/core/src/current_time.rs:50 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of openai/codex@339751715c (2026-08-25).
Data as JSON: /api/errors/5659dbd8a1f25fea.
Report an issue: GitHub.
Appendix: source
Thrown at codex-rs/core/src/current_time.rs:50
Box::pin(async { Ok(Utc::now()) })
}
fn sleep(&self, _thread_id: ThreadId, duration: Duration) -> SleepFuture<'_> {
Box::pin(async move {
tokio::time::sleep(duration).await;
Ok(())
})
}
}
pub(crate) fn resolve_time_provider(
config: Option<&CurrentTimeReminderConfig>,
external_provider: Option<Arc<dyn TimeProvider>>,
) -> Result<Arc<dyn TimeProvider>> {
match config.map(|config| config.clock_source).unwrap_or_default() {
CurrentTimeSource::System => Ok(Arc::new(SystemTimeProvider)),
CurrentTimeSource::External => external_provider.ok_or_else(|| {
anyhow!(
"features.current_time_reminder.clock_source is external, but no external current-time provider is available"
)
}),
}
}
View on GitHub (pinned to 339751715c)