copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

🐛 'create' tool fails with JSON parsing error (reproducible 4x today)

Open JuanCS-Dev opened this issue 1 month ago • 2 comments

Bug Description

The create tool fails with JSON parsing errors when creating files with larger content or multiple files in sequence.

Error Message

create: create a new file at undefined.
Expected ',' or '}' after property value in JSON at position 84 (line 1 column 85)

Reproduction

  • Frequency: 4 times in one session (Nov 17, 2025)
  • Context: Creating documentation files
  • File sizes: 1KB-10KB markdown files with code blocks, emojis
  • Pattern: Occurs with larger content or sequential creates

Environment

  • Version: 0.0.358
  • OS: Linux
  • Date: 2025-11-17T17:17:54Z

Workaround

Using bash with HEREDOC works:

cat > file.md << 'EOF'
content here
EOF

Meta Bug! 🤣

This bug occurred AGAIN while trying to create THIS issue! See session log for meta-irony.

Impact

  • Severity: Medium (has workaround)
  • Frequency: ~20% of create attempts in my session
  • User Experience: Confusing error, unclear cause

Request investigation of JSON serialization in create tool parameters.

JuanCS-Dev avatar Nov 17 '25 22:11 JuanCS-Dev