{"schemaVersion":1,"id":"2026-11-17-ai-comment-author","status":"draft","source":{"kind":"entry-mdx","path":"apps/www/src/registry/changelog/entries/2026-11-17-ai-comment-author.mdx"},"change":{"type":"source","date":"2026-11-17","commits":[]},"release":{"status":"unresolved"},"kind":"behavior","summary":"Write AI comments and suggestions under the AI's own name","targets":[{"name":"use-chat","files":["apps/www/src/registry/components/editor/use-chat.ts"],"definitionFiles":["apps/www/src/registry/registry-components.ts"],"diagnostics":[]},{"name":"comment","files":["apps/www/src/registry/components/editor/comment.tsx"],"definitionFiles":["apps/www/src/registry/registry-features.ts"],"diagnostics":[]},{"name":"ai-api","files":["apps/www/src/registry/app/api/ai/command/prompt/common.ts","apps/www/src/registry/app/api/ai/command/prompt/getChooseToolPrompt.ts","apps/www/src/registry/app/api/ai/command/prompt/getCommentPrompt.ts","apps/www/src/registry/app/api/ai/command/prompt/getEditPrompt.ts","apps/www/src/registry/app/api/ai/command/prompt/getEditTablePrompt.ts","apps/www/src/registry/app/api/ai/command/prompt/getGeneratePrompt.ts","apps/www/src/registry/app/api/ai/command/route.ts","apps/www/src/registry/app/api/ai/command/utils.ts"],"definitionFiles":["apps/www/src/registry/registry-components.ts"],"diagnostics":[]},{"name":"editor-ai","files":["apps/www/src/registry/blocks/editor-ai/components/editor/rich-text-editor-value.ts","apps/www/src/registry/blocks/editor-ai/components/editor/rich-text-editor.tsx","apps/www/src/registry/blocks/editor-ai/page.tsx"],"definitionFiles":["apps/www/src/registry/registry-blocks.ts"],"diagnostics":[]},{"name":"ai-demo","files":["apps/www/src/registry/examples/ai-demo.tsx","apps/www/src/registry/examples/values/ai-value.tsx"],"definitionFiles":["apps/www/src/registry/registry-examples.ts"],"diagnostics":[]},{"name":"discussion-demo","files":["apps/www/src/registry/examples/discussion-demo.tsx"],"definitionFiles":["apps/www/src/registry/registry-examples.ts"],"diagnostics":[]},{"name":"playground-demo","files":["apps/www/src/registry/examples/playground-demo.tsx"],"definitionFiles":["apps/www/src/registry/registry-examples.ts"],"diagnostics":[]}],"entries":[{"id":"2026-11-17-use-chat-write-ai-comments-suggestions-8bb4a1d5","kind":"behavior","summary":"Write AI comments and suggestions under the AI's own name. `use-chat` exports `aiUser`, sets `authorId: aiUser.id` on `AIChatTransportPlugin`, creates each generated comment as `aiUser` with `data.requestedBy` naming the editor's user and `data.model` naming the model the route streamed with it, and the editor and demos list `aiUser` among the comment users. `comment` lets the user in `requestedBy` resolve, reopen, edit and delete the AI's messages, and resolve and reopen stay with the thread's creator or that requester when its first message is removed.","details":[],"migrationNotes":["List aiUser from use-chat among the CommentsPlugin users so AI comments show its name, and let your mutate adapter accept the AI's ID as an author for the users allowed to run AI."],"targets":["use-chat","comment","ai-api","editor-ai","ai-demo","discussion-demo","playground-demo"],"source":{"line":14,"row":1,"legacyRelease":{"date":"2026-11-17","entry":"2026-11-17-ai-comment-author","section":null}}}],"diagnostics":[]}