Repository navigation
Replies: 1 comment
|
结论(调用点已验证,RAM 盘 EISDIR 的具体机理未验证):报错来自 Windows ACL 沙箱路径上对临时目录的一次未受保护的 realpath 调用。当系统临时目录恰好是 RAM 盘(z:\Temp)时,这一步在你的环境里抛 EISDIR,pwsh 沙箱因此在启动前失败。这不是"会话级偶发",而是可静态定位的调用链。 源码核对(c291e7961a):
为什么 RAM 盘会 EISDIR(未验证):本机没有 RAM 盘环境无法复现。已知 Windows 上 realpath 依赖 GetFinalPathNameByHandle 打开目录句柄,部分内存盘驱动对目录句柄语义不完整时会失败。需要你的完整 stack trace(dsh-*.error.log)才能确认是否这条链。 你现在能做的:
给上游的建议(一行改动):给 path-boundary.ts:11-14 的 realpathSync.native 加 try/catch,失败时回退为拼写原样(与 roots.ts:30-41 的 canonicalPath 同策略),这样 RAM 盘/特殊卷上的临时目录也能被沙箱接受。 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
我是通过程序将内存划分一部分内存作为虚拟的临时盘,但pwsh在执行时报错,能否改进支持这样的盘的读写呢,提示如下:
Pwsh
Error: EISDIR: illegal operation on a directory, realpath 'z:\Temp'
思考
There's an environment issue with the pwsh tool — EISDIR error on realpath 'z:\Temp'. This seems to be a harness-level sandbox problem with the temp directory. Let me try again — maybe it's transient, or maybe I need to set a different working directory. Let me try with an explicit workdir parameter.
pwsh 沙箱临时目录报错,换一个明确的工作目录重试:
失败
Pwsh
Error: EISDIR: illegal operation on a directory, realpath 'z:\Temp'
思考
The pwsh tool itself is broken in this session (EISDIR on z:\Temp realpath — a harness environment issue, unrelated to my command). I can't run shell commands.
pwsh 工具本身故障(z:\Temp 目录问题,会话级环境问题)。改用 MCP 查找可用的 HTML 渲染工具:
工具调用
ws_mcp_search · html screenshot render browser capture
All reactions