CommandCodeAI / CommandCodeAI/command-code

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

オープン
#434 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

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. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、~/.commandcode/config.json の設定処理と、ツール出力ブロックおよび Ctrl+O の切り替えを制御するターミナル UI のエントリポイントを見つけます。現在の折りたたまれたデフォルトを維持したまま defaultExpandOutput の動作を追加し、それを true に設定すると、thinking ブロックとコンテキストブロックが展開された状態でセッションが開始されることを確認します。

索引モデルが issue の本文から書いたものです。

評価

領域
cli
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
55/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。