Conversation
1546450 to
50877ee
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 50877ee692
ℹ️ 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".
50877ee to
e5d5aa8
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
codex/codex-rs/core/src/client.rs
Lines 402 to 405 in e5d5aa8
compact_conversation_history sends prompt.get_formatted_input() (which can contain inline images) to /responses/compact, but errors are only map_api_error-mapped and returned. Unlike streaming paths, this method never calls record_upstream_inline_image_request_limit_observation, so upstream byte/count-limit rejections are not counted in codex.responses.inline_image_limit.
ℹ️ 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".
e5d5aa8 to
f9d681d
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f9d681d7c3
ℹ️ 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".
ea904b2 to
5905fbc
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
5905fbc to
7a79e98
Compare
1ab1f71 to
01e2694
Compare
git-stack-id: fjord/original_image_size_warn-sync---4i5oof0m2upvfe git-stack-title: Log upstream inline image limit rejections
01e2694 to
0771a56
Compare
Summary
Add observability for upstream inline image limit rejections.
This change detects Responses API bad requests that look like inline image byte-limit or image-count-limit failures, logs them with structured fields, and records a Statsig-backed counter so we can monitor how often this is happening before the graceful local handling lands.
Changes
inline_image_request_limit_bad_request_observation(...)incore/src/api_bridge.rsto recognize upstream bad-request copy for:map_api_error(...)for those upstream rejections, including:bytes_exceededimages_exceededresponse_statusresponse_bodycore/src/client.rswhen an upstream request is rejected for an inline image limit:codex.responses.inline_image_limitupstream_rejectedbytes_exceeded,images_exceededcore/src/api_bridge_tests.rscore/src/client_tests.rsgit stack
1Log upstream inline image limit rejections #158882Handle inline image request caps gracefully #155693Add inline image limit observability #15887