CommandCodeAI / CommandCodeAI/command-code
Add configuration option to control default expand/collapse state of tool output blocks
Nobody has claimed this yet.
- 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
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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