CommandCodeAI / CommandCodeAI/command-code

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

Open
#434 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

p2
Dominant language
No language data
Stars
4k
Forks
350
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the configuration handling for ~/.commandcode/config.json and the terminal UI entry point that controls tool output blocks and the Ctrl+O toggle. Add the defaultExpandOutput behavior while preserving the current collapsed default, then verify that setting it to true starts sessions with thinking and context blocks expanded.

Written by the indexing model from the issue text.

Assessment

Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.