GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: restrict chat project templates by jaaydenh · Pull Request #30754 · coder/coder

Conversation

@jaaydenh

@jaaydenh jaaydenh commented Oct 14, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Lets a chat project define which of its organization's workspace templates its chats may use, plus an optional default template with either a default preset or default parameter values. An empty list means the project's chats get no templates (they rely on MCP servers and skills once projects support them).

  • chat_projects gains template_ids uuid[] (following chats.mcp_server_ids), default_template_id, default_template_version_preset_id, and default_parameters jsonb. CHECK constraints keep the default inside the list and allow a preset or parameters, not both.
  • POST/PATCH /chats/projects accept templates; PATCH replaces the object as a whole and leaves it untouched when omitted. Templates are looked up as the requester and must be in the project's organization, allow agents, and not be deprecated. The default preset must belong to the default template's active version and parameter names must exist on it.
  • Attaching a workspace whose template is outside the list is rejected, at chat creation and on PATCH /chats/{chat} workspace_id. Chats that already have a workspace keep it.
  • Editing stays on chat_project:update (the owner today); project editor roles will extend that check in a later PR.

Stack (merge top to bottom):

  • feat: restrict chat project templates #30754 👈
  • feat(coderd/x/chatd): limit chat template tools to project templates #30755
  • feat(site): pick templates for chat projects #30756
  • feat(site/src): edit chat project templates from the project details #30898

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@jaaydenh
feat(coderd): restrict chat project templates
8570509
Projects store the templates their chats may use and an optional default
template with either a default preset or default parameter values. An
empty list means the project's chats get no templates. Creating a chat
with, or patching a chat to, a workspace whose template is outside the
project's list is rejected; already bound workspaces are unaffected.
@github-actions github-actions Bot assigned jaaydenh Oct 14, 2026
@github-actions

github-actions Bot commented Oct 14, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Docs preview

Check off each page once it's been reviewed. If a page changes in a later push, its checkbox clears automatically so it gets a fresh look. Pages not yet wired into the docs navigation aren't listed here.

  • docs/admin/security/audit-logs.md
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Oct 14, 2026
feat(coderd/x/chatd): limit chat template tools to project templates #30755
Draft
feat(site): pick templates for chat projects #30756
Draft
@jaaydenh

jaaydenh commented Oct 14, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T13:31:21.571779Z 67f7ef1 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Oct 14, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8570509f81

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread coderd/exp_chats.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread codersdk/chats.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

jaaydenh added 3 commits October 14, 2026 15:12
@jaaydenh
fix(site/src/testHelpers): add templates to MockChatProject
ce5a554
@jaaydenh
Merge remote-tracking branch 'origin/main' into chat-project-template…
b0f8d9d
…s/api

# Conflicts:
#	coderd/database/dump.sql
#	coderd/database/models.go
#	coderd/database/queries.sql.go
#	enterprise/audit/table.go
@jaaydenh
fix(coderd): validate chat project default parameter values
f68e904
@jaaydenh

jaaydenh commented Oct 15, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Oct 15, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f68e904cf1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread coderd/chat_projects.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread coderd/chat_projects.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread coderd/exp_chats.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

@jaaydenh
fix(coderd): validate classic parameter defaults only and read the pr…
286c8d6
…oject as system on attach
@jaaydenh

jaaydenh commented Oct 15, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Oct 15, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 286c8d6281

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread coderd/chat_projects.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

@jaaydenh
jaaydenh added this pull request to stack #30892 October 16, 2026 12:17
@jaaydenh
fix(coderd): skip default parameter name checks for dynamic templates
a4d1629
Dynamic parameters can appear based on other values, so the stored
parameter rows cannot tell whether a default name is valid. Only
classic-flow templates are checked; the build validates dynamic
defaults when a workspace is created.
@jaaydenh

jaaydenh commented Oct 16, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Oct 16, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a4d16299ec

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread coderd/chat_projects.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

@jaaydenh jaaydenh mentioned this pull request Oct 16, 2026
feat(site/src): edit chat project templates from the project details #30898
Draft
jaaydenh added 4 commits October 16, 2026 13:16
@jaaydenh
Merge remote-tracking branch 'origin/main' into ws-api
c227468
@jaaydenh
chore(coderd/database/migrations): renumber chat project templates mi…
2d07ce0
…gration to 000627
@jaaydenh
Merge remote-tracking branch 'origin/main' into templates-api-resync
a11375c
# Conflicts:
#	coderd/apidoc/docs.go
#	coderd/apidoc/swagger.json
#	coderd/chat_projects.go
#	coderd/database/queries.sql.go
#	coderd/exp_chats.go
#	codersdk/chats.go
#	docs/reference/api/schemas.md
#	site/src/api/typesGenerated.ts
@jaaydenh
fix(coderd): keep omitted chat project templates on concurrent PATCH
67f7ef1
UpdateChatProjectByID now writes the template columns only when the
request sets templates, so a PATCH that omits them cannot restore the
template list and defaults from its stale project snapshot.
@jaaydenh

jaaydenh commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 67f7ef1322

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jaaydenh
Merge branch 'main' into chat-project-templates/api
9ab7eec
@linear-code

linear-code Bot commented Oct 21, 2026

Copy link
Copy Markdown

CODAGT-1437

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jaaydenh
Merge remote-tracking branch 'origin/main' into resync-tpl-api-v2
b0d9696
@jaaydenh
chore(coderd/database/migrations): renumber chat project templates mi…
e43f233
…gration to 000633
@f0ssel f0ssel mentioned this pull request Oct 26, 2026
docs(docs): add Coder Agents projects page #30684
Merged
f0ssel added a commit that referenced this pull request Oct 28, 2026
@f0ssel
docs(docs): add Coder Agents projects page (#30684)
a135a34
Adds `docs/ai-coder/agents/projects.md`, a short page for Coder Agents
projects, linked under Coder Agents as early access.

The page covers:
- What a project provides.
- Ownership: organization-scoped, private to the creator, 100 per user,
audited.
- Creating, editing, and deleting projects.
- Adding chats to a project: project page, composer picker, **Move to
project**, drag onto a folder, and `PATCH /api/v2/chats/{chat}`.
- Instructions, with a link to the existing Project skills section for
skills.
- Memory: tools, behavior, limits, and the API.

It also links `extending-agents.md#project-skills` to the new page.

The page documents projects as early access with no experiment flag.
Merge it only once `chat-projects` no longer gates the feature. The
memory and skill APIs it mentions still live under `/api/experimental`.

Project sharing is left out until its UI lands (#31246, #31245).

Open PRs that will make parts of this page stale:
- #30683 changes project deletion.
- #30754, #30756, and #30898 add project templates.

> Generated by Coder Agents on behalf of @f0ssel.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

At least 1 approving review is required to merge this pull request.

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@jaaydenh jaaydenh

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@jaaydenh
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.