Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge origin/main into f0ssel/chat-projects
Renumbers the chat projects migrations to 000595/000596 behind main's
000594_drop_task_tables and regenerates database and API artifacts.
  • Loading branch information
f0ssel committed Sep 11, 2026
commit fca955e9502a30f374f8262dc85a028699f1bc83
41 changes: 0 additions & 41 deletions coderd/database/modelmethods.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,47 +171,6 @@ func (w ConnectionLog) RBACObject() rbac.Object {
return obj
}

// TaskTable converts a Task to it's reduced version.
// A more generalized solution is to use json marshaling to
// consistently keep these two structs in sync.
// That would be a lot of overhead, and a more costly unit test is
// written to make sure these match up.
func (t Task) TaskTable() TaskTable {
return TaskTable{
ID: t.ID,
OrganizationID: t.OrganizationID,
OwnerID: t.OwnerID,
Name: t.Name,
DisplayName: t.DisplayName,
WorkspaceID: t.WorkspaceID,
TemplateVersionID: t.TemplateVersionID,
TemplateParameters: t.TemplateParameters,
Prompt: t.Prompt,
CreatedAt: t.CreatedAt,
DeletedAt: t.DeletedAt,
}
}

func (t Task) RBACObject() rbac.Object {
obj := rbac.ResourceTask.
WithID(t.ID).
WithOwner(t.OwnerID.String()).
InOrg(t.OrganizationID)

if rbac.WorkspaceACLDisabled() {
return obj
}

if t.WorkspaceGroupACL != nil {
obj = obj.WithGroupACL(t.WorkspaceGroupACL.RBACACL())
}
if t.WorkspaceUserACL != nil {
obj = obj.WithACLUserList(t.WorkspaceUserACL.RBACACL())
}

return obj
}

func (p ChatProject) RBACObject() rbac.Object {
return rbac.ResourceChatProject.WithID(p.ID).InOrg(p.OrganizationID).WithOwner(p.CreatedBy.String())
}
Expand Down
2 changes: 2 additions & 0 deletions coderd/x/chatd/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,8 @@ The generation goroutine supports:
- chat compaction (automatic and manual, see [Manual compaction](#manual-compaction))
- MCP tools
- project memory tools <!-- TODO(chat-project-memory): document root-chat project memory tools -->
- subagents (`spawn_agent`, `wait_agent`, `message_agent`, `interrupt_agent`, `list_agents`, `list_subagent_models`)
- `close_agent` is a deprecated alias that dispatches to `interrupt_agent`, so historical tool calls in chat history still resolve
- file links
- workspace binding
- plan mode
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.