mirror of
https://github.com/openai/codex.git
synced 2026-11-24 23:22:05 +00:00
Reject settings updates for parent-owned subagents (#39792)
## What changed - Apply the existing direct-input restriction to `thread/settings/update` for parent-owned Multi-Agent V2 subagents. - Document the restriction and extend the direct-input test to verify that the request returns an invalid-request error. GitOrigin-RevId: 2eead01c6f54ec637c68573378f3b56a7ee85652
This commit is contained in:
1 parent
aead844f64
commit
010738a25c
3 files changed
+19
-1
No files matched your search
@@ -824,6 +824,8 @@ impl TurnRequestProcessor {
|
||||
params: ThreadSettingsUpdateParams,
|
||||
) -> Result<ThreadSettingsUpdateResponse, JSONRPCErrorError> {
|
||||
let (_, thread) = self.load_thread(¶ms.thread_id).await?;
|
||||
self.ensure_direct_input_allowed(request_id, thread.as_ref())
|
||||
.await?;
|
||||
let cwd = resolve_request_cwd(params.cwd)?;
|
||||
let environments = self
|
||||
.build_environment_override(
|
||||
|
||||
Reference in new issue
Block a user