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

Function promoteChatQueuedMessage

site/src/api/queries/chats.ts:1364–1373  ·  view source on GitHub ↗
(
	queryClient: QueryClient,
	chatId: string,
)

Source from the content-addressed store, hash-verified

1362});
1363
1364export const promoteChatQueuedMessage = (
1365 queryClient: QueryClient,
1366 chatId: string,
1367) => ({
1368 mutationFn: (queuedMessageId: number) =>
1369 API.experimental.promoteChatQueuedMessage(chatId, queuedMessageId),
1370 onSuccess: () => {
1371 void invalidateChatDebugRuns(queryClient, chatId);
1372 },
1373});
1374
1375export const chatDiffContentsKey = (chatId: string) =>
1376 ["chats", chatId, "diff-contents"] as const;

Callers 2

AgentChatPageFunction · 0.90
chats.test.tsFile · 0.90

Calls 2

invalidateChatDebugRunsFunction · 0.85

Tested by

no test coverage detected