Skip to content

Conversation

@zhao-oai
Copy link
Collaborator

No description provided.

Copy link
Contributor

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

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.

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

Comment on lines 44 to 45
let system_date = Local::now().format("%Y-%m-%d").to_string();
format!(
Copy link
Contributor

Choose a reason for hiding this comment

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

P1 Badge Avoid midnight-dependent snapshot helper

default_env_context_str now calls Local::now() each time we build the expected XML. The helper is invoked after the HTTP requests have already been recorded, so if a test happens to straddle midnight the real request body will still contain the previous date while this helper formats the new date. That causes the prompt-caching tests to fail nondeterministically once per day. Please capture the system date once (e.g. at test setup time and thread it through) or read it from the recorded request instead of calling Local::now() during the assertion.

Useful? React with 👍 / 👎.

@etraut-openai etraut-openai added the oai-pr PRs posted by Codex team members label Oct 31, 2025
@zhao-oai zhao-oai closed this Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

oai-pr PRs posted by Codex team members

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants