CommandCodeAI / CommandCodeAI/command-code

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

Đang mở
#434 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

p2
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
4k
Fork
350
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách xác định phần xử lý cấu hình cho ~/.commandcode/config.json và điểm vào của giao diện người dùng terminal điều khiển các khối đầu ra của công cụ và nút chuyển đổi Ctrl+O. Thêm hành vi defaultExpandOutput trong khi vẫn giữ mặc định hiện tại là thu gọn, sau đó xác minh rằng đặt nó thành true sẽ khởi động các phiên với các khối thinking và ngữ cảnh được mở rộng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Lĩnh vực
cli
Loại issue
Tính năng
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
55/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.