# 推出 AI 机器人对话的停靠式编辑器

**URL:** https://meta.discourse.org/t/introducing-a-docked-composer-for-ai-bot-conversations/403327
**Category:** Announcements
**Tags:** composer, ai, ai-bot
**Created:** [2026年五月19日 14:53 UTC](https://meta.discourse.org/t/introducing-a-docked-composer-for-ai-bot-conversations/403327 "2026-05-19T14:53:53Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![keegan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keegan/32/383395_2.png) [@keegan](https://meta.discourse.org/u/keegan)
#### Post date: [2026年五月19日 14:53 UTC](https://meta.discourse.org/t/introducing-a-docked-composer-for-ai-bot-conversations/403327/1 "2026-05-19T14:53:53Z")

</div>

我们正在通过全新的固定式输入框来优化 AI 机器人对话体验，旨在让与机器人的交流更加流畅自然。

以往每次想要继续对话时都需要点击 **回复** 按钮，而现在，输入框会始终显示在话题底部。您可以立即输入下一条消息，使与 AI 机器人的对话更接近连续聊天的体验。

## 变更内容

- 在 AI 机器人对话中显示持久化的输入框
- 无需反复打开回复输入框即可继续对话
- 界面更适用于 AI 对话的来回交互
- 若禁用此变更，原有的输入框体验仍将保留

## 为何进行此项变更

AI 机器人对话通常涉及多个快速跟进的问题。之前的回复流程虽然可用，但给这种来回交流增加了阻碍。

固定式输入框将输入区域保持在触手可及的位置，使对话能够更自然地进行。

## 立即体验

此项变更目前处于即将推出的功能标志之后。

管理员可从以下路径启用：

**管理 → 设置 → 即将推出的功能**

`ai_bot_enable_docked_composer`

## 反馈

请在本话题中分享任何反馈、问题或疑问。我们特别希望了解新输入框在较长的 AI 机器人对话中的实际体验。

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2026年五月28日 21:13 UTC](https://meta.discourse.org/t/introducing-a-docked-composer-for-ai-bot-conversations/403327/2 "2026-05-28T21:13:19Z")

</div>

有没有办法禁用按 Enter 键提交？我绝对讨厌这个功能，而且无法绕过它——它与 Discourse 的其他部分不一致。我只想通过纸飞机图标来提交。

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [2026年五月29日 16:08 UTC](https://meta.discourse.org/t/introducing-a-docked-composer-for-ai-bot-conversations/403327/3 "2026-05-29T16:08:37Z")

</div>

完全一样。我真的很希望这能成为一个可选设置，因为我非常喜欢用完整的句子和段落与我的 AI 交流，而且经常包含代码块。对我来说，这些 AI 对话并不算是聊天。

你确实可以更改聊天偏好设置，以反转默认的 Cmd+Enter 行为。默认情况下，在聊天中按下 Enter 键会提交消息，而按住 Cmd 键再按 Enter 键则会产生换行。但这样一来，当你与他人聊天时，效率就会降低！

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2026年五月29日 20:15 UTC](https://meta.discourse.org/t/introducing-a-docked-composer-for-ai-bot-conversations/403327/4 "2026-05-29T20:15:14Z")

</div>

图片上传在首帖发布后再次失效，因此我已将机器人的设置恢复为常规编辑器。

---

<div class="post-metadata">

### Author: ![putty](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/putty/32/370902_2.png) [@putty](https://meta.discourse.org/u/putty)
#### Post date: [2026年七月1日 17:58 UTC](https://meta.discourse.org/t/introducing-a-docked-composer-for-ai-bot-conversations/403327/5 "2026-07-01T17:58:52Z")

</div>

请问 Meta 在这里禁用该功能有什么特别的原因吗？它之前是启用的，但现在显示的是旧版 **回复** 按钮样式。只是好奇想从源头了解一下背后的考量 🙂

---

<div class="post-metadata">

### Author: ![keegan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keegan/32/383395_2.png) [@keegan](https://meta.discourse.org/u/keegan)
#### Post date: [2026年七月3日 15:47 UTC](https://meta.discourse.org/t/introducing-a-docked-composer-for-ai-bot-conversations/403327/8 "2026-07-03T15:47:27Z")

</div>

没有特别的原因 🙂 看起来这是被团队成员意外关闭的。我们已经重新开启。另外，即将进行的更改现在已经提升到了 `beta` 版本 👍

---

<div class="post-metadata">

### Author: ![nicolsdennis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nicolsdennis/32/545883_2.png) [@nicolsdennis](https://meta.discourse.org/u/nicolsdennis)
#### Post date: [2026年七月4日 10:34 UTC](https://meta.discourse.org/t/introducing-a-docked-composer-for-ai-bot-conversations/403327/9 "2026-07-04T10:34:05Z")

</div>

这对我的平台来说很有价值，可以设置AI机器人对话中回复的最大长度吗？

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [2026年七月24日 02:56 UTC](https://meta.discourse.org/t/introducing-a-docked-composer-for-ai-bot-conversations/403327/10 "2026-07-24T02:56:51Z")

</div>

看来这将是一个永久性的更改：

 ![Screenshot 2026-07-23 at 7.40.13 PM](https://global.discourse-cdn.com/meta/original/4X/0/7/f/07f0447d315bf0d38ab6165fdd77cef7e45e47ec.png)

我今天花了很多时间研究它，并暂时将其禁用。我很欣赏其背后的初衷，即让聊天更高效、更快捷。但这并不适合我。如果非要说，我反而希望界面能让我慢下来！

按下回车键会直接发送我的消息，而不是另起一行。这导致我陷入一种手忙脚乱的境地，拼命试图阻止机器人做出回应。不止一次，我分享了我尚未写完的内容。

在与人工智能互动时，我希望能够深思熟虑、从容不迫，而新的界面并没有鼓励这种行为。

总的来说，我不喜欢还要去学习如何使用第三个编辑器界面。我更喜欢之前的方式，感觉就像是在与机器人进行话题讨论或私聊。

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [2026年七月24日 04:49 UTC](https://meta.discourse.org/t/introducing-a-docked-composer-for-ai-bot-conversations/403327/11 "2026-07-24T04:49:29Z")

</div>

> [@tobiaseigen](#):
>
> 按回车键会发送我的消息，而不是换行。

我觉得聊天的“发送快捷键”用户设置应该是一个全站设置 🤷‍♂️

 ![IMG_3336](https://global.discourse-cdn.com/meta/original/4X/1/8/e/18ee6069a057085efda95888b10eb1a31f3692c5.jpeg)

---

<div class="post-metadata">

### Author: ![one1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/one1/32/493591_2.png) [@one1](https://meta.discourse.org/u/one1)
#### Post date: [2026年七月25日 05:45 UTC](https://meta.discourse.org/t/introducing-a-docked-composer-for-ai-bot-conversations/403327/12 "2026-07-25T05:45:21Z")

</div>

我也非常不喜欢“按回车键发送”这个改动。

我使用官方的 [ask.discourse.org](http://ask.discourse.org) 来解决复杂的故障排查问题，现在这个改动让我抓狂，因为我一直在沿用以前的习惯，结果把事情搞砸了。我甚至无法回去编辑那些我不小心发送的回复。

我能理解这个改动对某些网站来说可能是好事。但在 ask 服务上（顺便说一句，我非常感激这项服务！！！），这真的很烦人。

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [2026年七月25日 06:05 UTC](https://meta.discourse.org/t/introducing-a-docked-composer-for-ai-bot-conversations/403327/13 "2026-07-25T06:05:23Z")

</div>

如果我没记错的话，Shift + Enter 会创建换行符，如果你是在找这个功能的话。不过，这也许应该作为一个用户偏好设置。例如，MS Teams 在发送聊天消息时就有类似的选项。

---

<div class="post-metadata">

### Author: ![one1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/one1/32/493591_2.png) [@one1](https://meta.discourse.org/u/one1)
#### Post date: [2026年七月25日 06:30 UTC](https://meta.discourse.org/t/introducing-a-docked-composer-for-ai-bot-conversations/403327/14 "2026-07-25T06:30:39Z")

</div>

如果我能记住去做，那确实是个权宜之计。但如果我忘了，可就没有任何容错机制了 😔

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2026年七月25日 17:10 UTC](https://meta.discourse.org/t/introducing-a-docked-composer-for-ai-bot-conversations/403327/15 "2026-07-25T17:10:48Z")

</div>

> [@Lilly](#):
>
> 有没有办法禁用按回车键提交的功能？我真的很讨厌这个功能，而且无法绕过它——这与 Discourse 的其他部分不一致。我只希望通过纸飞机图标来提交。

我有一个主题组件修复方案，用于解决 Discourse AI 机器人初始消息中按 Enter 键提交的问题：

> [@Discourse AI 机器人进入按钮修复](https://meta.discourse.org/t/bot-enter-button-fix-for-discourse-ai/408513):
>
> information_source摘要 将 Discourse AI 机器人对话中的 Enter 键恢复为其常规的换行行为hammer_and_wrench仓库 [https://github.com/Lillinator/bot-enter-button-fix.git](https://github.com/Lillinator/bot-enter-button-fix.git)question安装指南 [如何安装主题或主题组件](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682) 安装此主题组件 warning 此组件已弃用，不应再使用。现在在 用户 → 偏好设置 → 界面 中有一个[核心设置](https://meta.discourse.org/t/introducing-a-docked-composer-for-ai-bot-conversations/403327/21)，允许用户开启或关闭此功能。该仓库已归档。 这个简单的主题组件将 Discourse AI 插件中与机器人对话时的帖子消息（非聊天）中烦人的 Enter 键提交行为恢复为默认状态。按下 Enter 键将换行，而向 Discourse AI 机器人提交帖子消息则需要点击/轻触纸飞机图标。 无需任何设置。只需像往常一样安装主题组件，将其添加到所选主题中，然后刷新浏览器即可。 无论是否启用固定式编辑器，此组件均可正常工作。

我可能今天晚些时候会提交一个 PR，该 PR 将添加一个 Discourse AI 管理站点设置，用于开关机器人初始消息提交时 Enter 键的行为。

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2026年七月25日 22:24 UTC](https://meta.discourse.org/t/introducing-a-docked-composer-for-ai-bot-conversations/403327/16 "2026-07-25T22:24:37Z")

</div>

好的，我已经在这里提交了一个 PR，用于添加一个 Discourse AI 管理站点设置：

> <https://github.com/discourse/discourse/pull/42035>
>
> \### What does this PR do?
> Adds a new admin site setting (\`ai\_bot\_composer\_submi…t\_on\_enter\`) to toggle the "Submit on Enter" keystroke behavior in the AI Bot full-page chat UI. 
> 
> \* \*\*Default (\`true\`)\*\*: Maintains the existing ChatGPT-style behavior where pressing \`Enter\` submits the post message and \`Shift+Enter\` creates a new line.
> \* \*\*Toggled (\`false\`)\*\*: Allows the browser to handle the \`insertLineBreak\` event natively. Pressing \`Enter\` creates a new line in the Bot message, perfectly mimicking standard Discourse forum composer behavior. 
> 
> 
> \<img width="80%" height="80%" alt="image" src="https://github.com/user-attachments/assets/2a4e07bd-0091-4f24-8223-cf89be120a59" /\>
> 
> 
> 
> \### Why is this needed?
> The ChatGPT-style submit behaviour directly conflicts with standard Discourse composer muscle-memory. Many forum users rely on the \`Enter\` key for formatting and paragraph breaks, leading to inadvertent and premature message submissions when submitting their post to the AI Bot. 
> 
> While the ChatGPT UI paradigm makes sense for this plugin, this PR provides an escape hatch for communities that heavily prioritize standard forum composer consistency.
> 
> \### Notes:
> \* Note that this change works whether the new docked composer is enabled or not
> \* Because the docked composer will eventually become permanent, the ideal long-term solution for this UX conflict might be a User Preference (similar to the Discourse Chat ‘Send shortcut’ setting) rather than a global site setting. I implemented this as a Site Setting to provide an immediate escape hatch for admins, but I am open to feedback if the team prefers this live as a user preference instead.
> 
> \### Files Touched:
> \* \`plugins/discourse-ai/assets/javascripts/discourse/components/ai-bot-conversations.gjs\`
> \* \`plugins/discourse-ai/assets/javascripts/discourse/components/ai-bot-docked-composer.gjs\`
> \* \`plugins/discourse-ai/config/locales/server.en.yml\`
> \* \`plugins/discourse-ai/config/settings.yml\`
> \* \`plugins/discourse-ai/test/javascripts/acceptance/ai-bot-conversations-test.js\`

 ![Screenshot 2026-07-25 at 3.51.38 PM](https://global.discourse-cdn.com/meta/original/4X/5/b/e/5be438f22fb06d243596b29d11040f521bbc1e50.png)

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2026年七月25日 22:34 UTC](https://meta.discourse.org/t/introducing-a-docked-composer-for-ai-bot-conversations/403327/17 "2026-07-25T22:34:21Z")

</div>

> [@Lilly](#):
>
> 好的，我已经在这里提交了一个 PR，用于添加一个 Discourse AI 管理站点设置：

把它作为用户界面偏好设置会不会更好？

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2026年七月25日 22:39 UTC](https://meta.discourse.org/t/introducing-a-docked-composer-for-ai-bot-conversations/403327/18 "2026-07-25T22:39:49Z")

</div>

我考虑过这个问题，但决定由管理员将其设置为全站范围 🤷🏻‍♀️

让我觉得别扭的是，这个回车功能只影响第一条消息。如果它影响所有消息，那么提供一个用户偏好设置可能更合理。

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2026年七月25日 22:43 UTC](https://meta.discourse.org/t/introducing-a-docked-composer-for-ai-bot-conversations/403327/19 "2026-07-25T22:43:25Z")

</div>

> [@Lilly](#):
>
> 我考虑过这个问题，但决定让管理员将其设为全站范围

所以现在有些 Discourse 论坛是一种设置，有些是另一种设置，我根本记不住哪个论坛是哪种设置 🙂

唉，反正我本来就不跟那个机器人聊天。而且我也一直不明白，为什么它一开始不直接实现为真正的聊天功能。

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2026年七月25日 22:46 UTC](https://meta.discourse.org/t/introducing-a-docked-composer-for-ai-bot-conversations/403327/20 "2026-07-25T22:46:00Z")

</div>

正确的做法是提交一个 PR，增加一个用户偏好设置，以便更改所有消息提交（可能包括非机器人消息）的默认值，而不仅仅是第一条消息——就像聊天设置一样。但我懒得写那么多代码，而且也没人给我付钱 lol 🤑

我可能还应该更新该设置的描述，使其更明确地针对初始帖子消息… 🤔

---

<div class="post-metadata">

### Author: ![keegan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keegan/32/383395_2.png) [@keegan](https://meta.discourse.org/u/keegan)
#### Post date: [2026年七月28日 21:02 UTC](https://meta.discourse.org/t/introducing-a-docked-composer-for-ai-bot-conversations/403327/21 "2026-07-28T21:02:01Z")

</div>

> [@Jagster](#):
>
> 我觉得聊天的“发送快捷键”用户设置应该是一个论坛全局设置 🤷‍♂️

我刚刚合并了一个更新（应该很快会部署到这里），它将发送快捷键移到了核心用户设置中，并在 AI 机器人对话的停靠式编辑器中使用了它。

> <https://github.com/discourse/discourse/pull/42105>
>
> \*\*Previously\*\*, the enter/meta+enter send shortcut was a chat-only preference (\`…chat\_send\_shortcut\`), so chat-style composers in other plugins — like AI bot conversations — always sent on Enter with no way to insert a newline.
> 
> \*\*In this update\*\*, promoted it to a core \`send\_shortcut\` user option on the Interface preferences page, honored by the chat composer, the core docked composer, and AI bot conversations.
> 
> The \`chat\_send\_shortcut\` column is backfilled into \`send\_shortcut\` post-deploy and kept (ignored) for now, mirroring the \`push\_notification\_level\` promotion; the column drop, the serializer compatibility alias removal, and the \`plugin\_manifest.yml\` cleanup land in a follow-up PR.
> 
> | Before | After |
> | --- | --- |
> | !\[before\](https://github.com/discourse/discourse/releases/download/\_gh-attach-assets/before-jmgi09.png) | !\[after\](https://github.com/discourse/discourse/releases/download/\_gh-attach-assets/after-crkznx.png) |

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [2026年八月6日 21:16 UTC](https://meta.discourse.org/t/introducing-a-docked-composer-for-ai-bot-conversations/403327/22 "2026-08-06T21:16:13Z")

</div>

是否可以在 [ask.discourse.com](http://ask.discourse.com) 上使用该偏好设置，而无需手动输入 `/my/preferences/interface`？这感觉是该站点的一个相关设置。

[下一頁](https://meta.discourse.org/t/introducing-a-docked-composer-for-ai-bot-conversations/403327.md?page=2)
