Michael Suchacz
5ccbef037b
refactor(coderd/x/chatd): remove the no-op allowedBehaviorToolNames filter ( #30864 )
...
Removes `allowedBehaviorToolNames`, `allToolNames`, and
`TestAllowedBehaviorToolNames`, and the active-name check they fed in
`appendDynamicTools`.
The check never skipped a tool. `appendDynamicTools` returns early for
Explore mode and plan mode, so at the check, `allowedBehaviorToolNames`
always returned every tool name. A dynamic tool that shares a built-in
tool's name is still dropped with a warning.
Validation: `go test ./coderd/x/chatd/ -run
'Dynamic|AllowedExplore|StopAfterPlan'` passes, and the pre-commit hook
(build, `lint/go`, `lint/go/new-code`) passed.
## Stack
This stack splits #28757 , as requested in review. It moves the code that
prepares a chat turn into one file, `turn_environment.go`, and moves the
tool policy tests from full turns to a table test. chatd behaves as on
`main`, except for the debug log in #30865 .
1. #30864 Remove the no-op `allowedBehaviorToolNames` filter
2. #30865 Log workspace agent lookup errors in turn preparation
3. #30866 Rename `prepareGeneration` to `buildTurnEnvironment`
4. #30867 Cover the turn tool policy at `buildTurnEnvironment`
5. #30868 Remove seven end-to-end tool policy tests
6. #30869 Name the `*Server` receiver `p` in `turn_environment.go`
7. #30870 Move the turn preparation helpers into `turn_environment.go`
> Xum, an AI agent, opened this PR for @ibetitsmike and wrote this
description.
2026-10-16 20:44:13 +00:00
..
2026-07-14 13:50:25 +01:00
2026-10-06 22:50:28 +02:00
2026-09-17 19:26:18 +02:00
2026-09-21 12:26:09 +02:00
2026-08-05 22:41:17 +02:00
2026-10-13 07:57:56 +00:00
2026-09-29 18:46:41 -07:00
2026-10-13 13:49:12 +02:00
2026-10-14 22:39:00 +02:00
2026-09-28 09:25:01 +00:00
2026-10-13 13:49:12 +02:00
2026-10-14 14:00:19 +11:00
2026-10-13 13:49:12 +02:00
2026-10-14 14:55:29 -07:00
2026-07-02 11:22:56 +01:00
2026-10-13 23:03:08 +02:00
2026-08-25 16:57:27 +07:00
2026-07-29 11:39:12 +00:00
2026-08-27 10:22:33 +02:00
2026-08-27 10:22:33 +02:00
2026-09-28 09:25:01 +00:00
2026-10-01 16:42:51 +02:00
2026-10-01 16:42:51 +02:00
2026-10-01 16:42:51 +02:00
2026-10-01 16:42:51 +02:00
2026-10-16 15:40:17 -05:00
2026-10-11 12:10:59 +02:00
2026-10-01 16:40:24 +02:00
2026-10-01 16:40:24 +02:00
2026-10-01 16:40:24 +02:00
2026-09-30 11:53:57 -05:00
2026-10-13 22:57:46 +02:00
2026-10-14 14:00:19 +11:00
2026-08-20 20:54:52 +00:00
2026-09-05 11:39:10 +02:00
2026-10-16 20:44:13 +00:00
2026-09-18 15:24:15 +10:00
2026-10-16 15:40:17 -05:00
2026-10-16 20:44:13 +00:00
2026-05-08 02:07:33 +10:00
2026-07-20 19:49:19 +02:00
2026-09-21 21:28:45 +02:00
2026-10-13 13:49:12 +02:00
2026-10-13 13:49:12 +02:00
2026-08-20 20:54:52 +00:00
2026-08-24 11:20:26 +01:00
2026-10-12 09:53:45 +11:00
2026-09-02 13:38:14 +02:00
2026-09-02 13:38:14 +02:00
2026-09-02 13:38:14 +02:00
2026-09-14 10:51:22 +02:00
2026-09-14 10:51:22 +02:00
2026-08-24 15:36:32 -07:00
2026-10-02 12:58:53 +00:00
2026-10-14 14:55:29 -07:00
2026-10-14 14:55:29 -07:00
2026-05-20 01:37:38 +02:00
2026-04-08 11:54:44 -04:00
2026-04-08 11:54:44 -04:00
2026-10-13 13:49:12 +02:00
2026-09-30 11:53:58 -05:00
2026-08-26 13:33:13 +02:00
2026-10-11 12:10:59 +02:00
2026-10-11 12:10:59 +02:00
2026-10-13 17:13:36 +00:00
2026-06-17 10:20:47 +00:00
2026-10-13 13:49:12 +02:00
2026-10-11 19:57:49 +02:00
2026-10-05 11:47:24 -07:00
2026-08-05 22:41:17 +02:00
2026-10-14 14:00:19 +11:00
2026-10-12 09:53:45 +11:00
2026-09-25 18:51:55 +10:00
2026-10-12 09:53:45 +11:00
2026-09-26 21:39:40 +02:00
2026-06-22 19:26:34 -06:00
2026-10-13 13:49:12 +02:00
2026-08-26 11:57:56 -06:00
2026-10-11 19:57:49 +02:00
2026-10-11 19:57:49 +02:00
2026-06-16 12:35:40 +00:00
2026-08-30 13:09:17 +02:00
2026-09-14 10:51:22 +02:00
2026-08-18 19:12:47 +02:00
2026-10-05 12:52:10 -04:00
2026-10-05 12:52:10 -04:00
2026-10-05 12:52:10 -04:00
2026-09-14 10:51:22 +02:00
2026-10-13 13:49:12 +02:00
2026-10-13 13:49:12 +02:00
2026-10-12 09:53:44 +11:00
2026-10-12 09:53:44 +11:00
2026-09-30 11:53:58 -05:00
2026-09-18 15:22:02 +01:00
2026-09-30 11:53:58 -05:00
2026-10-13 13:49:12 +02:00
2026-10-11 19:57:49 +02:00
2026-10-11 19:57:49 +02:00
2026-10-13 17:13:36 +00:00
2026-07-29 11:39:12 +00:00
2026-09-30 12:20:03 +02:00
2026-10-13 16:45:44 +07:00
2026-10-13 16:45:44 +07:00
2026-09-26 21:39:40 +02:00
2026-10-13 13:49:12 +02:00
2026-10-13 13:49:12 +02:00
2026-10-02 12:58:53 +00:00
2026-10-12 09:53:44 +11:00
2026-09-21 15:58:18 +02:00
2026-09-28 09:25:01 +00:00
2026-09-28 09:25:01 +00:00
2026-10-01 16:42:51 +02:00
2026-07-29 11:39:12 +00:00
2026-09-30 11:53:58 -05:00
2026-09-30 11:53:58 -05:00
2026-09-30 11:53:58 -05:00
2026-07-29 11:39:12 +00:00
2026-09-28 09:25:01 +00:00
2026-09-28 09:25:01 +00:00
2026-10-02 13:02:41 +02:00
2026-10-16 15:40:17 -05:00
2026-10-16 15:40:17 -05:00
2026-06-12 13:33:12 +02:00
2026-06-16 12:35:40 +00:00
2026-06-18 08:28:17 +00:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-10-05 11:47:24 -07:00
2026-06-12 13:33:12 +02:00
2026-09-04 08:55:15 +01:00
2026-06-12 13:33:12 +02:00
2026-10-01 14:10:21 +02:00
2026-09-21 18:20:22 +00:00
2026-07-18 20:45:13 +02:00
2026-10-11 19:57:49 +02:00
2026-07-18 20:45:13 +02:00
2026-10-12 09:53:44 +11:00
2026-09-11 20:17:23 +00:00
2026-09-25 15:30:21 +01:00
2026-07-18 20:45:13 +02:00
2026-10-02 22:36:59 +03:00
2026-10-05 11:47:24 -07:00
2026-06-17 18:29:43 +02:00
2026-10-15 14:39:21 +11:00
2026-09-24 14:02:06 +10:00
2026-10-15 14:39:21 +11:00
2026-10-02 12:58:53 +00:00
2026-09-17 15:09:19 +02:00
2026-09-17 15:09:19 +02:00
2026-09-29 12:23:00 +00:00
2026-08-25 16:57:27 +07:00
2026-09-27 16:38:30 +02:00
2026-09-30 11:53:58 -05:00
2026-09-30 11:53:58 -05:00
2026-10-01 16:42:51 +02:00
2026-10-11 19:57:49 +02:00