Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(chat): 恢复 chat 输入框的 bubble menu 以支持清除格式 (MUL-5106) (#5727)

Naiyuan Qing86444231243e
diff --git a/packages/views/chat/components/chat-input.tsx b/packages/views/chat/components/chat-input.tsx
index db006c925a..cd40043014 100644
--- a/packages/views/chat/components/chat-input.tsx
+++ b/packages/views/chat/components/chat-input.tsx
@@ -537,9 +537,13 @@ export function ChatInput({
mentionMode={contextItems ? "context" : "default"}
mentionContextItems={contextItems}
enableSlashCommands
- // Chat is short-form — the floating formatting toolbar is
- // more distraction than feature here.
- showBubbleMenu={false}
+ // The bubble menu carries the only affordance that can strip
+ // formatting — "Normal text" (setParagraph) plus the mark/list
+ // toggles. Once a `# ` input rule or a Markdown/HTML paste turns a
+ // line into a heading, chat has no other way to remove it, so
+ // without the bubble menu formatting can be created but never
+ // undone (MUL-5106).
+ showBubbleMenu
/>
</div>
{(uploadEnabled || leftAdornment) && (