From efb7e2aea2834197ab374cb2c8c8d47804924e38 Mon Sep 17 00:00:00 2001 From: hailongzhao Date: Thu, 3 Sep 2026 11:45:30 +0800 Subject: [PATCH] fix(sandbox): drop the unused volume-capability warning from the check result Skills do not use shared volumes yet, so telling the admin a backend cannot mount them is noise after a connectivity check. --- .../components/SandboxConfigEditorDrawer.network.test.mjs | 8 -------- frontend/src/components/SandboxConfigEditorDrawer.vue | 3 --- frontend/src/i18n/locales/en-US.ts | 1 - frontend/src/i18n/locales/ko-KR.ts | 1 - frontend/src/i18n/locales/ru-RU.ts | 1 - frontend/src/i18n/locales/zh-CN.ts | 1 - 6 files changed, 15 deletions(-) diff --git a/frontend/src/components/SandboxConfigEditorDrawer.network.test.mjs b/frontend/src/components/SandboxConfigEditorDrawer.network.test.mjs index 18e4ffc6..3350eb0d 100644 --- a/frontend/src/components/SandboxConfigEditorDrawer.network.test.mjs +++ b/frontend/src/components/SandboxConfigEditorDrawer.network.test.mjs @@ -348,11 +348,3 @@ test('policy-restricted egress does not claim full outbound verification', () => 'policy-restricted copy must win over the full-verification claim', ) }) - -test('volume-incapable backends still have a warning string to show', () => { - assert.match( - source, - /settings\.sandbox\.noVolumeSupport/, - 'SupportsVolumes=false must not render a missing i18n key', - ) -}) diff --git a/frontend/src/components/SandboxConfigEditorDrawer.vue b/frontend/src/components/SandboxConfigEditorDrawer.vue index 4f92a2cc..945bc0e2 100644 --- a/frontend/src/components/SandboxConfigEditorDrawer.vue +++ b/frontend/src/components/SandboxConfigEditorDrawer.vue @@ -723,9 +723,6 @@

{{ $t('settings.sandbox.checkPendingHint', { names: pendingCheckNames.join('、') }) }}

- diff --git a/frontend/src/i18n/locales/en-US.ts b/frontend/src/i18n/locales/en-US.ts index e86a8c2c..e9d5b240 100755 --- a/frontend/src/i18n/locales/en-US.ts +++ b/frontend/src/i18n/locales/en-US.ts @@ -1339,7 +1339,6 @@ export default { checkScopeFull: 'Endpoint, credential, template, in-sandbox execution and outbound network were all verified for real.', checkScopePolicyRestricted: 'Outbound access is restricted by policy, so egress was not probed. Endpoint, credential, template and in-sandbox execution were verified.', checkPendingHint: '{names} can only be confirmed by a full verification, which creates a throwaway sandbox, runs one script and destroys it.', - noVolumeSupport: 'This backend does not support volume mounts; skills relying on a shared volume will be unavailable.', skipReasons: { needs_deep_check: 'Needs full verification', control_plane_unreachable: 'Skipped: control plane unreachable', diff --git a/frontend/src/i18n/locales/ko-KR.ts b/frontend/src/i18n/locales/ko-KR.ts index b64f9f7e..0eb748ae 100755 --- a/frontend/src/i18n/locales/ko-KR.ts +++ b/frontend/src/i18n/locales/ko-KR.ts @@ -5283,7 +5283,6 @@ export default { checkScopeFull: '엔드포인트, 자격 증명, 템플릿, 샌드박스 내 실행, 외부 통신까지 모두 실제로 검증했습니다.', checkScopePolicyRestricted: '네트워크 정책으로 외부 통신이 제한되어 외부 연결은 실제로 확인하지 않았습니다. 엔드포인트, 자격 증명, 템플릿, 샌드박스 내 실행은 검증했습니다.', checkPendingHint: '{names}은(는) 전체 검증으로만 확인할 수 있습니다. 임시 샌드박스를 실제로 만들어 스크립트를 한 번 실행한 뒤 삭제합니다.', - noVolumeSupport: 'This backend does not support volume mounts; skills relying on a shared volume will be unavailable.', skipReasons: { needs_deep_check: '전체 검증 필요', control_plane_unreachable: '컨트롤 플레인에 연결할 수 없어 건너뜀', diff --git a/frontend/src/i18n/locales/ru-RU.ts b/frontend/src/i18n/locales/ru-RU.ts index 3ef570de..2451ff2d 100755 --- a/frontend/src/i18n/locales/ru-RU.ts +++ b/frontend/src/i18n/locales/ru-RU.ts @@ -5283,7 +5283,6 @@ export default { checkScopeFull: 'Эндпоинт, ключ, шаблон, выполнение внутри песочницы и исходящая сеть проверены по-настоящему.', checkScopePolicyRestricted: 'Исходящий доступ ограничен политикой, поэтому исходящая сеть не зондировалась. Эндпоинт, ключ, шаблон и выполнение внутри песочницы проверены.', checkPendingHint: '{names} можно подтвердить только полной проверкой: она создаёт временную песочницу, запускает один скрипт и удаляет её.', - noVolumeSupport: 'This backend does not support volume mounts; skills relying on a shared volume will be unavailable.', skipReasons: { needs_deep_check: 'Нужна полная проверка', control_plane_unreachable: 'Пропущено: плоскость управления недоступна', diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.ts index 51e44e57..8511961e 100755 --- a/frontend/src/i18n/locales/zh-CN.ts +++ b/frontend/src/i18n/locales/zh-CN.ts @@ -5285,7 +5285,6 @@ export default { checkScopeFull: '端点、凭据、模板、沙箱内执行与出网均已真实验证。', checkScopePolicyRestricted: '出网按策略受限,未做真实出网探测;端点、凭据、模板与沙箱内执行已验证。', checkPendingHint: '{names} 需要「完整验证」才能确认:会真实创建一个临时沙箱、执行一次脚本再销毁。', - noVolumeSupport: '该后端不支持挂载卷,依赖共享卷的技能将不可用。', skipReasons: { needs_deep_check: '需完整验证', control_plane_unreachable: '控制面不可达,已跳过',