# Discourse AI 机器人进入按钮修复

**URL:** https://meta.discourse.org/t/bot-enter-button-fix-for-discourse-ai/408513
**Category:** Theme component
**Tags:** composer, deprecated, ai, ai-bot
**Created:** [2026年七月25日 16:59 UTC](https://meta.discourse.org/t/bot-enter-button-fix-for-discourse-ai/408513 "2026-07-25T16:59:14Z")
**Posts on this page:** 1
**Showing post:** 1

<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日 16:59 UTC](https://meta.discourse.org/t/bot-enter-button-fix-for-discourse-ai/408513/1 "2026-07-25T16:59:15Z")

</div>

| | | |
| --- | --- | --- |
| ℹ | **摘要** | 将 Discourse AI 机器人对话中的 Enter 键恢复为其常规的换行行为 |
| 🛠 | **仓库** | [https://github.com/Lillinator/bot-enter-button-fix.git](https://github.com/Lillinator/bot-enter-button-fix.git) |
| ❓ | **安装指南** | [如何安装主题或主题组件](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682) |

安装此主题组件

> ⚠ 此组件已弃用，不应再使用。现在在 `用户` → `偏好设置` → `界面` 中有一个[核心设置](https://meta.discourse.org/t/introducing-a-docked-composer-for-ai-bot-conversations/403327/21)，允许用户开启或关闭此功能。该仓库已归档。

这个简单的主题组件将 Discourse AI 插件中与机器人对话时的帖子消息（非聊天）中烦人的 Enter 键提交行为恢复为默认状态。按下 Enter 键将换行，而向 Discourse AI 机器人提交帖子消息则需要点击/轻触纸飞机图标。

无需任何设置。只需像往常一样安装主题组件，将其添加到所选主题中，然后刷新浏览器即可。

无论是否启用固定式编辑器，此组件均可正常工作。

 ![Screenshot 2026-07-25 at 9.52.28 AM](https://global.discourse-cdn.com/meta/original/4X/0/a/8/0a8a36df283bb877066d1adf89a57b0eeade4609.jpeg)

* * *
 **[查看我的其他 Discourse 作品](https://meta.discourse.org/filter?q=category%3Acustomization%20created-by%3ALilly%20order%3Acreated)**

---

_[View the full topic](https://meta.discourse.org/t/bot-enter-button-fix-for-discourse-ai/408513)._
