Skip to content

Conversation

@jif-oai
Copy link
Collaborator

@jif-oai jif-oai commented Jan 9, 2026

No description provided.

@jif-oai jif-oai marked this pull request as draft January 9, 2026 18:57
@jif-oai
Copy link
Collaborator Author

jif-oai commented Jan 9, 2026

@codex review

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.

Reviewed commit: 48502af5a2

ℹ️ 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 2493 to 2497
let err = CodexErr::InvalidImageRequest();
info!("Turn error: {err:#}");
let event = EventMsg::Error(err.to_error_event(None));
sess.send_event(&turn_context, event).await;
break;
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 Sanitize invalid user images before ending the turn

When the model rejects a user‑provided image, this branch reports an error and ends the turn without cleaning the invalid image out of history. Because the failed image remains in the transcript, the next user turn will resend it and trigger InvalidImageRequest again, effectively locking the conversation until the user starts a new session. The previous behavior explicitly replaced the last-turn images to avoid this poisoning; consider still replacing or dropping the invalid images even when you surface the error so the user can recover on the next turn.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants