Skip to content

Bug: AI outputs lose whitespace and line breaks in both text and SQL #1835

Description

@ZheyuanWU

Chat2DB Version

downloaded on 2026-06-23. Version number is not visible in the Settings/About page, and CFBundleShortVersionString is missing from Info.plist.

Describe the bug

I’m using Chat2DB Desktop with the AI chat / Text-to-SQL feature.

AI-generated outputs sometimes lose whitespace or line breaks. This affects both normal text responses and generated SQL/code.

For normal text responses, the output can become compressed, making headings, paragraphs, and structured explanations hard to read.

Image

For SQL output, the issue is more serious because lost whitespace can concatenate SQL tokens or clauses, making the generated query invalid and causing syntax errors.

Image

Environment:

  • Chat2DB Pro Desktop for macOS
  • Database: MySQL datasource
  • Model: GPT-5.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions