You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(deepseek): discover user-installed DSH from desktop launches - #1116
This change lets the DeepSeek CLI be found when the app is launched from Finder with the system-default PATH. Reported tests and a device check cover the new behavior, and the change is easy to revert. No merge-blocking risk was identified.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
标题“fix(deepseek): discover user-installed DSH from desktop launches”与变更集直接相关。变更新增 POSIX 常见安装目录(如 ~/.local/bin、/opt/homebrew/bin)用于发现 dsh,并新增用户目录 dsh 发现的测试,目标是修复 macOS 从 Finder 启动时找不到已安装 DSH 的问题。标题简洁、具…
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
Recent review details
Context from checks skipped due to timeout: 8
GitHub Check: CodeRabbit
GitHub Check: Check Linux ARM64
GitHub Check: Web Host tests
GitHub Check: Check ubuntu-22.04
GitHub Check: Vitest
GitHub Check: Check windows-latest
GitHub Check: Check macos-26
GitHub Check: Static checks
Additional context used
Code guidelines: 1
AGENTS.md — auto-discovered
Path-based instructions: 2
Source excerpt: Harness-specific protocol details must remain inside the corresponding Adapter.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
macOS 从 Finder 启动时,CodexHost 可能只拿到系统默认的
PATH。即使dsh已安装在用户目录,已有的 DeepSeek 会话也可能在恢复时显示External Harness is unavailable。沿用 #1091 的发现和启动逻辑。新增 POSIX 常见安装目录作为回退。若
dsh链接到另一套安装且目标旁有可执行的 Node,优先使用该 Node。显式命令仍只解析指定路径,离线npx保留为最终回退。Related issues
Related to #1091.
UI Demo
N/A(启动逻辑变更)。
Test plan
Validated commit: 338ce03
5f71c6af0上新增的两项回归测试均失败,分别覆盖用户目录中的dsh发现和符号链接目标的 Node 优先级。vitest run --config tests/vitest.config.js执行 DeepSeek 的 executable、generation-selector、installation、adapter 和 remote-connection 测试,共 218 项通过。适配器的tsc -b与改动文件的 Prettier 检查通过。PATH下连接真实 DSH 0.2.2-rc.5,状态为ready。Merge Danger
改动范围是 DeepSeek CLI 发现及其子进程的
PATH。可以通过普通 revert 恢复原行为。