MiMo-Code icon indicating copy to clipboard operation
MiMo-Code copied to clipboard

fix(tui): GenericTool icon and children missing space

Open cc-claws opened this issue 5 months ago • 0 comments

Description

TUI 中 GenericTool 和 PlanExit 组件渲染时,icon(⚙)和 children 之间缺少空格。

实际显示:

⚙memory [operation=search, query=test, scope=global]
⚙plan_exit

期望显示:

⚙ memory [operation=search, query=test, scope=global]
⚙ plan_exit

根本原因: opentui 的 JSX 实现没有保留表达式之间的空白字符。其他 InlineTool 组件(如 Skill、Glob、Grep 等)不受影响,因为它们的 children 本身包含前导文本(如 "Skill "、"Glob ")。

Steps to reproduce

  1. 启动 MiMo Code v0.1.1
  2. 触发 memory search 工具调用
  3. 观察 TUI 中 ⚙ memory [...] 的显示

MiMoCode version

v0.1.1

Operating System

Windows 11

Terminal

Windows Terminal

cc-claws avatar Jun 23 '26 05:06 cc-claws