使用 dsh-bash-encoding 修复 DeepSeek Harness 的 bash 中文乱码

dsh-bash-encoding 是 lhh010 维护的 DSH 宿主侧插件(BSD-3-Clause)。它替换 ctx.bash,自管 spawn 并收集原始字节,自动识别 UTF-16LE、UTF-8、GBK 等编码,修复 Windows + WSL 下 bash 中文乱码。安装:dsh plugin add github:lhh010/dsh-bash-encoding。同一 context 只能有一个 ctx.bash;Windows 原生 pwsh profile 默认停用。

阅读全文