MCPcopy
hub / github.com/coder/mux / removeEphemeralMessage

Function removeEphemeralMessage

src/browser/stores/WorkspaceStore.ts:4768–4775  ·  view source on GitHub ↗
(workspaceId: string, messageId: string)

Source from the content-addressed store, hash-verified

4766 * Used for dismissing frontend-only messages like /plan output.
4767 */
4768export function removeEphemeralMessage(workspaceId: string, messageId: string): void {
4769 const store = getStoreInstance();
4770 const aggregator = store.getAggregator(workspaceId);
4771 if (aggregator) {
4772 aggregator.removeMessage(messageId);
4773 store.bumpState(workspaceId);
4774 }
4775}
4776
4777/**
4778 * Hook for usage metadata (instant, no tokenization).

Callers 1

Calls 4

getAggregatorMethod · 0.80
removeMessageMethod · 0.80
bumpStateMethod · 0.80
getStoreInstanceFunction · 0.70

Tested by

no test coverage detected