MCPcopy Create free account
hub / github.com/coder/coder / unrelatedKeys

Function unrelatedKeys

site/src/api/queries/chats.test.ts:842–845  ·  view source on GitHub ↗
(chatId: string)

Source from the content-addressed store, hash-verified

840 /** Keys that should NEVER be invalidated by chat message mutations
841 * because they are completely unrelated to the message flow. */
842 const unrelatedKeys = (chatId: string) => [
843 { label: "diff-contents", key: chatDiffContentsKey(chatId) },
844 { label: "cost-summary", key: chatCostSummaryKey("me", undefined) },
845 ];
846
847 it("createChatMessage does not invalidate unrelated queries", async () => {
848 const queryClient = createTestQueryClient();

Callers 1

chats.test.tsFile · 0.85

Calls 2

chatDiffContentsKeyFunction · 0.90
chatCostSummaryKeyFunction · 0.90

Tested by

no test coverage detected