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

Function fileLinkCapWarning

coderd/exp_chats.go:6384–6386  ·  view source on GitHub ↗

fileLinkCapWarning builds a user-facing warning when a batch of file IDs was atomically rejected because the resulting array would exceed the per-chat file cap.

(count int)

Source from the content-addressed store, hash-verified

6382// of file IDs was atomically rejected because the resulting
6383// array would exceed the per-chat file cap.
6384func fileLinkCapWarning(count int) string {
6385 return fmt.Sprintf("file linking skipped: batch of %d file(s) would exceed limit of %d", count, codersdk.MaxChatFileIDs)
6386}
6387
6388// fileLinkErrorWarning builds a user-facing warning when a
6389// database error prevented linking files to a chat.

Callers 3

postChatsMethod · 0.85
postChatMessagesMethod · 0.85
patchChatMessageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected