Open History to see the last commit
type KnownCustomEvent =
| SandboxFileCustomEvent
| SandboxFileDiffEvent
| FileChangedEvent
| SessionIdEvent
| CodeModeExecutionStartedEvent
| CodeModeConsoleEvent
| CodeModeExternalCallEvent
| CodeModeExternalResultEvent
| CodeModeExternalErrorEvent
| CodeModeSnippetCallEvent
| CodeModeSnippetResultEvent
| CodeModeSnippetErrorEvent
| SnippetRegisteredEvent
| StructuredOutputStartEvent
| StructuredOutputCompleteEvent
| UIResourceEvent;
Defined in: packages/ai/src/types.ts:1886
Every CUSTOM event TanStack AI itself emits, as a discriminated union on
name. User-emitted custom events (via emitCustomEvent with a custom name)
are intentionally absent — they still flow at runtime.