Replies: 1 comment
-
|
Noted |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What feature would you like to see?
Add toggle to expand/collapse tool execution details (like Claude Code's Ctrl+O) / 功能请求: 添加展开/折叠工具执行详情的切换功能(类似Claude Code的Ctrl+O)
Problem describe
Currently, when kimi-cli executes commands or tools, the execution details are collapsed or truncated. This makes it difficult to:
View full command output and intermediate results on demand
Keep the interface clean by default while having access to details when needed
Better understand and debug tool execution
Current Behavior
The tool visualization in src/kimi_cli/ui/shell/visualize.py shows:
Tool name and key arguments
Spinner during execution
Final result after completion
Limited subagent tool calls (with truncation)
Desired Behavior
Add keyboard shortcut (e.g., Ctrl+O) to toggle detailed view
Show full stdout/stderr output when expanded
Display intermediate progress and status updates
Allow per-tool-call expansion (not just global toggle)
Note
The current implementation in _ToolCallBlock already tracks tool execution status and results, so the main task will be adding an interactive toggle UI and extending the display logic to show more detailed information upon request. The keyboard binding system in CustomPromptSession already supports custom shortcuts, so adding a new Ctrl+O binding is very straightforward.
问题描述
目前 kimi-cli 在执行命令或工具时,执行详情会被折叠或省略。这导致:
无法验证工具是否正确执行
不清楚工具当前在做什么
难以区分是在执行还是在等待
建议方案
添加交互式切换功能(如 Ctrl+O)来展开/折叠工具执行详情,类似 Claude Code 的行为。这将允许用户:
按需查看完整的命令输出和中间结果
默认保持界面简洁,需要时可查看详情
更好地理解和调试工具执行过程
当前行为
src/kimi_cli/ui/shell/visualize.py 中的工具可视化显示:
工具名称和关键参数
执行期间的加载动画
完成后的最终结果
有限的子代理工具调用(会截断)
期望行为
添加键盘快捷键(如 Ctrl+O)来切换详细视图
展开时显示完整的 stdout/stderr 输出
显示中间进度和状态更新
允许按工具调用单独展开(不仅是全局切换)
注释:
当前在 _ToolCallBlock 中的实现已经跟踪工具执行状态和结果?因此主要工作将是添加交互式切换 UI,并扩展显示逻辑以在请求时显示更详细的信息。CustomPromptSession 中的键盘绑定系统已经支持自定义快捷键,因此添加新的 Ctrl+O 绑定非常直接。
Additional information
Beta Was this translation helpful? Give feedback.
All reactions