Repository navigation
Studio: stop silently dropping earlier replies sent as item references - #16694
Conversation
[skip ci]
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ 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". |
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ 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". |
|
Reviewed locally; no changes needed, nothing pushed. Head stays at
Codex confirmation on the current head: #16694 (comment) |
Lyxot
left a comment
There was a problem hiding this comment.
LGTM. Reproduced the dropped-history bug with the real AI SDK request shape; the refusal is consistent with how previous_response_id is handled, and the merge with current main passes the Responses test suites.
Apps built on the Vercel AI SDK's OpenAI provider talk to Studio's Responses endpoint and, by default, send each earlier assistant reply back as a short item reference instead of the reply text. Studio ignored those references without a word, so from the second turn on the model only saw the user's messages. It then answered questions about its own earlier replies by guessing, and nothing told the developer why.
Studio keeps no Responses history, so it cannot look those references up. It now refuses them with the same clear 400 error it already gives for previous_response_id and conversation, saying to send the full conversation history, for example with store set to false. With store set to false the AI SDK sends the earlier replies in full and multi-turn chats work as before.