Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
docs(dev-rules): chrome-sandbox 提权前先断开 pnpm store 硬链接 (#253)
zhanghengxd3d358056e51c
diff --git a/docs/dev-rules/environment-setup.md b/docs/dev-rules/environment-setup.mdindex b33817f5fb..94c8f40986 100644--- a/docs/dev-rules/environment-setup.md+++ b/docs/dev-rules/environment-setup.md@@ -41,15 +41,21 @@ SUID sandbox,dev 启动时报`The SUID sandbox helper binary was found, but is not configured correctly`。修复:```bash-sudo chown root:root node_modules/electron/dist/chrome-sandbox-sudo chmod 4755 node_modules/electron/dist/chrome-sandbox+cd node_modules/electron/dist+# 先原位复制一次,断开与 pnpm store 的硬链接——pnpm 的 side-effects cache 会把+# electron postinstall 产物 hardlink 进共享 store,直接 chown/chmod 会把 store 副本+# 一并改成 root+setuid,波及本机其它复用同版本 Electron 的项目/worktree。+cp chrome-sandbox chrome-sandbox.tmp && mv -f chrome-sandbox.tmp chrome-sandbox+sudo chown root:root chrome-sandbox+sudo chmod 4755 chrome-sandbox```注意:-- `node_modules/electron/dist` 由 electron postinstall 解包,**每次重装依赖或 electron- 升版本后该权限都会被重置**,需要重跑上面两条命令(每个 worktree 各自独立)。-- 只做这两条针对性修复;不要放开系统级 user namespace 限制,更不要用 `--no-sandbox`+- `node_modules/electron/dist` 由 electron postinstall 解包/从 store 链接,**每次重装+ 依赖或 electron 升版本后该权限都会被重置**,每个 worktree 需要各自重跑上面的步骤+ (包括断链那一步)。+- 只做上述针对性修复;不要放开系统级 user namespace 限制,更不要用 `--no-sandbox`绕过(违反 Electron 安全边界,参见[`electron-security-and-process-boundaries.md`](electron-security-and-process-boundaries.md))。