๐ 'create' tool fails with JSON parsing error (reproducible 4x today)
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.
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
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).
Linked to : https://github.com/github/copilot-cli/issues/758