CommandCodeAI / CommandCodeAI/command-code
Add configuration option to control default expand/collapse state of tool output blocks
还没有人认领这个 Issue。
- 主要语言
- 没有语言数据
- 星标
- 4k
- 派生
- 350
- PR 合并指标
- 30 天内没有已合并 PR
描述
Feature Description
Add a configuration option to control whether tool output blocks (thinking blocks, context blocks) are expanded or collapsed by default in the terminal UI.
Currently in v0.26.24+, these blocks are collapsed by default to prevent "streaming flicker" and keep the UI clean. While this is a good default, some users prefer to see the full output without manually toggling with Ctrl+O each time.
Proposed solution:
- Add a
defaultExpandOutputboolean option to~/.commandcode/config.json - Default value:
false(current behavior) - When set to
true, tool output blocks would be expanded by default
Use Case
This would benefit users who:
- Need to see the full AI reasoning/context for debugging or learning purposes
- Work in environments where manually expanding blocks adds friction to their workflow
- Prefer transparency in AI interactions and want to review all outputs
- Are reviewing complex multi-step operations where collapsing hides important context
Additional Context
This is a feature request stemming from the v0.26.24 release which intentionally collapsed these blocks by default. The current workaround is using Ctrl+O to toggle, but a configuration option would provide flexibility without requiring action on every session.
Priority: Important for my workflow
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位 ~/.commandcode/config.json 的配置处理逻辑,以及控制工具输出块和 Ctrl+O 切换的终端 UI 入口点。在保留当前默认折叠状态的同时,添加 defaultExpandOutput 行为,然后验证将其设置为 true 会以展开 thinking 块和上下文块的状态启动会话。
由索引模型根据 Issue 内容生成。
评估
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100