Skip to content

fix(windows): improve Node and npm detection for ACP agents#75

Open
Kwensiu wants to merge 2 commits intoxintaofei:mainfrom
Kwensiu:fix/windows-acp-node-detection
Open

fix(windows): improve Node and npm detection for ACP agents#75
Kwensiu wants to merge 2 commits intoxintaofei:mainfrom
Kwensiu:fix/windows-acp-node-detection

Conversation

@Kwensiu
Copy link
Copy Markdown

@Kwensiu Kwensiu commented Apr 13, 2026

Issue #74

测试通过
Screenshot_2026-04-14_04-42-05

Use npm metadata to detect installed npx agent versions and broaden Windows Node path discovery so ACP status works reliably across nvm, fnm, and scoop setups.
@Kwensiu Kwensiu force-pushed the fix/windows-acp-node-detection branch from 91c2b32 to 581bb86 Compare April 14, 2026 06:45
@xintaofei
Copy link
Copy Markdown
Owner

佬,你这个pr整体方向可以的,但是我发现有两个可疑点:
1、修改了agent检测方式,当前pr使用npm list -g 检测到包,但是这里检测通过后,实际运行时可能还是无法执行,需要确保在运行时环境变量中存在包;
2、另外,这次补的 Node PATH 发现逻辑主要只在桌面模式生效,server 模式没有同样补。

建议:只完善fnm的path发现,不要修改agent检测方式。

@Kwensiu
Copy link
Copy Markdown
Author

Kwensiu commented Apr 14, 2026

请审批,修改后已经多轮 Review 确保符合项目规范,本地测试通过

Screenshot_2026-04-14_23-02-55

@xintaofei
Copy link
Copy Markdown
Owner

辛苦佬了,最好只修改fnm的path发现,不修改其它逻辑,只要把fnm的path环境变量补充进去就可以了,佬可以参照nvm的部分逻辑,可以提一个新的pr,当前pr改动影响不可控,等下个版本再合并佬的新pr。

@Kwensiu
Copy link
Copy Markdown
Author

Kwensiu commented Apr 14, 2026

好,到时重新提一个 PR。如果佬清楚了,有需要的话也可以直接改了,不用等我慢慢磨,PR也可以直接关!

@xintaofei
Copy link
Copy Markdown
Owner

好,到时重新提一个 PR。如果佬清楚了,有需要的话也可以直接改了,不用等我慢慢磨,PR也可以直接关!

佬有时间的话可以帮忙弄一下,我本地没有fnm这些。。。

@Kwensiu
Copy link
Copy Markdown
Author

Kwensiu commented Apr 15, 2026

好,到时重新提一个 PR。如果佬清楚了,有需要的话也可以直接改了,不用等我慢慢磨,PR也可以直接关!

佬有时间的话可以帮忙弄一下,我本地没有fnm这些。。。

打扰了,那我需要开新pr?还是直接force-push?我开了一个新分支,不过也可以移过来继续

那我待会直接迁移过来吧,不开新PR了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants