CommandCodeAI / CommandCodeAI/desktop

[Bug]: ASCII art inside fenced code blocks collapses and loses structure

オープン
#49 コメント 7 件 リアクション 0 件 担当者 1 名 GitHub で見る

@aliarain がすでに取り組んでいます。

2026年9月7日 から。

bug
主要言語
Shell
スター
80
フォーク
2
PR マージ指標
30日以内にマージされた PR はありません

説明

GUI version

0.1.20 Windows (Can not select Windows in OS Toggle :) )

Operating system

Linux (other)

Reproduction steps

Steps to reproduce

  1. Open Command Code desktop alpha.
  2. Ask the model to "Write Code any kind of in Code block".
  3. Receive a fenced code block whose language tag is go and whose body has normal indentation and ~20 to ~50 lines of code.
  4. 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 (go in 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
Image
Safety check
  • I removed credentials and private project information from this report.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。