CommandCodeAI / CommandCodeAI/command-code

Add configuration option to control default expand/collapse state of tool output blocks

未關閉
#434 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

p2
主要語言
沒有語言資料
星號
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 defaultExpandOutput boolean 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

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

先找出 ~/.commandcode/config.json 的設定處理邏輯,以及控制工具輸出區塊和 Ctrl+O 切換的終端 UI 進入點。在保留目前預設折疊狀態的同時,加入 defaultExpandOutput 行為,然後確認將其設定為 true 會以展開 thinking 區塊和內容區塊的狀態啟動工作階段。

由索引模型根據 Issue 內容生成。

評估

領域
cli
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。