feat(ui): rename sandbox to Agent Sandbox and simplify filesystem restriction display

This commit is contained in:
yiling
2026-05-20 14:12:52 +08:00
parent 712b9d4185
commit 578118e437
2 changed files with 4 additions and 17 deletions
@@ -130,20 +130,6 @@ export function SandboxSettings({ teamId }: { teamId: string }) {
<code>/tmp</code> folders. These settings are currently hardcoded for security.
</CardDescription>
</CardHeader>
<CardContent>
<div className="space-y-2">
<div className="flex items-center gap-2 text-sm text-slate-600 dark:text-slate-400">
<div className="w-1.5 h-1.5 rounded-full bg-green-500" />
<span>
Allow Write: <code>.pi</code>, <code>/tmp</code>
</span>
</div>
<div className="flex items-center gap-2 text-sm text-slate-600 dark:text-slate-400">
<div className="w-1.5 h-1.5 rounded-full bg-red-500" />
<span>Deny Read: All other paths</span>
</div>
</div>
</CardContent>
</Card>
</div>
)
+4 -3
View File
@@ -208,7 +208,7 @@ function TeamSettingsPage() {
)}
>
<Shield className="w-5 h-5" />
Sandbox
Agent Sandbox
{activeTab === 'sandbox' && (
<div className="ml-auto w-1.5 h-1.5 rounded-full bg-blue-600 dark:bg-blue-400" />
)}
@@ -227,7 +227,7 @@ function TeamSettingsPage() {
{activeTab === 'skills' && 'Skills Management'}
{activeTab === 'providers' && 'AI Providers'}
{activeTab === 'agents' && 'AI Agents'}
{activeTab === 'sandbox' && 'AI Sandbox Settings'}
{activeTab === 'sandbox' && 'Agent Sandbox Settings'}
</h2>
<p className="text-sm text-slate-500 dark:text-slate-400 mt-1">
{activeTab === 'general' && 'View your personal information and team role.'}
@@ -237,7 +237,8 @@ function TeamSettingsPage() {
{activeTab === 'providers' &&
'Configure AI providers and their models for this team.'}
{activeTab === 'agents' && 'Manage AI agents and their personalities.'}
{activeTab === 'sandbox' && 'Configure security and network restrictions for the AI agent.'}
{activeTab === 'sandbox' &&
'Configure security and network restrictions for the AI agent.'}
</p>
</div>
</div>