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 2 months 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

Hello, also occurs in my case:

 โœ˜ create: create a new file at undefined.
   Expected ',' or '}' after property value in JSON at position 98 (line 1 column 99)

Version 0.0.361 ยท Commit fdd8f6541

lpetrus-tempest avatar Nov 19 '25 14:11 lpetrus-tempest

Same issue with Copilot plubing 1.5.61-243 in PyCharm. Workaround is to instruct claude 4.5 with "When creating files, only create one file at a time to avoid errors in the create_file tool invocation." - then it does work (after 10+ tries/sessions without that addition where all of them failed).

tokoet avatar Nov 26 '25 15:11 tokoet

Linked to : https://github.com/github/copilot-cli/issues/758

rpanowek avatar Dec 12 '25 17:12 rpanowek