CommandCodeAI / CommandCodeAI/desktop
[Bug]: ASCII art inside fenced code blocks collapses and loses structure
Đang mở
@aliarain đang làm issue này rồi.
Từ ngày 7/9/2026.
bug
- Ngôn ngữ chính
- Shell
- Star
- 80
- Fork
- 2
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
GUI version
0.1.20 Windows (Can not select Windows in OS Toggle :) )
Operating system
Linux (other)
Reproduction steps
Steps to reproduce
- Open Command Code desktop alpha.
- Ask the model to "Write Code any kind of in Code block".
- Receive a fenced code block whose language tag is
goand whose body has normal indentation and ~20 to ~50 lines of code. - Read the rendered message.
Expected behavior
Expected behavior
- Each line of the source stays on its own line.
- Leading whitespace (indentation) is preserved.
- Lines that exceed the available width wrap, scroll, or both, but their structure is not destroyed.
- Syntax highlighting is applied according to the language tag (
goin this case). - The code is clearly copyable, with one logical statement per visible line.
Actual behavior
Actual behavior
- The whole body of the code block renders on a single wrapped line.
- Newlines from the source are missing.
- Indentation is collapsed. Every function body, every block, every nested call appears flush against the previous token, separated by a single space.
- The result looks like prose, not code, e.g.:
Screenshots, recordings, or sanitized logs
Safety check
- I removed credentials and private project information from this report.
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.