Saikel-Orado-Liu/dsh-coding-agent-preset--packages-dsh-terminal-pwsh ↗★ 1
dsh-terminal-pwsh
Persistent pwsh (PowerShell 7) PTY backend for Windows, mirroring @deepseek-ai/dsh-terminal-bash
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗dsh-terminal-pwsh
A Windows adaptation of @deepseek-ai/dsh-terminal-bash: a persistent pwsh
(PowerShell 7) PTY backend registered into the owner-scoped ctx.terminals
registry. It is consumed by the model-facing pwsh tool from
dsh-tool-pwsh-persistent.
Why not the official bash backend on Windows?
@deepseek-ai/dsh-terminal-bash spawns through ctx.subprocess.spawnTerminal,
whose process inspector is Linux/macOS-only (createProcessInspector throws on
win32). This backend spawns pwsh directly through node-pty (ConPTY on
Windows) and detects readiness without process-group inspection.
Deviations from dsh-terminal-bash
- No OSC 133;D prompt marker (PowerShell/PSReadLine strip it from the prompt
string); readiness matches the sanitized text tail against the controlled
prompt
dsh>, with silence and absolute-timeout fallbacks. - No process-group stdin-wait inspection; sends settle on prompt evidence + idle, inferred-idle silence, or the backend timeout.
- No SIGINT delivery; tool cancellation recovers through its deadline and shell reset.
- Teardown force-terminates the pwsh process tree with
taskkill /T /F. shellPathdefaults to resolvingpwshfrom PATH (node-pty requires an absolute executable path on Windows).- danger-full-access required: ConPTY opens
\\.\pipe\conpty-*named pipes, which the Windows sandbox denies inread-only/workspace-writemodes; a spawn under a confined mode fails with an actionable error. - Any sandbox-mode change rebuilds the shell: ACLs of a running process cannot be changed, so an effective mode switch closes every owner session in the background and the tool respawns under the new mode on the next call.
Config
| Key | Default | Meaning |
|---|---|---|
backendType | shell | Registered PTY backend type. |
shellPath | "" |