← Back to AI Insights
Gemini Executive Synthesis

dsh-ops plugin for DSH, specifically its workspace preparation script (`prepare-workspace.ps1`) and underlying JavaScript logic (`lib/workspace-preparation.js`).

Technical Positioning
dsh-ops aims to reduce token usage and task execution time for low-level operations within DSH. The goal is reliable execution of tools (`run_code`, `pwsh`, `bash`) on Windows, which is currently blocked by PowerShell security policies.
SaaS Insight & Market Implications
This issue exposes a critical Windows compatibility flaw in `dsh-ops@0.3.0`, where PowerShell 5.1 execution policies and `PSModulePath` leakage prevent workspace preparation, effectively blocking all command-line tools. The problem stems from `dsh-ops` invoking `prepare-workspace.ps1` via PowerShell 5.1 without explicitly bypassing execution policies, despite the host `pwsh 7` having a `RemoteSigned` policy. This design oversight creates a hard block for Windows users, rendering the plugin unusable out-of-the-box. The failure occurs at a foundational hook stage, indicating a severe architectural misstep in cross-version PowerShell compatibility. This significantly hinders `dsh-ops` adoption on Windows, requiring immediate remediation to ensure basic functionality and prevent user frustration. The reliance on specific PowerShell versions and their default behaviors without explicit handling is a common pitfall in cross-platform tooling.
Proprietary Technical Taxonomy
dsh-ops@0.3.0 Windows (x64) DSH: Desktop profile desktop pwsh: 7.6.6 LocalMachine ExecutionPolicy = RemoteSigned prepare-workspace.ps1 5.1 执行策略拦截

Raw Developer Origin & Technical Request

Source Icon GitHub Issue Oct 14, 2026
Repo: T-Auto/dsh-ops
dsh-ops@0.3.0 Windows 上必现:prepare-workspace.ps1 被 5.1 执行策略拦截,导致所有工具调用在 workspace preparation 阶段失败

环境
OS:Windows(x64)
DSH:Desktop,profile desktop
插件:dsh-ops@0.3.0(官方插件市场安装,纯净包未做任何本地修改)
宿主 pwsh:7.6.6;LocalMachine ExecutionPolicy = RemoteSigned
现象
安装启用后,只要发起会触发工作区准备的调用(run_code / pwsh / bash / pwsh_persistent / bash_persistent),调用会在执行前被中止,报:

代码块

