CommandCodeAI / CommandCodeAI/desktop

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

未关闭
#49 7 条评论 0 个 reaction 已指派 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. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。