Ethan
c1af0793e5
feat: add caller-supplied tools kill switch for chats ( #29466 )
...
This is the first PR in a stack that adds experimental support for
attaching MCP servers to a chat when it's created, and then deprecates
`unsafe_dynamic_tools` in favour of them. Both are "caller-supplied
tools", i.e. tools the client hands to coderd at chat creation rather
than tools an admin has configured, so we want a single switch admins
can use to turn all of them off.
This PR adds that switch: `--disable-chat-caller-supplied-tools`
(`CODER_DISABLE_CHAT_CALLER_SUPPLIED_TOOLS`). It follows the existing
`disable-*` deployment flag pattern (`--disable-chat-sharing` etc.), so
there's no new API route and it's independent of any experiment. When
set, `POST /api/v2/chats` returns a `403` if the request includes
`unsafe_dynamic_tools`, and chats that already have dynamic tools run
without them; a call to one gets a tool error result and the model just
continues. Later in the stack, chat-attached MCP servers are gated
behind the same flag.
It's unset by default, so nothing changes unless you opt in.
Part of CODAGT-1131
2026-09-25 18:51:53 +10:00
..
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-09-18 16:47:16 +02:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-09-23 19:42:10 -06:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-09-09 07:34:51 -04:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-09-23 19:42:10 -06:00
2026-08-11 15:22:55 +00:00
2026-08-31 11:35:59 -04:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-24 09:41:21 -05:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-24 09:41:21 -05:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-09-23 19:42:10 -06:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-09-25 18:51:53 +10:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-19 14:46:10 -05:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-09-08 21:45:43 -06:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00