Skip to content

Conversation

@aibrahim-oai
Copy link
Collaborator

@aibrahim-oai aibrahim-oai commented Jan 17, 2026

Add optional collaboration_mode to turn start/override paths and assert precedence in integration tests.

@aibrahim-oai
Copy link
Collaborator Author

@codex review

@aibrahim-oai aibrahim-oai changed the title wire collaboration mode in user turn and user input Add collaboration_mode override to turns Jan 17, 2026
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: 05a57fc43e

ℹ️ 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 +2021 to 2030
let collaboration_mode = collaboration_mode.or_else(|| {
Some(CollaborationMode::Custom(Settings {
model: model.clone(),
reasoning_effort: effort,
developer_instructions: None,
}))
});
(
items,
SessionSettingsUpdate {
Copy link
Contributor

Choose a reason for hiding this comment

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

P2 Badge Honor collaboration_mode developer instructions

When collaboration_mode is supplied on Op::UserTurn, the update only writes the collaboration_mode field into SessionSettingsUpdate and never propagates collaboration_mode.settings().developer_instructions into SessionConfiguration.developer_instructions, which is what build_initial_context uses to inject developer messages. As a result, clients that set collaboration_mode with developer_instructions (which the new API doc says should take precedence) will silently lose those instructions and get the old developer prompt instead. Consider mapping the collaboration-mode developer instructions into session settings or otherwise applying them to the turn context.

Useful? React with 👍 / 👎.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

on purpose. future PRs

Comment on lines +1526 to +1528
/// EXPERIMENTAL - set a pre-set collaboration mode.
/// Takes precedence over model, reasoning_effort, and developer instructions if set.
pub collaboration_mode: Option<CollaborationMode>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

❤️

@aibrahim-oai aibrahim-oai merged commit 146d54c into main Jan 17, 2026
32 checks passed
@aibrahim-oai aibrahim-oai deleted the wire/collaboration/mode branch January 17, 2026 05:51
@github-actions github-actions bot locked and limited conversation to collaborators Jan 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants