Skip to content

A local-first multi-agent app development platform, built on PenguinHarness

fix(server): the sandbox's unconfined file mode is labelled Full access

lmliheng2430853fcc89
diff --git a/changelog/unreleased/2026-10-13-sandbox-full-access-label.md b/changelog/unreleased/2026-10-13-sandbox-full-access-label.md
new file mode 100644
index 00000000..4eb6c480
--- /dev/null
+++ b/changelog/unreleased/2026-10-13-sandbox-full-access-label.md
@@ -0,0 +1,15 @@
+# The sandbox's unconfined file mode is named Full access
+
+- **Date:** 2026-10-13
+- **Type:** fix
+- **Scope:** `server`
+
+[中文版](2026-10-13-sandbox-full-access-label.zh.md)
+
+Ported from upstream PenguinHarness (#1021, commit `b24f3099`).
+
+In the sandbox settings, the file-write option that confines nothing was labelled "Off (full
+access)" (「关闭(完全访问)」), too long for the option list and a name nothing else used. It is
+now **Full access** (「完全访问」), the name the permission menu and the presets already use. The
+setting's description and the no-backend notice («every mode but Off…» / 「除「关闭」外…») name it
+the same way. Stored values (`danger-full-access`) are unchanged; only the label moved.
diff --git a/changelog/unreleased/2026-10-13-sandbox-full-access-label.zh.md b/changelog/unreleased/2026-10-13-sandbox-full-access-label.zh.md
new file mode 100644
index 00000000..8a9f04c0
--- /dev/null
+++ b/changelog/unreleased/2026-10-13-sandbox-full-access-label.zh.md
@@ -0,0 +1,11 @@
+# 沙盒不加限制的文件写入模式改称「完全访问」
+
+- **Date:** 2026-10-13
+- **Type:** fix
+- **Scope:** `server`
+
+[English](2026-10-13-sandbox-full-access-label.md)
+
+移植自上游 PenguinHarness(#1021,提交 `b24f3099`)。
+
+沙盒设置中不加任何限制的文件写入选项,名称由「关闭(完全访问)」(英文 "Off (full access)")改为 **完全访问**(英文 "Full access")—— 旧名对选项列表来说太长,也没有别处用它;新名正是权限菜单与预设已经在用的那个。该设置的说明与「没有可用沙盒后端」的提示(「除「关闭」外…」)也改用同一个名字。已保存的值(`danger-full-access`)不变,只改了显示名称。
diff --git a/packages/server/src/sandbox/settings-status.ts b/packages/server/src/sandbox/settings-status.ts
index 4ec0eaf5..7e39c11c 100644
--- a/packages/server/src/sandbox/settings-status.ts
+++ b/packages/server/src/sandbox/settings-status.ts
@@ -250,8 +250,8 @@ export class SandboxSettingsStatus {
declined.length === 0 ? "" : `已安装 ${declined.join("、")},但它们适用于其他平台。`;
notices.push({
tone: "attention",
- text: `This deployment has no usable sandbox backend: until one for this platform is installed from the Plugins page, every mode but Off refuses every agent command and hook script.${elsewhere}`,
- textZh: `当前部署没有可用的沙盒后端:在插件页安装适用于本平台的后端之前,除「关闭」外的任何模式都会拒绝 Agent 的每条命令与钩子脚本。${elsewhereZh}`,
+ text: `This deployment has no usable sandbox backend: until one for this platform is installed from the Plugins page, every mode but Full access refuses every agent command and hook script.${elsewhere}`,
+ textZh: `当前部署没有可用的沙盒后端:在插件页安装适用于本平台的后端之前,除「完全访问」外的任何模式都会拒绝 Agent 的每条命令与钩子脚本。${elsewhereZh}`,
});
// With nothing serving, why each installed backend is not in use is the headline.
for (const { name, reason } of sandbox.failures()) {
diff --git a/packages/server/src/sandbox/settings-store.ts b/packages/server/src/sandbox/settings-store.ts
index 0bb1c633..5b02644d 100644
--- a/packages/server/src/sandbox/settings-store.ts
+++ b/packages/server/src/sandbox/settings-store.ts
@@ -109,14 +109,14 @@ export const SANDBOX_GROUP = "sandbox";
title: "Files",
titleZh: "文件",
description:
- "What a confined command may write. Off: anywhere. Workspace: the session's workspace, its scratchpad and the temp directory. Read-only: the temp directory only. Needs a sandbox backend unless Off.",
+ "What a confined command may write. Full access: anywhere. Workspace: the session's workspace, its scratchpad and the temp directory. Read-only: the temp directory only. Needs a sandbox backend unless Full access.",
descriptionZh:
- "被封禁的命令能写哪里。关闭:任何位置。仅工作区:会话的工作区、scratchpad 与临时目录。只读:只有临时目录。除「关闭」外都需要沙盒后端。",
+ "被封禁的命令能写哪里。完全访问:任何位置。仅工作区:会话的工作区、scratchpad 与临时目录。只读:只有临时目录。除「完全访问」外都需要沙盒后端。",
options: [
{
value: "danger-full-access",
- title: "Off (full access)",
- titleZh: "关闭(完全访问)",
+ title: "Full access",
+ titleZh: "完全访问",
description: "Commands and file tools may write anywhere.",
descriptionZh: "命令与文件工具可以写任何位置。",
},
diff --git a/packages/server/test/sandbox-settings.test.ts b/packages/server/test/sandbox-settings.test.ts
index 2adae0a3..d93b1b8d 100644
--- a/packages/server/test/sandbox-settings.test.ts
+++ b/packages/server/test/sandbox-settings.test.ts
@@ -278,7 +278,7 @@ describe("sandbox settings group", () => {
],
[
"attention",
- "This deployment has no usable sandbox backend: until one for this platform is installed from the Plugins page, every mode but Off refuses every agent command and hook script. other-platform is installed, but for another platform.",
+ "This deployment has no usable sandbox backend: until one for this platform is installed from the Plugins page, every mode but Full access refuses every agent command and hook script. other-platform is installed, but for another platform.",
],
["attention", "wrong-backend is not in use: 'bwrap' is missing"],
]);