mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-28 12:50:23 +08:00
fix: 桌面可补共享预设,空提示词拦截统一走一处
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
fedda6d338
commit
ed08f0c431
2 files changed
+21
-11
No files matched your search
+2
-1
@@ -734,7 +734,8 @@ export function pathZone(fp) {
|
||||
export function allowTargetPath(fp, surface = detectSurface()) {
|
||||
const zone = pathZone(fp);
|
||||
if (adapterFor(surface) === "desktop") {
|
||||
return zone === "desktop-install" || zone === "desktop-profile";
|
||||
// 桌面只动本机桌面树 + 共享的 $DSH_HOME/.agent-presets,不碰 Web / npm-global。
|
||||
return zone === "desktop-install" || zone === "desktop-profile" || zone === "shared";
|
||||
}
|
||||
return zone !== "desktop-install" && zone !== "desktop-profile";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user