fix: 桌面可补共享预设,空提示词拦截统一走一处

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
叫我小杨同学andCursor committed 2026-09-20 11:32:16 +08:00
1 parent fedda6d338
commit ed08f0c431
2 files changed
+21 -11

No files matched your search

+2 -1
View File
@@ -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";
}