makecindy / makecindy/cindy

Shell command tool broken in v0.1.44 - all commands fail with "batch file arguments are invalid"

Open
#2,446 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
2.7k
Forks
395
Avg merge
21h 48m
Merged PRs (30d)
776

Description

**提交人**: 用户0017
**客户端版本**: 0.1.44

---

## 现象
所有 shell 命令都失败,返回错误:`Io(Error { kind: InvalidInput, message: "batch file arguments are invalid" })`

## 复现步骤
1. 打开任意会话
2. 尝试运行任何 shell 命令(如 `echo hello`、`dir`、`node -e "console.log('test')"`)
3. 所有命令返回相同错误

## 期望行为
Shell 命令正常执行。

## 实际行为
每个命令都失败,报错 `batch file arguments are invalid`。

## 复现频率
100% 复现。

## 已尝试
- `echo hello`
- `cmd /c echo hello`
- `cmd.exe /c "echo hello"`
- `powershell -Command "Write-Output 'hello'"`
- `pwsh -Command "Write-Output 'hello'"`
- `node -e "console.log('test')"`
- `python -c "print('hello')"`
- `bash -c "echo hello"`
- `Get-ChildItem`
- `Test-Path C:\`

全部返回相同错误。

## 补充信息
- PowerShell 在 Cindy 外部可以正常使用
- MCP 工具(cindy_helper、cindy_memory)正常工作
- 子代理也无法执行 shell 命令
- 重启 Cindy 无法解决问题
---
**版本区域**: CN
**OS**: win32 x64 (10.0.22621)
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

No file or test is named in the report. Reproduce on win32 x64 with the listed commands, then trace the shell command tool entry point; done means commands execute successfully instead of returning “batch file arguments are invalid”.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, shell
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.