Skip to content

[codex] current time reminder interval to be set to 0 - #30029

Merged
rka-oai merged 2 commits into
mainfrom
codex/current-time-reminder-zero
Jun 25, 2026
Merged

[codex] current time reminder interval to be set to 0#30029
rka-oai merged 2 commits into
mainfrom
codex/current-time-reminder-zero

Conversation

@rka-oai

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

Copy link
Copy Markdown
Contributor

A zero interval lets callers request a reminder at every otherwise-eligible inference boundary.

Validation

  • just test -p codex-core load_config_resolves_current_time_reminder

@rka-oai
rka-oai marked this pull request as ready for review June 25, 2026 17:27
@rka-oai
rka-oai requested a review from a team as a code owner June 25, 2026 17:27
@rka-oai rka-oai changed the title [codex] allow zero current time reminder intervals [codex] current time reminder interval to be set to 0 Jun 25, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 070d3d3b2d

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

pub enabled: Option<bool>,
#[serde(skip_serializing_if = "Option::is_none")]
#[schemars(range(min = 1))]
pub reminder_interval_seconds: Option<u64>,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Handle zero reminders without elapsed-time gating

Allowing reminder_interval_seconds to deserialize as 0 here exposes the existing scheduler unchanged: CurrentTimeReminderState::take_reminder_due still requires the newly read clock value to be at least the previous delivery time. When clock_source = "external" (or the system clock) moves backward between inference boundaries, a zero interval will skip reminders until the clock catches up, even though zero is intended to request a reminder at every otherwise-eligible boundary. Special-case 0 as always due after the first check/window change instead of relying on elapsed-time comparison.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

[features.current_time_reminder]
enabled = true
reminder_interval_seconds = 4
reminder_interval_seconds = 0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add integration coverage for zero interval reminders

The new 0 case is only exercised through config deserialization here; the behavior being introduced is agent scheduling/history injection at inference boundaries, but no core/suite/current_time_reminder integration test covers reminder_interval_seconds = 0. That leaves the user-facing guarantee for zero intervals untested through the path that records reminders into model-visible history, contrary to the repo requirement for agent-logic changes; add an integration test that drives multiple inference boundaries with interval 0.

AGENTS.md reference: AGENTS.md:L112-L118

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@rka-oai
rka-oai requested a review from sayan-oai June 25, 2026 18:18
@rka-oai
rka-oai enabled auto-merge (squash) June 25, 2026 18:21
@rka-oai
rka-oai merged commit cc78903 into main Jun 25, 2026
31 checks passed
@rka-oai
rka-oai deleted the codex/current-time-reminder-zero branch June 25, 2026 18:30
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 25, 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