You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
write and edit tools return spurious 'cmd must not be empty' error despite successful operations #2255
Error: TypeError [ERR_INVALID_ARG_TYPE]: cmd must not be empty
Problem Description
Both write and edit tools consistently return a TypeError [ERR_INVALID_ARG_TYPE]: cmd must not be empty error message, but the actual file operations succeed correctly. This creates confusion as the error suggests failure when operations actually work.
Reproduction Steps
Use write tool to create a new file
Use edit tool to modify an existing file
Both operations return the error but successfully perform the intended file operations
Expected Behavior
Tools should complete successfully without error messages when operations succeed.
Actual Behavior
Operations succeed (files are created/modified correctly)
Error message appears: TypeError [ERR_INVALID_ARG_TYPE]: cmd must not be empty
The symptoms in #1090 are particularly similar - successful file operations accompanied by spurious error messages. Feel free to ignore if none of these address your specific case.
Activity
github-actions commentedon Aug 26, 2025
This issue might be a duplicate of existing issues. Please check:
The symptoms in #1090 are particularly similar - successful file operations accompanied by spurious error messages. Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Aug 26, 2025
@smantzavinos does this only happen when working with certain files or is this a constant thing? What kind of project is this?
rekram1-node commentedon Dec 28, 2025
[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!