[codex] Make turn state replaceable - #27930
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 09cc0ae3f6
ℹ️ 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".
09cc0ae to
5db8ef1
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5db8ef1b57
ℹ️ 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".
c73a2b3 to
c9cf1b5
Compare
c9cf1b5 to
748b8e1
Compare
748b8e1 to
b05a1ff
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b05a1ffb8e
ℹ️ 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 extra_headers: HeaderMap, | ||
| pub compression: Compression, | ||
| pub turn_state: Option<Arc<OnceLock<String>>>, | ||
| pub turn_state: Option<Arc<Mutex<String>>>, |
There was a problem hiding this comment.
Preserve ResponsesOptions source compatibility
Changing this public field from OnceLock to Mutex breaks source compatibility for crates that construct ResponsesOptions or share the documented turn-state handle; those callers now fail to compile. Please preserve a compatible API or stage the external-surface break. guidance
Useful? React with 👍 / 👎.
|
Closing this stack to replace it with one consolidated PR. |
|
Replaced by #27996. |
Summary
Keep opaque turn state scoped to a model client session and allow each response to replace it.
Stack
Coverage