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:
rhan-oai authored and copyberry committed 2026-08-20 19:52:44 +00:00
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(&params.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(