feat(cli): add --agents-allowed to template commands by ethanndickson · Pull Request #27517 · coder/coder · GitHub
Skip to content

feat(cli): add --agents-allowed to template commands - #27517

Merged
ethanndickson merged 2 commits into
mainfrom
feat-cli-template-agents-allowed
Aug 6, 2026
Merged

feat(cli): add --agents-allowed to template commands#27517
ethanndickson merged 2 commits into
mainfrom
feat-cli-template-agents-allowed

Conversation

@ethanndickson

@ethanndickson ethanndickson commented Jul 27, 2026

Copy link
Copy Markdown
Member

Relates to CODAGT-713

Depends on #27515

This adds --agents-allowed to coder templates create and coder templates edit. Template creation defaults the option to true, matching the per-template API and database default, while template editing only changes the value when the flag is explicitly supplied so unrelated edits preserve the existing setting.

The generated CLI help and reference documentation include the new option. #27518 updates the Coder Agents platform controls documentation to describe the completed per-template model.

@github-actions

github-actions Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

@linear-code

linear-code Bot commented Jul 27, 2026

Copy link
Copy Markdown

CODAGT-713

@ethanndickson
ethanndickson force-pushed the feat-remove-chat-template-allowlist branch from 7590a7a to f90d237 Compare July 27, 2026 10:47
@ethanndickson
ethanndickson force-pushed the feat-cli-template-agents-allowed branch from 3778ff6 to 1566142 Compare July 27, 2026 10:47
@ethanndickson
ethanndickson force-pushed the feat-remove-chat-template-allowlist branch from f90d237 to d1cdd80 Compare August 3, 2026 05:12
@ethanndickson
ethanndickson force-pushed the feat-cli-template-agents-allowed branch 2 times, most recently from 8c4f1a7 to aa24328 Compare August 3, 2026 06:39
@ethanndickson
ethanndickson force-pushed the feat-remove-chat-template-allowlist branch from d1cdd80 to 0e1a0b6 Compare August 3, 2026 06:39
@ethanndickson
ethanndickson force-pushed the feat-cli-template-agents-allowed branch from aa24328 to f0b481e Compare August 3, 2026 08:41
@ethanndickson
ethanndickson force-pushed the feat-remove-chat-template-allowlist branch from 0e1a0b6 to 8acb538 Compare August 3, 2026 08:41
@ethanndickson
ethanndickson force-pushed the feat-cli-template-agents-allowed branch from f0b481e to 16898ca Compare August 4, 2026 04:28
@ethanndickson
ethanndickson force-pushed the feat-remove-chat-template-allowlist branch 2 times, most recently from 0e64d11 to f5a8248 Compare August 4, 2026 06:20
@ethanndickson
ethanndickson force-pushed the feat-cli-template-agents-allowed branch from 16898ca to 6d0c321 Compare August 4, 2026 06:20
@ethanndickson
ethanndickson marked this pull request as ready for review August 4, 2026 06:25
@ethanndickson
ethanndickson force-pushed the feat-cli-template-agents-allowed branch from 6d0c321 to b9dafe7 Compare August 4, 2026 13:54
@ethanndickson
ethanndickson force-pushed the feat-remove-chat-template-allowlist branch 2 times, most recently from 5b7e6f4 to 2852141 Compare August 4, 2026 14:31
@ethanndickson
ethanndickson force-pushed the feat-cli-template-agents-allowed branch 2 times, most recently from 46893dc to 0704aa7 Compare August 4, 2026 15:08
@ethanndickson
ethanndickson force-pushed the feat-remove-chat-template-allowlist branch 2 times, most recently from da532f5 to c445868 Compare August 4, 2026 16:17
@ethanndickson
ethanndickson force-pushed the feat-cli-template-agents-allowed branch from 0704aa7 to 8375534 Compare August 4, 2026 16:17
@ethanndickson
ethanndickson force-pushed the feat-cli-template-agents-allowed branch from 69d0850 to 4907c42 Compare August 5, 2026 05:53
@ethanndickson
ethanndickson force-pushed the feat-remove-chat-template-allowlist branch 2 times, most recently from 388f597 to f1c3f40 Compare August 5, 2026 06:27
@ethanndickson
ethanndickson force-pushed the feat-cli-template-agents-allowed branch 2 times, most recently from 27bbfb0 to cb214a1 Compare August 5, 2026 07:02
@ethanndickson
ethanndickson force-pushed the feat-remove-chat-template-allowlist branch 2 times, most recently from eb7cbdb to a5561c0 Compare August 5, 2026 07:40
@ethanndickson
ethanndickson force-pushed the feat-cli-template-agents-allowed branch from cb214a1 to 05bcec7 Compare August 5, 2026 07:40
@ethanndickson
ethanndickson force-pushed the feat-remove-chat-template-allowlist branch from a5561c0 to e7f74e3 Compare August 5, 2026 08:35
@ethanndickson
ethanndickson force-pushed the feat-cli-template-agents-allowed branch from 05bcec7 to 31eaab0 Compare August 5, 2026 08:35
@ethanndickson
ethanndickson requested a review from johnstcn August 5, 2026 09:26
@ethanndickson
ethanndickson force-pushed the feat-cli-template-agents-allowed branch from 31eaab0 to 3b6242e Compare August 5, 2026 09:50
@ethanndickson
ethanndickson force-pushed the feat-remove-chat-template-allowlist branch from e7f74e3 to a9f28be Compare August 5, 2026 09:50
Comment thread cli/templateedit_test.go
Comment thread cli/templatecreate_test.go Outdated
Comment thread cli/templateedit_test.go Outdated
@ethanndickson
ethanndickson force-pushed the feat-remove-chat-template-allowlist branch from a9f28be to 6d831b3 Compare August 5, 2026 13:24
@ethanndickson
ethanndickson force-pushed the feat-cli-template-agents-allowed branch from 3b6242e to b0af512 Compare August 5, 2026 13:24
@ethanndickson
ethanndickson force-pushed the feat-remove-chat-template-allowlist branch from 6d831b3 to c16f754 Compare August 6, 2026 03:31
@ethanndickson
ethanndickson force-pushed the feat-cli-template-agents-allowed branch 2 times, most recently from a2c28d7 to 4ac5d4d Compare August 6, 2026 03:51
@ethanndickson
ethanndickson force-pushed the feat-remove-chat-template-allowlist branch from c16f754 to ccc4841 Compare August 6, 2026 03:51

