MCPcopy Index your code
hub / github.com/coder/coder / SoftDeleteContextFileMessages

Method SoftDeleteContextFileMessages

coderd/database/querier.go:1124–1124  ·  view source on GitHub ↗
(ctx context.Context, chatID uuid.UUID)

Source from the content-addressed store, hash-verified

1122 SoftDeleteChatMessageByID(ctx context.Context, id int64) error
1123 SoftDeleteChatMessagesAfterID(ctx context.Context, arg SoftDeleteChatMessagesAfterIDParams) error
1124 SoftDeleteContextFileMessages(ctx context.Context, chatID uuid.UUID) error
1125 // Marks agents from all prior builds of this workspace as deleted,
1126 // preserving only agents belonging to @current_build_id. Called from
1127 // provisionerdserver when a workspace build completes, after the new

Callers 4

clearAgentChatContextFunction · 0.65
TestChatsMethod · 0.65

Implementers 5

sqlQueriercoderd/database/db.go
queryMetricsStorecoderd/database/dbmetrics/querymetrics
queriercoderd/database/dbauthz/dbauthz.go
MockStorecoderd/database/dbmock/dbmock.go
MockStoreMockRecordercoderd/database/dbmock/dbmock.go

Calls

no outgoing calls

Tested by 1

TestChatsMethod · 0.52