Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

Explain the real workspace security boundary in the UI

David90939ae741dd
diff --git a/src/components/chat/AgentWorkspaceBadge.tsx b/src/components/chat/AgentWorkspaceBadge.tsx
index 7e42cf19..0db4a16f 100644
--- a/src/components/chat/AgentWorkspaceBadge.tsx
+++ b/src/components/chat/AgentWorkspaceBadge.tsx
@@ -53,7 +53,7 @@ export function AgentWorkspaceBadge() {
title={
workspace.kind === 'folder'
? `Agent working in ${workspace.path}. Click to change.`
- : 'Agent working in isolated sandbox. Click to switch to a real folder.'
+ : 'Agent working in a separate folder with a file tool path jail, not a container. Click to change.'
}
className={`flex items-center gap-1 px-1.5 py-0.5 rounded border transition-colors text-[0.55rem] bg-transparent hover:bg-white/5 ${tone}`}
>
diff --git a/src/components/chat/AgentWorkspaceDialog.tsx b/src/components/chat/AgentWorkspaceDialog.tsx
index 1f75064c..a982c81e 100644
--- a/src/components/chat/AgentWorkspaceDialog.tsx
+++ b/src/components/chat/AgentWorkspaceDialog.tsx
@@ -139,9 +139,13 @@ export function AgentWorkspaceDialog({
</h3>
<p className="text-[0.7rem] text-gray-500">
{phase === 'pick'
- ? 'Pick a folder to edit your real files, or use a sandbox to keep this chat isolated. You can change this later.'
+ ? 'Pick a folder to edit your real files, or use a separate workspace for this chat. You can change this later.'
: 'Primary anchors relative paths. Extras give the agent absolute access, perfect for "sync the API in repo-A with the client in repo-B".'}
</p>
+ <p className="text-[0.7rem] text-gray-500" data-testid="workspace-security-boundary">
+ Workspace protection is a folder path jail, not a container or virtual machine.
+ Commands run on this computer. Review tool requests before allowing them.
+ </p>
</div>
{/* Drei Wahlmoeglichkeiten, drei Farben, und keine davon sagt etwas
@@ -155,7 +159,7 @@ export function AgentWorkspaceDialog({
<WorkspaceOption
icon={<Shield size={16} className="text-emerald-500" />}
title="Sandbox"
- body="Isolated workspace under ~/agent-workspace/. Nothing outside it can be touched."
+ body="Separate folder under ~/agent-workspace/, protected by the file tool path jail."
onClick={handleSandbox}
disabled={picking}
/>
diff --git a/src/components/chat/__tests__/workspace-security-copy.test.ts b/src/components/chat/__tests__/workspace-security-copy.test.ts
new file mode 100644
index 00000000..b5aaf3ce
--- /dev/null
+++ b/src/components/chat/__tests__/workspace-security-copy.test.ts
@@ -0,0 +1,19 @@
+// @vitest-environment jsdom
+import { createElement } from 'react'
+import { afterEach, describe, expect, it, vi } from 'vitest'
+import { cleanup, render, screen } from '@testing-library/react'
+import { AgentWorkspaceDialog } from '../AgentWorkspaceDialog'
+
+afterEach(cleanup)
+
+describe('workspace security explanation', () => {
+ it('explains the boundary before a workspace is selected', () => {
+ render(createElement(AgentWorkspaceDialog, {
+ open: true, conversationId: 'security-copy', onChoose: vi.fn(), onClose: vi.fn(),
+ }))
+ const note = screen.getByTestId('workspace-security-boundary')
+ expect(note.textContent).toContain('folder path jail, not a container or virtual machine')
+ expect(note.textContent).toContain('Commands run on this computer')
+ expect(screen.queryByText(/Nothing outside it can be touched/)).toBeNull()
+ })
+})