ethanndickson commented Aug 6, 2026

Copy link
Copy Markdown
Member Author

ethanndickson added a commit that referenced this pull request Aug 6, 2026
Relates to CODAGT-713

Depends on #27284

This makes the per-template `agents_allowed` field authoritative in the API and chatd. It adds optional create and metadata update fields with the intended default and omission semantics, supports `agents-allowed:` template search, includes the value in telemetry, and makes `list_templates`, `read_template`, and `create_workspace` read the template row directly. Existing-workspace retries remain idempotent, and blocked same-organisation templates return an actionable message.

The experimental `/template-allowlist` routes remain temporarily because the shipped AI Settings page still calls them, but they no longer control chatd enforcement. #27514 moves that page to per-template metadata, #27515 removes the legacy storage, routes, SDK types, and utility, #27517 adds the CLI flags, and #27518 updates the platform controls documentation for the per-template model, directly addressing CRF-5 and CRF-6. The stack is intended to merge as a unit.
@ethanndickson
ethanndickson changed the base branch from feat-remove-chat-template-allowlist to graphite-base/27517 August 6, 2026 04:24
@ethanndickson
ethanndickson changed the base branch from graphite-base/27517 to main August 6, 2026 04:35
@ethanndickson
ethanndickson force-pushed the feat-cli-template-agents-allowed branch from 4ac5d4d to e45e100 Compare August 6, 2026 04:36
@ethanndickson
ethanndickson merged commit 78b5a0f into main Aug 6, 2026
29 checks passed
@ethanndickson
ethanndickson deleted the feat-cli-template-agents-allowed branch August 6, 2026 04:45
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants