Skip to content

Conversation

@raziel5746
Copy link
Contributor

@raziel5746 raziel5746 commented Jul 11, 2025

  • Move system prompt from command line args to stdin to avoid Windows' 32,767 character limit
  • Combine system prompt and messages in stdin JSON payload
  • Update tests to verify new stdin behavior
  • Addresses ENAMETOOLONG error when using large system prompts on Windows

Fixes Windows compatibility issue where large system prompts would exceed
CreateProcess API command line length limits, causing Claude Code integration
to fail with ENAMETOOLONG error.


Fixes #1278

- Move system prompt from command line args to stdin to avoid Windows' 32,767 character limit
- Combine system prompt and messages in stdin JSON payload
- Update tests to verify new stdin behavior
- Addresses ENAMETOOLONG error when using large system prompts on Windows

Fixes Windows compatibility issue where large system prompts would exceed
CreateProcess API command line length limits, causing Claude Code integration
to fail with ENAMETOOLONG error.
@kevinvandijk kevinvandijk requested a review from chrarnoldus July 12, 2025 00:09
@changeset-bot
Copy link

changeset-bot bot commented Jul 12, 2025

🦋 Changeset detected

Latest commit: f5bbddf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
kilo-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@chrarnoldus
Copy link
Collaborator

Related: RooCodeInc/Roo-Code#5615

@chrarnoldus
Copy link
Collaborator

Tested to work. Thanks @raziel5746 !

@chrarnoldus chrarnoldus merged commit 31522b8 into Kilo-Org:main Jul 12, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Claude code on windows ENAMETOOLONG

2 participants