CommandCodeAI / CommandCodeAI/command-code

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

Offen
#434 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

p2
Vorherrschende Sprache
Keine Sprachdaten
Sterne
4k
Forks
350
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, die Konfigurationsverarbeitung für ~/.commandcode/config.json und den Einstiegspunkt der Terminal-UI zu lokalisieren, der die Blöcke der Tool-Ausgabe und den Umschalter Ctrl+O steuert. Füge das Verhalten von defaultExpandOutput hinzu, wobei der aktuelle standardmäßig eingeklappte Zustand erhalten bleibt, und überprüfe anschließend, dass das Setzen auf true Sitzungen mit ausgeklappten Thinking- und Kontextblöcken startet.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Bereich
cli
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
55/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.