(workspaceId: string, messageId: string)
| 4766 | * Used for dismissing frontend-only messages like /plan output. |
| 4767 | */ |
| 4768 | export 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). |
no test coverage detected