Skip to content

Add thread/settings/update app-server API#23502

Merged
etraut-openai merged 9 commits into
mainfrom
etraut/thread-settings-update-api
May 20, 2026
Merged

Add thread/settings/update app-server API#23502
etraut-openai merged 9 commits into
mainfrom
etraut/thread-settings-update-api

Conversation

@etraut-openai

@etraut-openai etraut-openai commented May 19, 2026

Copy link
Copy Markdown
Collaborator

Why

App-server clients need a way to update a thread's next-turn settings without starting a turn, adding transcript content, or waiting for turn lifecycle events. This gives settings UI a direct path for durable thread settings while clients observe the eventual effective state through a notification.

This is a simplified rework of PR #22509. In particular, it changes the thread/settings/update api to return immediately rather than waiting and returning the effective (updated) thread settings. This makes the new api consistent with turn/start and greatly reduces the complexity of the implementation relative to the earlier attempt.

What Changed

  • Adds experimental thread/settings/update with partial-update request fields and an empty acknowledgment response.
  • Adds experimental thread/settings/updated, carrying full effective ThreadSettings and scoped by threadId to subscribed clients for the affected thread.
  • Shares durable settings validation with turn/start, including sandboxPolicy plus permissions rejection and serviceTier: null clearing.
  • Emits the same settings notification when turn/start overrides change the stored effective thread settings.
  • Regenerates app-server protocol schema fixtures and updates app-server/README.md.

@etraut-openai

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

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: d0f3b950fc

ℹ️ 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 thread codex-rs/app-server-protocol/src/protocol/common.rs
Comment thread codex-rs/app-server-protocol/src/protocol/v2/thread.rs
Comment thread codex-rs/app-server/tests/suite/v2/thread_settings_update.rs
Comment thread codex-rs/app-server-protocol/src/protocol/v2/thread.rs
Comment thread codex-rs/app-server-protocol/src/protocol/v2/thread.rs
@etraut-openai etraut-openai marked this pull request as ready for review May 19, 2026 21:22
@etraut-openai

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

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: 0169c2f4cc

ℹ️ 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 thread codex-rs/app-server/src/request_processors/turn_processor.rs

@fcoury-oai fcoury-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Codex found one medium severity issue. I smoke tested the happy path and it worked as expected.

Code also looks good so I am approving this and leaving the feedback addressing at your criteria.

@etraut-openai etraut-openai merged commit 771a4e7 into main May 20, 2026
31 checks passed
@etraut-openai etraut-openai deleted the etraut/thread-settings-update-api branch May 20, 2026 18:03
@github-actions github-actions Bot locked and limited conversation to collaborators May 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants