目标
移除对以下本地应用的支持(设置抽屉不再可选、native open 不再识别、相关逻辑清理):
- 编辑器:Cursor、Windsurf(保留 VS Code、Zed)
- 终端:Warp(保留 Terminal、iTerm、Ghostty,Windows 保留 Terminal)
影响面(已排查)
后端
前端
src/types.ts:DefaultTerminalApp 去掉 "warp";DefaultEditorApp 去掉 "cursor" / "windsurf"
src/components/SettingsDrawer.tsx:terminalOptions / editorOptions 及 getTerminalOptionsForPlatform 的对应条目
src/schemas/* 与 i18n:如存在对应枚举/文案条目需同步
文档
docs/user-manual.md / docs/user-manual.zh-CN.md:编辑器 / 终端支持表、会话聚焦描述
docs/platform-support.md / docs/platform-support.zh-CN.md:默认编辑器 / 默认终端、设置抽屉可选列表
docs/adr/0004-herdr-session-focus.md 中 Warp 提及
注意
- CLI / macOS 应用名映射:
cursor: cursor、windsurf: windsurf、warp: warp-terminal / warp.exe
- 移除后保留 config 里已有用户的
default_editor_app / default_terminal_app 若指向被移除值时的降级行为,避免启动报错
- 涉及 IPC 契约的变更需跑
make bindings / make bindings-check
验证
- Rust:
make fmt-rust-check、make check、make test-rust
- 前端:
make lint-frontend、make build-frontend、make test-frontend
- 契约:
make bindings-check
- 文档:
git diff --check
目标
移除对以下本地应用的支持(设置抽屉不再可选、native open 不再识别、相关逻辑清理):
影响面(已排查)
后端
src-tauri/src/native_open.rsCURSOR_MAC_APP_NAMES/WINDSURF_MAC_APP_NAMES常量、对应EDITOR_OPTION_DEFINITIONS条目editor_cli_command()中"cursor"/"windsurf"分支TERMINAL_OPTION_DEFINITIONS的"warp"条目terminal_is_supported()各平台匹配串去掉"warp"terminal_is_available()的 Warp 分支linux_terminal_candidates()/windows_terminal_candidates()的"warp"分支windows_warp_program_candidates*()函数editor_cli_mapping_covers_linux_and_windows_editors、windows_*_warp*、native_open_options_*等)src-tauri/src/config.rsEDITOR_APPS中("cursor", ...)/("windsurf", ...)TERMINAL_APPS中("warp", ...)src-tauri/src/terminal_focus.rs"warp"映射与相关测试(Warp 无 AppleScript,本就不支持聚焦;确认一并清理)src-tauri/src/tray.rs中 Warp 相关判断前端
src/types.ts:DefaultTerminalApp去掉"warp";DefaultEditorApp去掉"cursor"/"windsurf"src/components/SettingsDrawer.tsx:terminalOptions/editorOptions及getTerminalOptionsForPlatform的对应条目src/schemas/*与 i18n:如存在对应枚举/文案条目需同步文档
docs/user-manual.md/docs/user-manual.zh-CN.md:编辑器 / 终端支持表、会话聚焦描述docs/platform-support.md/docs/platform-support.zh-CN.md:默认编辑器 / 默认终端、设置抽屉可选列表docs/adr/0004-herdr-session-focus.md中 Warp 提及注意
cursor: cursor、windsurf: windsurf、warp: warp-terminal/warp.exedefault_editor_app/default_terminal_app若指向被移除值时的降级行为,避免启动报错make bindings/make bindings-check验证
make fmt-rust-check、make check、make test-rustmake lint-frontend、make build-frontend、make test-frontendmake bindings-checkgit diff --check