DSH workspace preparation failed (not a user permission denial):
无法加载文件 ...\node_modules\dsh-ops\bin\prepare-workspace.ps1,因为在此系统上禁止运行脚本。
有关详细信息,请参阅 about_Execution_Policies(go.microsoft.com/fwlink/
+ FullyQualifiedErrorId : UnauthorizedAccess
因为失败发生在 tools/execute 钩子阶段,表现不是"某个工具自身报错",而是工具链整体卡住——看起来像模型"停下不动",实际是每次调用都在准备阶段被拦。

复现步骤
Windows 上全新安装 dsh-ops@0.3.0(官方市场,未打任何补丁);
重启 Desktop,任意会话发起一次 pwsh 或 run_code;
必现上述错误。
另外直接对比调用 lib/workspace-preparation.js 导出的 prepareWorkspace():

纯净 0.3.0 → reject,错误信息同上;
手动给子进程加 -ExecutionPolicy Bypass 并清掉 PSModulePath → resolve 成功。
根因
lib/workspace-preparation.js 的 runPreparation() 里,用 Windows PowerShell 5.1 执行插件自带的 prepare-workspace.ps1:

js

const executable = path.join(windows, 'System32/WindowsPowerShell/v1.0/powershell.exe')
const child = spawn(executable, ['-NoProfile', '-NonInteractive', '-File', script,
'-Workspace', root, '-BackupDir', backups], { windowsHide: true, stdio: ['ignore','pipe','pipe'] })
两个从 pwsh 7 宿主继承来的 Windows 5.1 陷阱叠加:

执行策略:pwsh 7 默认 RemoteSigned,但 5.1 在该机器上是受限/未定义,加载 .ps1 直接 UnauthorizedAccess。插件注释里其实已提到需要 Bypass,但 spawn 参数里漏了。
PSModulePath 泄漏:宿主的 pwsh 7 PSModulePath 传入 5.1 子进程后,5.1 无法自动加载自带 inbox 模块,Get-Acl 会报 CommandNotFoundException。
即:...

Developer Debate & Comments

No active discussions extracted for this entry yet.

Adjacent Repository Pain Points

Other highly discussed features and pain points extracted from T-Auto/dsh-ops.

Extracted Positioning
dsh-ops plugin, specifically its native worker component, on HarmonyOS (openharmony-arm64). The core issue is `cap-std`'s `openat2` fast path being blocked by platform `seccomp` policies.
Cross-platform compatibility and native execution of `dsh-ops` on HarmonyOS. The goal is to enable the plugin's worker component to function correctly on this specific ARM64 Linux-based environment, which is currently hindered by security policies and toolchain specifics.
Top Replies
XCxyTianQ • Oct 14, 2026
## 更新:绝对路径后端已实现,四个文件工具在鸿蒙上实测可用 按上面第四节的思路做完了,分支:`feat/openharmony-explicit-worker`(commit `3845adc`,含 `docs/harmonyos.md` 的完整记录与原始输出)。 **做...
XCxyTianQ • Oct 14, 2026
## 更新:批量/结果后端已打通,以及 `ops_batch` 实际效用的实测 ### 1. 端口进展 `feat/ohos-batch-backend` @ `0f3f659`:`paths.rs` / `store.rs` / `batch.rs` / `lib.rs` 改用按平台分派的 `HostDir`(新增...
MakeBlackSheepGreat • Oct 14, 2026
We hit the same SIGSYS-on-openat2 failure on a HarmonyOS PC (HongMeng kernel 1.12.0, aarch64) and traced it further: besides the openat2/SIGSYS blocker there are two more OHOS-specific failures — (...
Extracted Positioning
dsh-ops plugin, specifically its `ops_bash` tool and the underlying `lib/bash-ipc.js` mechanism for MSYS compatibility and security.
Secure and compatible execution of `bash` commands within DSH, particularly in `workspace-write` (restricted) mode. The plugin enforces a strict policy against unverified MSYS DLLs to maintain sandbox integrity.
Extracted Positioning
dsh-ops@0.3.0 plugin within DSH desktop, specifically its workspace preparation mechanism in `workspace-write` mode.
Reliable operation of `dsh-ops` in DSH desktop environments, particularly when operating in a `workspace-write` mode that implies elevated permissions or specific operational contexts. The issue indicates a complete failure of command-class tools under this mode.
Top Replies
zhou18-book • Oct 11, 2026
补充两条正文里没展开的硬证据,以及复现命令。 ## 证据一:桌面端是**代码里主动替换**这一行,不是"配置恰好长这样" `resources/app/lib/profile-hhId3Pkk.js:1098-1108`(DSH Desktop `2.0.17`): ```js cons...
jp20010908 • Oct 11, 2026
## 本机反证:在「不替换行 id」的旧版桌面端上,接管**是生效的** 补充一条对照数据,或可帮助定位 的边界。 **环境对照** | 项 | 本报告者 | 本评论 | |---|---|---| | DSH Desktop | 2.0.17 | **0.2.0-rc.2**...
ljyzww • Oct 12, 2026
补充一组独立的本机复现,供确认影响范围: - Windows x64,DSH Desktop 2.0.17,内核 @deepseek-ai/dsh 0.2.0-rc.2,desktop profile。 - 在 dsh-ops 0.2.6 开启 Shell 组件并手动重启后,日志显示 Shell 组件挂...
Top Replies
surfishs • Oct 13, 2026
同样遇到此问题,并非偶发,建议重点修复。
Limgxo • Oct 13, 2026
排查了一晚上,才到找是插件的问题,通用设置里选择新会话的默认权限模式切换功能也失效,无法切换,关了插件立马就好
milesravencroft • Oct 14, 2026
在宿主已带活跃会话运行时把 dsh-ops 装进 profile(dsh plugin --profile desktop add dsh-ops),5.585 秒后该会话的工具通道即断:所有工具调用在 1–2 毫秒内失败,报 cannot get required service "sessionPr...

Frequently Asked Questions

Market intelligence mapped to dsh-ops plugin for DSH, specifically its workspace preparation script (`prepare-workspace.ps1`) and underlying JavaScript logic (`lib/workspace-preparation.js`)..

What is the technical positioning of dsh-ops plugin for DSH, specifically its workspace preparation script (`prepare-workspace.ps1`) and underlying JavaScript logic (`lib/workspace-preparation.js`).?
Based on our AI analysis of the original developer request, its primary technical positioning is: dsh-ops aims to reduce token usage and task execution time for low-level operations within DSH. The goal is reliable execution of tools (`run_code`, `pwsh`, `bash`) on Windows, which is currently blocked by PowerShell security policies.
What is the general sentiment around dsh-ops plugin for DSH, specifically its workspace preparation script (`prepare-workspace.ps1`) and underlying JavaScript logic (`lib/workspace-preparation.js`).?
Yes, we have tracked 2 direct responses and active debates regarding this specific topic originating from GitHub Issue.
Which technical concepts are associated with dsh-ops plugin for DSH, specifically its workspace preparation script (`prepare-workspace.ps1`) and underlying JavaScript logic (`lib/workspace-preparation.js`).?
Our proprietary extraction maps dsh-ops plugin for DSH, specifically its workspace preparation script (`prepare-workspace.ps1`) and underlying JavaScript logic (`lib/workspace-preparation.js`). to adjacent architectural concepts including dsh-ops@0.3.0, Windows (x64), DSH: Desktop, profile desktop.
How does the GitHub community build with dsh-ops plugin for DSH, specifically its workspace preparation script (`prepare-workspace.ps1`) and underlying JavaScript logic (`lib/workspace-preparation.js`).?
Yes, open-source adoption is correlated. An active project titled 'xiaobright/dsh-anchored-standard' explores similar frameworks: Two-phase DeepSeek Harness preset: Minimal-aligned bootstrap, then full Standard tools (Project2 98/99)

Engagement Signals

2
Replies
open
Issue Status

Cross-Market Term Frequency

Quantifies the cross-market adoption of foundational terms like spawn and dsh-ops@0.3.0 by tracking occurrence frequency across active SaaS architectures and enterprise developer debates.