跳到正文
掘金· 德尔塔A·· 17 天前AI 评分67

同一条命令在 Windows 上炸了三种方式:一个 Agent 的 run_command 跨平台适配复盘

同一条命令,在 Windows 上炸了三种方式

AI 导读

作者复盘自己给 Agent 的 run_command 做 Windows 适配时踩到的三类失败:PowerShell 5.1 不认 &&、cp936 造成的双层乱码、以及 powershell.exe 根本不在 PATH。

来源:掘金 · juejin.cn