{"record":{"id":"1b417dcbdef5e79f","repo":"ueberdosis/tiptap","slug":"tiptap-warn-the-provider-passed-to-aiinsertrev","errorCode":null,"errorMessage":"[tiptap warn]: The provider passed to \"AiInsertReveal\" has no awareness, so the AI cannot be identified. Nothing is revealed.","messagePattern":"\\[tiptap warn\\]: The provider passed to \"AiInsertReveal\" has no awareness, so the AI cannot be identified\\. Nothing is revealed\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/ai-toolkit/src/streaming-reveal.ts","lineNumber":243,"sourceCode":"  name: 'aiInsertReveal',\n\n  addOptions() {\n    return {\n      className: 'ai-insert-reveal',\n      durationMs: 550,\n      provider: null,\n    }\n  },\n\n  onCreate() {\n    const { provider, durationMs } = this.options\n\n    if (!provider) {\n      console.warn(\n        '[tiptap warn]: The \"provider\" option is required for \"AiInsertReveal\" to tell the AI apart from other collaborators. Nothing is revealed without it.',\n      )\n    } else if (!provider.awareness) {\n      console.warn(\n        '[tiptap warn]: The provider passed to \"AiInsertReveal\" has no awareness, so the AI cannot be identified. Nothing is revealed.',\n      )\n    }\n\n    if (durationMs <= 0) {\n      console.warn(\n        `[tiptap warn]: \"AiInsertReveal\" needs a positive \"durationMs\" to hold a reveal, got ${durationMs}. Nothing is revealed.`,\n      )\n    }\n  },\n\n  addProseMirrorPlugins() {\n    const { className, durationMs, provider } = this.options\n\n    // Runs in insertion (time) order, so expired entries are always a prefix.\n    const entries: RevealEntry[] = []\n\n    // Never pruned: the AI clears its awareness entry when it stops, and its first","sourceCodeStart":225,"sourceCodeEnd":261,"githubUrl":"https://github.com/ueberdosis/tiptap/blob/496d53afd7e4e3c7424b4749adeff4f45e27ddb0/packages/ai-toolkit/src/streaming-reveal.ts#L225-L261","documentation":"Error \"[tiptap warn]: The provider passed to \"AiInsertReveal\" has no awareness, so the AI cannot be identified. Nothing is revealed.\" thrown in ueberdosis/tiptap.","triggerScenarios":"Thrown at packages/ai-toolkit/src/streaming-reveal.ts:243 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"496d53afd7e4e3c7424b4749adeff4f45e27ddb0","analyzedAt":"2026-08-26T22:41:43.400Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}