[Bug] Slash command output text not rendering on new lines correctly

Resolved 💬 3 comments Opened Oct 25, 2025 by sachaudh Closed Oct 29, 2025

Bug Description

When a slash command executes and displays content from a markdown file, line breaks between consecutive lines are not being preserved in the rendered output. This causes multiple distinct lines to be concatenated together without proper separation.

Expected behavior

Content with line breaks should maintain those breaks when rendered. For example:

Field1: Value 1
Field2: Value 2
Field3: Value 3

lines get compressed together like:

Field1: Value 1Field2: Value 2Field3: Value 3

Steps to reproduce

  1. Create a slash command file (e.g., .claude/commands/example.md) with content that has multiple consecutive lines
  2. Add the command description in frontmatter
  3. Run the slash command (e.g., /example)
  4. Observe that the output merges lines together instead of preserving line breaks

Environment Info

  • Platform: darwin
  • Terminal: cursor
  • Version: 2.0.27
  • Feedback ID: 03aec67b-3744-4e00-b009-a82406a1cd95

Errors

[{"error":"Error: 1: 1 \n    at Dm8 (file:///Users/sachaudh/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1310:3994)\n    at async Fm8 (file:///Users/sachaudh/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1310:1604)","timestamp":"2025-10-25T16:10:33.789Z"}]

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