Your own team of AI bots in one self-hosted binary: spaces, every account you have, handoffs, approvals and routines. Open-source, self-hosted alternative to Grok Bot, Claude Duet and OpenAI dots. Rust + React.
Rust ai-agentsai-assistantai-botautomationbotbots-teamchatbotclaude-duetgrokgrok-botgrok-bot-alternativeharnessllmmulti-agentopenai-dotsopenbotpersonal-agentrustself-hostedselfhosted-ai
0.8.0 F: grey queued chip, lasting stale-restore message, key protection wording (#460)
Oleksandr Ivanchenko5ca465e56c19
diff --git a/frontend/src/claudeVm.ts b/frontend/src/claudeVm.tsindex 5634a543..fc8b2e76 100644--- a/frontend/src/claudeVm.ts+++ b/frontend/src/claudeVm.ts@@ -26,7 +26,10 @@ export interface ClaudeVm {agents: Partial<Record<AgentEngine, AgentVmState>>;}-export const SETTING_NAME = 'Run Claude inside the VM';+/** The switch label (Mira's release-080/designs/vm-naming.md; called Run Claude inside the VM in 0.7.7). */+export const SETTING_NAME = 'Protect your keys from tricked Claude bots';+/** The setting's name inside a sentence: "Turn off key protection". */+export const SETTING_HANDLE = 'key protection';const STATES: AgentRunState[] = ['off', 'isolated', 'not_isolated', 'preparing', 'unavailable'];const str = (v: unknown) => (typeof v === 'string' && v.trim() ? v : null);@@ -62,7 +65,7 @@ export const PLATFORM_HINTS: Record<string, string> = {};export const ISOLATION_HINT =- 'Claude sees only the task folder. Its own tools, web search included, can’t go online, so it browses with kwant’s browser. Your Claude sign-in or key stays on this computer; kwant adds it on the way out.';+ 'If a web page, file or another bot tricks Claude, it can’t read your sign-ins and keys or go online by itself: anything else goes through kwant’s tools and your approval settings. While it’s on, Claude sees only the task folder, browses with kwant’s browser instead of its own web search, and can’t use MCP servers you added, such as Notion.';/** Whether this host could run Claude in the VM (Linux), whatever Docker is doing. */export const hostSupportsIsolation = (vm: ClaudeVm | null | undefined) => !!vm && !(vm.toggle.reason && vm.toggle.reason in PLATFORM_HINTS);@@ -97,17 +100,17 @@ export function chipFor(engine: AgentEngine, a: AgentVmState | undefined): Chiptitle,...extra,});- const later = `${name} still runs on this computer, with its own file and shell tools. Moving it inside the VM comes later.`;+ const later = `${name} still runs on this computer, with its own file and shell tools. Moving it into a sealed box comes later.`;if (engine !== 'claude') return chip('neutral', 'Not isolated yet', later);if (!a) return chip('neutral', 'Not isolated');switch (a.state) {case 'isolated':- return chip('isolated', 'Isolated', 'Claude runs inside the VM, in a container of its own with no network.');+ return chip('isolated', 'Isolated', 'Claude works in a sealed box with no internet.');case 'preparing': {const n = pct(a.progress);return n === null- ? chip('preparing', 'Getting ready', 'Getting the VM ready for Claude.', { indeterminate: true })- : chip('preparing', `Getting ready · ${n}%`, 'Getting the VM ready for Claude.');+ ? chip('preparing', 'Getting ready', 'Setting up Claude’s sealed box.', { indeterminate: true })+ : chip('preparing', `Getting ready · ${n}%`, 'Setting up Claude’s sealed box.');}case 'unavailable':return chip('stopped', 'Stopped', "Claude can't reply until this is fixed. Nothing runs on this computer instead.");@@ -155,7 +158,7 @@ export function stoppedLine(a: AgentVmState): Extract<RowStatus, { kind: 'stoppeaction: 'retry',};case 'download_needed':- return { kind: 'stopped', text: 'Claude’s VM isn’t set up yet, so Claude can’t reply. Try again to start the one-time setup.', action: 'retry' };+ return { kind: 'stopped', text: 'Claude’s sealed box isn’t set up yet, so Claude can’t reply. Try again to start the one-time setup.', action: 'retry' };case 'relay_down':return { kind: 'stopped', text: 'kwant couldn’t connect Claude to your sign-in. Restart kwant; if it keeps happening, turn this off.', action: null };case 'sign_in_expired':@@ -199,13 +202,13 @@ export function pollInterval(vm: ClaudeVm | null | undefined): number | null {export function preparingCopy(progress: AgentVmState['progress']) {if (!progress)return {- line1: 'Getting the VM ready for Claude. This one-time setup downloads about 860 MB and takes a few minutes.',+ line1: 'Setting up Claude’s sealed box. This one-time setup downloads about 860 MB and takes a few minutes.',line2: 'Claude can’t reply until it’s done. Turning this off lets Claude reply on this computer meanwhile; the setup keeps going.',figure: null,};const mb = (b: number) => Math.round(b / 1_000_000);return {- line1: 'Getting the VM ready for Claude. This one-time download takes a few minutes.',+ line1: 'Setting up Claude’s sealed box. This one-time download takes a few minutes.',line2: 'Claude can’t reply until it’s done.',figure: `${mb(progress.done_bytes)} of ${mb(progress.total_bytes)} MB`,};@@ -214,8 +217,8 @@ export function preparingCopy(progress: AgentVmState['progress']) {/** One sentence for the live region: only at the start, the end and on a failure, never per tick. */export function announcement(prev: AgentVmState | undefined, next: AgentVmState | undefined): string | null {if (!next || prev?.state === next.state) return null;- if (next.state === 'preparing') return 'Getting the VM ready for Claude.';- if (next.state === 'isolated' && prev) return 'Claude now runs inside the VM.';+ if (next.state === 'preparing') return 'Setting up Claude’s sealed box.';+ if (next.state === 'isolated' && prev) return 'Key protection is on. Claude now works in its sealed box.';if (next.state === 'unavailable' && prev) return `Claude stopped. ${stoppedLine(next).text}`;return null;}@@ -243,7 +246,7 @@ export function putErrorText(status: number, data: unknown): string {/** Lin's #446 contract: a reply waiting for a free spot inside the VM. */export const queuedVmText = (slots?: number): string =>- `Waiting for a free spot in the VM.${slots ? ` ${slots === 1 ? '1 reply runs' : `${slots} replies run`} at once there.` : ''} This one starts as soon as one finishes.`;+ `Waiting for a free sealed box.${slots ? ` ${slots === 1 ? '1 Claude reply runs' : `${slots} Claude replies run`} at once.` : ''} This one starts as soon as one finishes.`;/*** The open chat's "in line" sentence. Calm on purpose: a reply can wait about five minutes behinddiff --git a/frontend/src/components/ClaudeIsolationRow.tsx b/frontend/src/components/ClaudeIsolationRow.tsxindex 347eda56..5874fbff 100644--- a/frontend/src/components/ClaudeIsolationRow.tsx+++ b/frontend/src/components/ClaudeIsolationRow.tsx@@ -1,6 +1,6 @@import React, { useEffect, useRef, useState } from 'react';import { AlertTriangle, Download, Loader2, RefreshCw, RotateCcw, Shield, ShieldCheck } from 'lucide-react';-import { AgentVmState, Chip, ChipTone, announcement, chipsFor, preparingCopy, rowModel } from '../claudeVm';+import { AgentVmState, Chip, ChipTone, SETTING_NAME, announcement, chipsFor, preparingCopy, rowModel } from '../claudeVm';import { ComputerModeApi, ComputerModeError } from './ComputerModeSwitch';const TONE: Record<ChipTone, string> = {@@ -53,7 +53,7 @@ const PreparingBlock: React.FC<{ progress: AgentVmState['progress'] }> = ({ prog{progress ? (<divrole="progressbar"- aria-label="Getting the VM ready for Claude"+ aria-label="Setting up Claude’s sealed box"aria-valuemin={0}aria-valuemax={progress.total_bytes}aria-valuenow={progress.done_bytes}@@ -118,7 +118,7 @@ export const ClaudeIsolationRow: React.FC<{ api: ComputerModeApi }> = ({ api })<div className="flex-1 min-w-0"><p id="claude-iso-label" className={`flex items-center gap-2 text-xs font-medium ${model.disabled ? 'text-zinc-500' : 'text-zinc-200'}`}><Shield size={15} className={model.disabled ? 'text-zinc-600' : 'text-sky-400'} aria-hidden="true" />- Run Claude inside the VM+ {SETTING_NAME}</p><p id="claude-iso-hint" className="mt-1 pl-[23px] text-[11px] leading-[1.45] text-zinc-500">{model.hint}diff --git a/frontend/src/components/MissionBoardView.tsx b/frontend/src/components/MissionBoardView.tsxindex ea19669f..ee9dea6a 100644--- a/frontend/src/components/MissionBoardView.tsx+++ b/frontend/src/components/MissionBoardView.tsx@@ -1805,10 +1805,11 @@ export const RestoreSection: React.FC<{onError?.(e);}};- const pick = async (c: Checkpoint) => {+ /** `keep`: leave the current message up (a stale restore says why the preview changed). */+ const pick = async (c: Checkpoint, keep = false) => {setPicked(c);setPreview(null);- setErr(null);+ if (!keep) setErr(null);try {setPreview(await api.restorePreview(task.id, c.id));} catch (e) {@@ -1834,7 +1835,8 @@ export const RestoreSection: React.FC<{onRestored?.(r, opts.rerun);} catch (e) {setErr(restoreErrorText(e));- if (e instanceof MissionError && e.code === 'stale_preview') void pick(picked);+ // The fresh preview loads under the message, which stays until the person acts (0.7.7 final check, F).+ if (e instanceof MissionError && e.code === 'stale_preview') void pick(picked, true);onError?.(e);} finally {inFlight.current = false;@@ -1895,6 +1897,7 @@ export const RestoreSection: React.FC<{onCancel={() => {setPicked(null);setPreview(null);+ setErr(null);}}/>) : (diff --git a/frontend/src/components/ThreadBar.tsx b/frontend/src/components/ThreadBar.tsxindex 2004698b..1179a598 100644--- a/frontend/src/components/ThreadBar.tsx+++ b/frontend/src/components/ThreadBar.tsx@@ -6,7 +6,8 @@ import { Badge, BadgeKind, Thread, TurnMap, sortThreads, threadBadge } from '../const BADGE_STYLE: Record<BadgeKind, string> = {working: 'text-sky-300 bg-sky-500/10 border-sky-500/30',waiting: 'text-amber-300 bg-amber-500/10 border-amber-500/30',- queued: 'text-amber-300 bg-amber-500/10 border-amber-500/30',+ // Grey like the in-chat "In line" line: waiting its turn isn't waiting on you (0.7.7 final check, F).+ queued: 'text-zinc-300 bg-zinc-800/60 border-zinc-600',done: 'text-emerald-300 bg-emerald-500/10 border-emerald-500/30',failed: 'text-rose-300 bg-rose-500/10 border-rose-500/30',interrupted: 'text-amber-300 bg-amber-500/10 border-amber-500/30',@@ -184,11 +185,12 @@ export const ThreadBar: React.FC<ThreadBarProps> = ({);};-/** The status dot on the phone header's second line: violet while working, amber while it waits on you (never holo). */-export function statusDot(badge: Badge | null): { tone: 'working' | 'waiting'; label: string } | null {+/** The status dot on the phone header's second line: violet while working, amber while it waits on you, grey while queued (never holo). */+export function statusDot(badge: Badge | null): { tone: 'working' | 'waiting' | 'queued'; label: string } | null {if (!badge) return null;if (badge.kind === 'working') return { tone: 'working', label: badge.label };- if (badge.kind === 'waiting' || badge.kind === 'queued') return { tone: 'waiting', label: badge.label };+ if (badge.kind === 'waiting') return { tone: 'waiting', label: badge.label };+ if (badge.kind === 'queued') return { tone: 'queued', label: badge.label };return null;}@@ -278,7 +280,7 @@ export const ThreadPicker: React.FC<ThreadBarProps> = ({<spandata-status-dot={dot.tone}aria-hidden="true"- className={`shrink-0 w-1.5 h-1.5 rounded-full ${dot.tone === 'working' ? 'bg-[#9d8fff]' : 'bg-[#fcd34d]'}`}+ className={`shrink-0 w-1.5 h-1.5 rounded-full ${dot.tone === 'working' ? 'bg-[#9d8fff]' : dot.tone === 'queued' ? 'bg-zinc-500' : 'bg-[#fcd34d]'}`}/>)}<span className="truncate">{label}</span>diff --git a/frontend/src/computerMode.ts b/frontend/src/computerMode.tsindex 9ff5e965..c158709f 100644--- a/frontend/src/computerMode.ts+++ b/frontend/src/computerMode.ts@@ -35,7 +35,7 @@ export function vmCopy(isolates: string[], claudeOn = false): { label: string; hreturn {label: 'VM (browser, shell and Claude isolated)',hint: 'The browser, built-in shell and Claude run in Docker containers, away from your files.',- note: 'Codex and Grok still run on this computer, with their own file and shell tools. They won’t run in a folder Claude used inside the VM.',+ note: 'Codex and Grok still run on this computer, with their own file and shell tools. They won’t run in a folder Claude used in its sealed box.',};}if (isolates.includes('cli_agents')) {diff --git a/frontend/src/isolationNotice.ts b/frontend/src/isolationNotice.tsindex 9ff8526b..0e01b806 100644--- a/frontend/src/isolationNotice.ts+++ b/frontend/src/isolationNotice.ts@@ -4,7 +4,7 @@// Server: src/sandbox/agent_vm/notice.rs (`IsolationFailed::to_meta`, `start_text`) and// src/drivers/cli.rs (`isolation_notice`, `isolated_end`).import type { ChatMessage } from './components/ChatView';-import { SETTING_NAME } from './claudeVm';+import { SETTING_HANDLE } from './claudeVm';import { parseMetaObject } from './questions';export type FolderFrom = 'team' | 'space' | 'goal' | 'bot';@@ -93,11 +93,11 @@ export interface IsolationCard {/** The safety lines, split so the setting's name can be bold. */export const SAFETY: Record<Exclude<SafetyKind, null>, [string, string, string] | [string]> = {- standard: ['While ', SETTING_NAME, ' is on, Claude never runs outside it, so nothing ran on this computer. To run Claude here instead, turn that off in Computer settings.'],+ standard: ['While ', SETTING_HANDLE, ' is on, Claude never runs outside its sealed box, so nothing ran on this computer. To run Claude here instead, turn off key protection in Computer settings.'],nothing_ran: ['Nothing ran.'],- unsafe: ['Nothing ran. Turning off ', SETTING_NAME, ' would also work, but then Claude could read this whole folder from this computer.'],- unsafe_shared: ['Nothing ran. Turning off ', SETTING_NAME, ' would also work, but then Claude runs on this computer again.'],- folder_used: ['Nothing ran. Turning off ', SETTING_NAME, ' doesn’t change this, because the folder may already hold those settings.'],+ unsafe: ['Nothing ran. Turning off ', SETTING_HANDLE, ' would also work, but then Claude could read this whole folder from this computer.'],+ unsafe_shared: ['Nothing ran. Turning off ', SETTING_HANDLE, ' would also work, but then Claude runs on this computer again.'],+ folder_used: ['Nothing ran. Turning off ', SETTING_HANDLE, ' doesn’t change this, because the folder may already hold those settings.'],};const t = (text: string): Seg => ({ text });@@ -108,20 +108,20 @@ function unsafeSentence(kind: string | null, folder: string | null): Seg[] {const withPath = (lead: string | null, rest: string): Seg[] => (f ? [{ text: f, folder: true }, t(rest)] : [t(`${lead ?? 'This folder'}${rest}`)]);switch (kind) {case 'home':- return withPath('This folder', ' is your home folder. Inside the VM, Claude would see all your files and sign-ins.');+ return withPath('This folder', ' is your home folder. In its sealed box, Claude would see all your files and sign-ins.');case 'contains_home':case 'root':- return withPath('This folder', ' holds your home folder. Inside the VM, Claude would see all your files and sign-ins.');+ return withPath('This folder', ' holds your home folder. In its sealed box, Claude would see all your files and sign-ins.');case 'sign_ins':- return withPath('This folder', ' holds sign-ins, like your SSH keys or Claude, Codex or Grok sign-in, so kwant won’t share it with the VM.');+ return withPath('This folder', ' holds sign-ins, like your SSH keys or Claude, Codex or Grok sign-in, so kwant won’t share it with Claude’s sealed box.');case 'kwant_data':- return withPath('This folder', ' holds kwant’s own data, including your sign-ins, so kwant won’t share it with the VM.');+ return withPath('This folder', ' holds kwant’s own data, including your sign-ins, so kwant won’t share it with Claude’s sealed box.');case 'docker':- return withPath('This folder', ' holds Docker’s control socket, which would let Claude out of the VM.');+ return withPath('This folder', ' holds Docker’s control socket, which would let Claude out of its sealed box.');case 'shared_folder':- return [t('This is the folder teams share when they don’t have their own. If Claude used it inside the VM, Codex and Grok bots in every team would be kept out of it.')];+ return [t('This is the folder teams share when they don’t have their own. If Claude took it into its sealed box, Codex and Grok bots in every team would be kept out of it.')];default:- return [t('This folder holds your home folder or sign-ins, so kwant won’t share it with the VM.')];+ return [t('This folder holds your home folder or sign-ins, so kwant won’t share it with Claude’s sealed box.')];}}@@ -140,7 +140,7 @@ function unsafeFolderCard(m: IsolationFailedMeta): IsolationCard {const change = canChangeFolder(m) || (shared && !!m.teamId);return {row: shared ? 'unsafe_folder:shared_folder' : `unsafe_folder:${m.unsafeKind ?? 'unknown'}`,- first: `${m.botName} didn’t reply: Claude can’t use this folder inside the VM.`,+ first: `${m.botName} didn’t reply: Claude can’t take this folder into its sealed box.`,reason: [...s1, t(` ${s2}`)],safety: shared ? 'unsafe_shared' : 'unsafe',actions: change ? ['change_folder', 'retry'] : ['retry'],@@ -155,26 +155,26 @@ function folderUsedCard(m: IsolationFailedMeta): IsolationCard {let row: string;if (m.folderFrom === 'bot') {row = 'folder_used_by_isolated_bot:bot';- reason = [t(`${bot} used this folder as Claude inside the VM, and it could have left settings there that ${E} would load on this computer. Switch ${bot} back to Claude to keep working here.`)];+ reason = [t(`${bot} used this folder as Claude in its sealed box, and it could have left settings there that ${E} would load on this computer. Switch ${bot} back to Claude to keep working here.`)];} else if (m.folderFrom === 'team') {row = 'folder_used_by_isolated_bot:team';const other = team(m) ? `pick another folder for ${team(m)}` : 'pick another folder';- reason = [t('A bot inside the VM could have left settings in '), f, t(` that ${E} would load on this computer, so kwant keeps ${E} out of it for now. Switch ${bot} to Claude, or ${other}, then Retry.`)];+ reason = [t('A Claude bot in its sealed box could have left settings in '), f, t(` that ${E} would load on this computer, so kwant keeps ${E} out of it for now. Switch ${bot} to Claude, or ${other}, then Retry.`)];} else {row = 'folder_used_by_isolated_bot:other';- reason = [t('A bot inside the VM could have left settings in '), f, t(` that ${E} would load on this computer, so kwant keeps ${E} out of it for now. Switch ${bot} to Claude, then Retry.`)];+ reason = [t('A Claude bot in its sealed box could have left settings in '), f, t(` that ${E} would load on this computer, so kwant keeps ${E} out of it for now. Switch ${bot} to Claude, then Retry.`)];}const second: NoticeAction[] = canChangeFolder(m) ? ['change_folder'] : ['retry'];return {row,- first: `${bot} didn’t reply: ${E} won’t run in a folder Claude used inside the VM.`,+ first: `${bot} didn’t reply: ${E} won’t run in a folder Claude used in its sealed box.`,reason,safety: 'folder_used',actions: ['edit_bot', ...second],};}-const GENERIC_FIRST = (bot: string) => `${bot} didn’t reply: Claude couldn’t start inside the VM.`;+const GENERIC_FIRST = (bot: string) => `${bot} didn’t reply: Claude’s sealed box couldn’t start.`;/*** The reason for a code with no row of its own. The server's own words win (a `detail` in the@@ -183,7 +183,7 @@ const GENERIC_FIRST = (bot: string) => `${bot} didn’t reply: Claude couldn’t*/export function unknownReason(m: IsolationFailedMeta, savedText: string | null | undefined): string {const code = m.code ?? m.reason;- const tail = `Retry, or turn off ${SETTING_NAME} to run Claude on this computer.`;+ const tail = `Retry, or turn off ${SETTING_HANDLE} to run Claude on this computer.`;const own = m.detail ?? serverReason(savedText, m.botName);if (own) return `${own.replace(/[.\s]+$/, '')}. ${tail}`;return `Something went wrong (${code}). ${tail}`;@@ -203,9 +203,11 @@ export function serverReason(text: string | null | undefined, bot: string): stris = end >= 0 ? s.slice(end + 1) : '';}s = s+ // 0.7.7 notices stay in chats with the old name, so both wordings are stripped (vm-naming.md)..replace(/While Run Claude inside the VM is on, Claude never runs outside it, so nothing ran on this computer\.(?: To run Claude here instead, turn that off in Computer settings\.)?/g, '')+ .replace(/While key protection is on, Claude never runs outside its sealed box, so nothing ran on this computer\.(?: To run Claude here instead, turn off key protection in Computer settings\.)?/g, '').replace(/Something went wrong \([^)]*\)\.?/g, '')- .replace(/Retry, or turn off Run Claude inside the VM to run Claude on this computer\.?/g, '')+ .replace(/Retry, or turn off (?:Run Claude inside the VM|key protection) to run Claude on this computer\.?/g, '').replace(/\s+/g, ' ').trim();return s ? s.replace(/'/g, '’') : null;@@ -215,7 +217,7 @@ export function serverReason(text: string | null | undefined, bot: string): striexport function isolationCard(m: IsolationFailedMeta, savedText?: string | null): IsolationCard {const bot = m.botName;const couldnt = GENERIC_FIRST(bot);- const notReady = `${bot} didn’t reply: Claude’s VM isn’t ready yet.`;+ const notReady = `${bot} didn’t reply: Claude’s sealed box isn’t ready yet.`;const std = (row: string, first: string, reason: string, actions: NoticeAction[] = ['retry', 'computer'], safety: SafetyKind = 'standard'): IsolationCard => ({row,first,@@ -229,7 +231,7 @@ export function isolationCard(m: IsolationFailedMeta, savedText?: string | null)if (m.phase === 'mid_turn')return std('mid_turn',- `${bot}’s reply stopped partway: Claude lost its connection inside the VM.`,+ `${bot}’s reply stopped partway: Claude’s sealed box lost its connection.`,'What it changed before that is in the task folder, and Undo still works. Retry to start the reply again.',);@@ -253,23 +255,23 @@ export function isolationCard(m: IsolationFailedMeta, savedText?: string | null)case 'no_credential':return std('no_credential', `${bot} didn’t reply: there’s no Claude sign-in for it on this computer.`, 'Sign in to Claude in Settings › This space › Accounts, then Retry.', ['retry', 'accounts'], null);case 'host_is_root':- return std('host_is_root', couldnt, 'kwant is running as root, so Claude can’t run inside the VM as you. Start kwant as your normal user, then Retry.');+ return std('host_is_root', couldnt, 'kwant is running as root, so Claude’s sealed box can’t run as you. Start kwant as your normal user, then Retry.');case 'folder_name_unsupported':return std('folder_name_unsupported',- `${bot} didn’t reply: Claude can’t use this folder inside the VM.`,- 'The folder’s name has characters kwant can’t pass to the VM, like a line break. Rename the folder, then Retry.',+ `${bot} didn’t reply: Claude can’t take this folder into its sealed box.`,+ 'The folder’s name has characters kwant can’t pass to Claude’s sealed box, like a line break. Rename the folder, then Retry.',['retry'],'nothing_ran',);case 'folder_record_failed':- return std('folder_record_failed', couldnt, 'kwant couldn’t note that this folder is used inside the VM, so it didn’t start Claude. Retry; if it keeps happening, restart kwant.');+ return std('folder_record_failed', couldnt, 'kwant couldn’t note that this folder is used by Claude’s sealed box, so it didn’t start Claude. Retry; if it keeps happening, restart kwant.');case 'container_failed':- return std('container_failed', couldnt, 'The VM couldn’t start Claude. Retry; if it keeps happening, restart Docker.');+ return std('container_failed', couldnt, 'Docker couldn’t start it. Retry; if it keeps happening, restart Docker.');case 'unsupported_os':case 'not_supported_yet':case 'mac_later':- return std(m.reason, couldnt, `Isolation is only on Linux for now. Turn off ${SETTING_NAME} to run Claude on this computer.`, ['computer']);+ return std(m.reason, couldnt, `Isolation is only on Linux for now. Turn off ${SETTING_HANDLE} to run Claude on this computer.`, ['computer']);default:return std('unknown', couldnt, unknownReason(m, savedText));}diff --git a/frontend/tests/afterLaunch.test.mjs b/frontend/tests/afterLaunch.test.mjsindex 661b6ca9..c0a36756 100644--- a/frontend/tests/afterLaunch.test.mjs+++ b/frontend/tests/afterLaunch.test.mjs@@ -42,6 +42,7 @@ const m = await loadBundled(`export { SpaceApp } from './src/App';export { ManageTeamModal } from './src/components/ManageTeamModal';export { RestoreSection } from './src/components/MissionBoardView';+ export { MissionError } from './src/missions';export { isTextField } from './src/escape';`);const { React } = m;@@ -386,3 +387,45 @@ test('after launch 4: after a restore the checkpoint list loads again, with theassert.ok(q('[data-restore-preview]'), 'and shows what it would put back');v.unmount();});++// 0.8.0 F (Rigel's 0.7.7 final check): a stale restore says why the preview changed, and the+// message stays while the fresh preview loads under it, until the person acts.+test('0.8.0 F: "Files changed since this preview" stays up over the fresh preview until the person restores, picks or says Never mind', async () => {+ const cp = (id) => ({ id, kind: 'before_run', attempt: 1, created_at: '2026-11-01T10:00:00Z', files: 2, effects_after: { external: [] }, restorable: true, error: null });+ let n = 0;+ let stale = true;+ const api = {+ checkpoints: async () => [cp('cp1'), cp('cp2')],+ restorePreview: async (id, c) => ({ checkpoint_id: c, preview_sha256: `sha-${c}-${++n}`, changes: [{ path: 'a.txt', action: 'overwrite' }], conflicts: [], skipped: [], external_not_undone: [], not_undone_note: '', effects_known: true, task_state_after: 'ready', refused: null }),+ restore: async () => {+ if (stale) {+ stale = false;+ throw new m.MissionError('preview is stale', 409, 'stale_preview');+ }+ return { before_restore_checkpoint_id: 'cp_b', restored: 1, removed: 0, task: { id: 'tk1', state: 'ready' } };+ },+ };+ const v = await mount(m.RestoreSection, { task: { id: 'tk1', state: 'failed', checkpoint_count: 2 }, api, now: Date.parse('2026-11-01T12:00:00Z'), titleOf: () => undefined });+ await click(q('[data-restore-open]'));+ await click(q('[data-checkpoint="cp1"]'));+ await click(q('[data-restore]'));+ assert.match(v.host.textContent, /Files changed since this preview\. Look at the new preview, then restore\./);+ assert.ok(q('[data-restore-preview]'), 'the new preview is shown under it');+ assert.equal(n, 2, 'the preview was fetched again');+ await settle();+ assert.match(v.host.textContent, /Files changed since this preview/, 'still there after the refresh settles');+ // Never mind is acting: the message goes with the preview, and the list is back.+ await click(button('Never mind'));+ assert.doesNotMatch(v.host.textContent, /Files changed since this preview/);+ assert.ok(q('[data-checkpoint="cp2"]'), 'the checkpoints are listed again');+ // A second stale restore shows it again, and picking another checkpoint clears it.+ stale = true;+ await click(q('[data-checkpoint="cp1"]'));+ await click(q('[data-restore]'));+ assert.match(v.host.textContent, /Files changed since this preview/);+ await click(button('Never mind'));+ await click(q('[data-checkpoint="cp2"]'));+ assert.doesNotMatch(v.host.textContent, /Files changed since this preview/);+ assert.ok(q('[data-restore-preview]'), 'cp2’s preview shows');+ v.unmount();+});diff --git a/frontend/tests/claudeVm.test.mjs b/frontend/tests/claudeVm.test.mjsindex d4940778..5e7865b2 100644--- a/frontend/tests/claudeVm.test.mjs+++ b/frontend/tests/claudeVm.test.mjs@@ -63,7 +63,7 @@ test('A: off by default on Linux — enabled switch, the hint, all three chips nassert.match(html, /role="switch"/);assert.match(html, /aria-checked="false"/);assert.doesNotMatch(html, /aria-disabled/);- assert.match(html, /web search included/);+ assert.match(html, /instead of its own web search/);assert.match(html, /aria-label="Where each AI runs right now"/);assert.match(html, /Claude: not isolated/);assert.match(html, /Codex: not isolated yet/);@@ -153,6 +153,7 @@ test('E: download failed — the server detail and Try again (fix 7)', () => {test('download needed, relay down, sign-in expired and an unknown reason each get a line', () => {const line = (reason, detail = null) => m.stoppedLine({ state: 'unavailable', reason, detail, progress: null });+ assert.equal(line('download_needed').text, 'Claude’s sealed box isn’t set up yet, so Claude can’t reply. Try again to start the one-time setup.');assert.equal(line('download_needed').action, 'retry');assert.match(line('relay_down').text, /couldn’t connect Claude to your sign-in/);assert.equal(line('relay_down').action, null);@@ -208,9 +209,9 @@ test('saveIsolateClaude PUTs the flag and maps a 400', async () => {test('the live region speaks at the start, the end and a failure only', () => {const s = (state, reason = null) => ({ state, reason, detail: null, progress: null });- assert.equal(m.announcement(s('off'), s('preparing')), 'Getting the VM ready for Claude.');+ assert.equal(m.announcement(s('off'), s('preparing')), 'Setting up Claude’s sealed box.');assert.equal(m.announcement(s('preparing'), s('preparing')), null);- assert.equal(m.announcement(s('preparing'), s('isolated')), 'Claude now runs inside the VM.');+ assert.equal(m.announcement(s('preparing'), s('isolated')), 'Key protection is on. Claude now works in its sealed box.');assert.match(m.announcement(s('isolated'), s('unavailable', 'docker_unavailable')), /^Claude stopped\. Docker isn’t running/);assert.equal(m.announcement(undefined, s('isolated')), null);});@@ -218,14 +219,14 @@ test('the live region speaks at the start, the end and a failure only', () => {test('VM card copy: setting on names Claude and warns about Codex and Grok', () => {const on = m.vmCopy(['browser', 'kwnt_shell'], true);assert.equal(on.label, 'VM (browser, shell and Claude isolated)');- assert.match(on.note, /They won’t run in a folder Claude used inside the VM\./);+ assert.match(on.note, /They won’t run in a folder Claude used in its sealed box\./);assert.equal(m.vmCopy(['browser', 'kwnt_shell'], false).label, 'VM (browser and built-in shell isolated)');});test('queued for a VM spot: Lin’s wording, with or without slots', () => {- assert.equal(m.queuedVmText(2), 'Waiting for a free spot in the VM. 2 replies run at once there. This one starts as soon as one finishes.');- assert.equal(m.queuedVmText(1), 'Waiting for a free spot in the VM. 1 reply runs at once there. This one starts as soon as one finishes.');- assert.equal(m.queuedVmText(), 'Waiting for a free spot in the VM. This one starts as soon as one finishes.');+ assert.equal(m.queuedVmText(2), 'Waiting for a free sealed box. 2 Claude replies run at once. This one starts as soon as one finishes.');+ assert.equal(m.queuedVmText(1), 'Waiting for a free sealed box. 1 Claude reply runs at once. This one starts as soon as one finishes.');+ assert.equal(m.queuedVmText(), 'Waiting for a free sealed box. This one starts as soon as one finishes.');});test('the in-line sentence reads as calm waiting (qa-446: up to ~5 min behind approval cards)', () => {@@ -234,3 +235,16 @@ test('the in-line sentence reads as calm waiting (qa-446: up to ~5 min behind apassert.match(m.queuedText('server_busy'), /starts as soon as a slot frees up/);for (const r of ['agent_busy', 'server_busy', 'vm_busy']) assert.doesNotMatch(m.queuedText(r, 2), /timeout|timed out|error|stuck|minutes/i);});++// 0.8.0 F: Mira's key protection wording (release-080/designs/vm-naming.md).+test('key protection: the label, the hint without the sign-in-or-key promise, the chip title', () => {+ assert.equal(m.SETTING_NAME, 'Protect your keys from tricked Claude bots');+ assert.equal(m.SETTING_HANDLE, 'key protection');+ assert.equal(+ m.ISOLATION_HINT,+ 'If a web page, file or another bot tricks Claude, it can’t read your sign-ins and keys or go online by itself: anything else goes through kwant’s tools and your approval settings. While it’s on, Claude sees only the task folder, browses with kwant’s browser instead of its own web search, and can’t use MCP servers you added, such as Notion.',+ );+ // API-key accounts run on the computer, so the hint must not say a key stays out of Claude's reach.+ assert.doesNotMatch(m.ISOLATION_HINT, /sign-in or key stays|adds it on the way out/);+ for (const never of [/can’t send your files/, /can’t leak/, /fully isolated/]) assert.doesNotMatch(m.ISOLATION_HINT, never);+});diff --git a/frontend/tests/isolationNotice.test.mjs b/frontend/tests/isolationNotice.test.mjsindex e6695db9..beb9df0f 100644--- a/frontend/tests/isolationNotice.test.mjs+++ b/frontend/tests/isolationNotice.test.mjs@@ -51,18 +51,18 @@ test('parses the meta and ignores other messages', () => {// The table: every code the server sends, with first line, reason, safety and buttons.const ROWS = [- ['docker_unavailable', /couldn’t start inside the VM\.$/, /^Docker isn’t running on this computer\. Start Docker, then Retry\.$/, 'standard', ['retry', 'computer']],- ['preparing', /VM isn’t ready yet\.$/, /^The one-time setup is still running\. Retry when it’s done\.$/, 'standard', ['retry', 'computer']],- ['download_failed', /VM isn’t ready yet\.$/, /^The one-time setup didn’t finish\. Try it again in Computer settings, then Retry\.$/, 'standard', ['retry', 'computer']],- ['download_needed', /VM isn’t ready yet\.$/, /^The one-time setup didn’t finish\./, 'standard', ['retry', 'computer']],- ['relay_down', /couldn’t start inside the VM\.$/, /^kwant couldn’t connect Claude to your sign-in\. Restart kwant, then Retry\.$/, 'standard', ['retry', 'computer']],+ ['docker_unavailable', /Claude’s sealed box couldn’t start\.$/, /^Docker isn’t running on this computer\. Start Docker, then Retry\.$/, 'standard', ['retry', 'computer']],+ ['preparing', /sealed box isn’t ready yet\.$/, /^The one-time setup is still running\. Retry when it’s done\.$/, 'standard', ['retry', 'computer']],+ ['download_failed', /sealed box isn’t ready yet\.$/, /^The one-time setup didn’t finish\. Try it again in Computer settings, then Retry\.$/, 'standard', ['retry', 'computer']],+ ['download_needed', /sealed box isn’t ready yet\.$/, /^The one-time setup didn’t finish\./, 'standard', ['retry', 'computer']],+ ['relay_down', /Claude’s sealed box couldn’t start\.$/, /^kwant couldn’t connect Claude to your sign-in\. Restart kwant, then Retry\.$/, 'standard', ['retry', 'computer']],['sign_in_expired', /your Claude sign-in has expired\.$/, /^Sign in again in Settings › This space › Accounts, then Retry\.$/, null, ['retry', 'accounts']],['no_credential', /there’s no Claude sign-in for it on this computer\.$/, /^Sign in to Claude in Settings › This space › Accounts, then Retry\.$/, null, ['retry', 'accounts']],- ['host_is_root', /couldn’t start inside the VM\.$/, /^kwant is running as root, so Claude can’t run inside the VM as you\./, 'standard', ['retry', 'computer']],- ['folder_name_unsupported', /Claude can’t use this folder inside the VM\.$/, /^The folder’s name has characters kwant can’t pass to the VM, like a line break\. Rename the folder, then Retry\.$/, 'nothing_ran', ['retry']],- ['folder_record_failed', /couldn’t start inside the VM\.$/, /^kwant couldn’t note that this folder is used inside the VM, so it didn’t start Claude\./, 'standard', ['retry', 'computer']],- ['container_failed', /couldn’t start inside the VM\.$/, /^The VM couldn’t start Claude\. Retry; if it keeps happening, restart Docker\.$/, 'standard', ['retry', 'computer']],- ['unsupported_os', /couldn’t start inside the VM\.$/, /^Isolation is only on Linux for now\. Turn off Run Claude inside the VM to run Claude on this computer\.$/, 'standard', ['computer']],+ ['host_is_root', /Claude’s sealed box couldn’t start\.$/, /^kwant is running as root, so Claude’s sealed box can’t run as you\./, 'standard', ['retry', 'computer']],+ ['folder_name_unsupported', /Claude can’t take this folder into its sealed box\.$/, /^The folder’s name has characters kwant can’t pass to Claude’s sealed box, like a line break\. Rename the folder, then Retry\.$/, 'nothing_ran', ['retry']],+ ['folder_record_failed', /Claude’s sealed box couldn’t start\.$/, /^kwant couldn’t note that this folder is used by Claude’s sealed box, so it didn’t start Claude\./, 'standard', ['retry', 'computer']],+ ['container_failed', /Claude’s sealed box couldn’t start\.$/, /^Docker couldn’t start it\. Retry; if it keeps happening, restart Docker\.$/, 'standard', ['retry', 'computer']],+ ['unsupported_os', /Claude’s sealed box couldn’t start\.$/, /^Isolation is only on Linux for now\. Turn off key protection to run Claude on this computer\.$/, 'standard', ['computer']],];for (const [reason, first, why, safety, actions] of ROWS) {@@ -89,26 +89,31 @@ test('preparing uses the percent when the server sends it', () => {test('the standard safety line bolds the setting name', () => {const html = render(notice('n', 'docker_unavailable'));- assert.match(html, /While <span class="font-medium text-zinc-300">Run Claude inside the VM<\/span> is on/);+ assert.match(html, /While <span class="font-medium text-zinc-300">key protection<\/span> is on, Claude never runs outside its sealed box, so nothing ran on this computer\. To run Claude here instead, turn off key protection in Computer settings\./);});test('mid-turn (notice 3): any reason, its own first line', () => {const c = card('container_failed', { phase: 'mid_turn' });assert.equal(c.row, 'mid_turn');- assert.equal(c.first, 'Ada’s reply stopped partway: Claude lost its connection inside the VM.');+ assert.equal(c.first, 'Ada’s reply stopped partway: Claude’s sealed box lost its connection.');assert.match(plain(c), /Undo still works/);assert.equal(c.safety, 'standard');});test('unknown code: the server’s own words win over "Something went wrong"', () => {// A detail in the meta- assert.match(plain(card('new_code', { detail: 'The VM ran out of disk.' })), /^The VM ran out of disk\. Retry, or turn off Run Claude inside the VM/);+ assert.match(plain(card('new_code', { detail: 'The VM ran out of disk.' })), /^The VM ran out of disk\. Retry, or turn off key protection to run Claude on this computer\.$/);// Human text the server saved beyond its templateconst saved = "Ada didn't reply: Claude couldn't start inside the VM. The image is from a newer kwant. While Run Claude inside the VM is on, Claude never runs outside it, so nothing ran on this computer.";assert.match(plain(card('new_code', {}, saved)), /^The image is from a newer kwant\. Retry/);// Only the template: the code, as a last resortconst tpl = "Ada didn't reply: Claude couldn't start inside the VM. Something went wrong (new_code). Retry, or turn off Run Claude inside the VM to run Claude on this computer. While Run Claude inside the VM is on, Claude never runs outside it, so nothing ran on this computer.";assert.equal(m.serverReason(tpl, 'Ada'), null);+ // 0.8.0's server words (key protection, vm-naming.md) are stripped as well as 0.7.7's+ const tpl080 = "Ada didn't reply: Claude's sealed box couldn't start. Something went wrong (new_code). Retry, or turn off key protection to run Claude on this computer. While key protection is on, Claude never runs outside its sealed box, so nothing ran on this computer.";+ assert.equal(m.serverReason(tpl080, 'Ada'), null);+ const saved080 = "Ada didn't reply: Claude's sealed box couldn't start. The image is from a newer kwant. While key protection is on, Claude never runs outside its sealed box, so nothing ran on this computer.";+ assert.equal(m.serverReason(saved080, 'Ada'), 'The image is from a newer kwant.');assert.match(plain(card('new_code', {}, tpl)), /^Something went wrong \(new_code\)\./);assert.equal(card('new_code').row, 'unknown');assert.deepEqual(card('new_code').actions, ['retry', 'computer']);@@ -116,8 +121,8 @@ test('unknown code: the server’s own words win over "Something went wrong"', (test('notice 6: unsafe folder, by kind, with ~ and Change folder for a team', () => {const c = card('unsafe_folder', { folder: '/home/oleks', folder_from: 'team', team_id: 't1', team_name: 'Checkout', unsafe_kind: 'home' });- assert.equal(c.first, 'Ada didn’t reply: Claude can’t use this folder inside the VM.');- assert.equal(plain(c), '~ is your home folder. Inside the VM, Claude would see all your files and sign-ins. Pick a project folder for @Checkout instead, then Retry.');+ assert.equal(c.first, 'Ada didn’t reply: Claude can’t take this folder into its sealed box.');+ assert.equal(plain(c), '~ is your home folder. In its sealed box, Claude would see all your files and sign-ins. Pick a project folder for @Checkout instead, then Retry.');assert.equal(c.reason[0].folder, true);assert.equal(c.safety, 'unsafe');assert.deepEqual(c.actions, ['change_folder', 'retry']);@@ -158,14 +163,14 @@ test('notice 6b: the shared folder has no path and asks for the team’s own foltest('notice 7: Codex or Grok in a folder Claude used', () => {const team = card('folder_used_by_isolated_bot', { engine: 'codex', folder: '/home/oleks/shop', folder_from: 'team', team_id: 't1', team_name: 'Checkout' });- assert.equal(team.first, 'Ada didn’t reply: Codex won’t run in a folder Claude used inside the VM.');+ assert.equal(team.first, 'Ada didn’t reply: Codex won’t run in a folder Claude used in its sealed box.');assert.match(plain(team), /left settings in ~\/shop that Codex would load/);assert.match(plain(team), /Switch Ada to Claude, or pick another folder for @Checkout, then Retry\.$/);assert.deepEqual(team.actions, ['edit_bot', 'change_folder']);assert.equal(team.safety, 'folder_used');const bot = card('folder_used_by_isolated_bot', { engine: 'grok', folder: '/x', folder_from: 'bot' });- assert.match(plain(bot), /^Ada used this folder as Claude inside the VM.*Grok would load.*Switch Ada back to Claude to keep working here\.$/);+ assert.match(plain(bot), /^Ada used this folder as Claude in its sealed box.*Grok would load.*Switch Ada back to Claude to keep working here\.$/);assert.deepEqual(bot.actions, ['edit_bot', 'retry']);const other = card('folder_used_by_isolated_bot', { engine: 'codex', folder_from: 'goal' });diff --git a/frontend/tests/queuedChip.test.mjs b/frontend/tests/queuedChip.test.mjsnew file mode 100644index 00000000..cc0f8266--- /dev/null+++ b/frontend/tests/queuedChip.test.mjs@@ -0,0 +1,27 @@+// 0.8.0 F (Rigel's 0.7.7 final check): the conversation tab's "Queued · #N" chip and the phone+// header's dot are grey like the in-chat "In line" line; amber stays for "waiting on you".+import assert from 'node:assert/strict';+import test from 'node:test';+import { loadBundled } from './bundle.mjs';++const m = await loadBundled(`+ import React from 'react';+ import { renderToStaticMarkup } from 'react-dom/server.browser';+ import { StatusBadge, statusDot } from './src/components/ThreadBar';+ export const badge = (b) => renderToStaticMarkup(React.createElement(StatusBadge, { badge: b }));+ export { statusDot };+`);++test('the queued tab chip is zinc, not amber', () => {+ const html = m.badge({ kind: 'queued', label: 'Queued · #2' });+ assert.match(html, /Queued · #2/);+ assert.match(html, /text-zinc-300 bg-zinc-800\/60 border-zinc-600/);+ assert.doesNotMatch(html, /amber/);+ assert.match(m.badge({ kind: 'waiting', label: 'Waiting for you' }), /text-amber-300/, 'waiting on you stays amber');+});++test('the phone header dot: grey when queued, amber when waiting on you', () => {+ assert.deepEqual(m.statusDot({ kind: 'queued', label: 'Queued · #1' }), { tone: 'queued', label: 'Queued · #1' });+ assert.deepEqual(m.statusDot({ kind: 'waiting', label: 'Waiting for you' }), { tone: 'waiting', label: 'Waiting for you' });+ assert.equal(m.statusDot({ kind: 'done', label: 'Done' }), null);+});diff --git a/frontend/tests/wording.test.mjs b/frontend/tests/wording.test.mjsindex a5c467e2..b41dc209 100644--- a/frontend/tests/wording.test.mjs+++ b/frontend/tests/wording.test.mjs@@ -26,7 +26,7 @@ const MAESTRO = /\bAgent Maestro\b/g;// as the subject in these three sentences only.// Run Claude inside the VM (0.7.7): Mira's ui-check-450 must-fix 2 names kwant, the program on the computer,// in these settings and chat-notice sentences ("Restart kwant" is what a person on a phone has to do).-const RULED = /\bso kwant can read\b|\bmanifests kwant knows\b|\bnames kwant knows\b|\bkwant’s (?:browser|log|own data)\b|\bkwant (?:adds it|couldn’t|won’t share|keeps|is running as root|can’t pass)\b|\b[Rr]estart kwant\b|\bStart kwant as\b/g;+const RULED = /\bso kwant can read\b|\bmanifests kwant knows\b|\bnames kwant knows\b|\bkwant’s (?:browser|log|own data|tools)\b|\bkwant (?:adds it|couldn’t|won’t share|keeps|is running as root|can’t pass)\b|\b[Rr]estart kwant\b|\bStart kwant as\b/g;/** Whether a literal reads like text a person sees (a sentence, or a capitalised word). */const looksVisible = (text, node) => {diff --git a/src/sandbox/agent_vm/mod.rs b/src/sandbox/agent_vm/mod.rsindex b08929e3..bde08a42 100644--- a/src/sandbox/agent_vm/mod.rs+++ b/src/sandbox/agent_vm/mod.rs@@ -202,7 +202,7 @@ pub fn toggle_message(reason: &str) -> &'static str {"mac_later" => "Coming to Mac later. For now, Claude runs on this computer in both modes.","not_supported_yet" => "Only on Linux for now. Claude runs on this computer in both modes.",codes::DOCKER_UNAVAILABLE => "Start Docker to turn this on.",- _ => "Run Claude inside the VM can't be turned on here right now.",+ _ => "Key protection can't be turned on here right now.",}}diff --git a/src/sandbox/agent_vm/notice.rs b/src/sandbox/agent_vm/notice.rsindex fb30a646..c5d9d0dc 100644--- a/src/sandbox/agent_vm/notice.rs+++ b/src/sandbox/agent_vm/notice.rs@@ -58,7 +58,7 @@ pub mod body {}/// The safety line shared by notices 1–3 and the rows below: nothing ran outside the VM.-pub const SAFETY: &str = "While Run Claude inside the VM is on, Claude never runs outside it, so nothing ran on this computer.";+pub const SAFETY: &str = "While key protection is on, Claude never runs outside its sealed box, so nothing ran on this computer.";/// The chat text saved with a `turn_isolation_failed` notice that stopped Claude before it/// started (Mira's notices 1, 2, 2b, 2c, 4 and the rows of ui-check-446 fix 4). The card is drawn@@ -67,9 +67,9 @@ pub const SAFETY: &str = "While Run Claude inside the VM is on, Claude never run/// row is only for a code a newer kwant adds. `unsafe_folder` with its folder is/// [`unsafe_folder_text`].pub fn start_text(bot: &str, reason: &str) -> String {- let couldnt_start = format!("{bot} didn't reply: Claude couldn't start inside the VM.");- let not_ready = format!("{bot} didn't reply: Claude's VM isn't ready yet.");- let this_folder = format!("{bot} didn't reply: Claude can't use this folder inside the VM.");+ let couldnt_start = format!("{bot} didn't reply: Claude's sealed box couldn't start.");+ let not_ready = format!("{bot} didn't reply: Claude's sealed box isn't ready yet.");+ let this_folder = format!("{bot} didn't reply: Claude can't take this folder into its sealed box.");match reason {"docker_unavailable" => format!("{couldnt_start} Docker isn't running on this computer. Start Docker, then Retry. {SAFETY}"),"preparing" => format!("{not_ready} The one-time download is still running. Retry when it's done. {SAFETY}"),@@ -82,24 +82,24 @@ pub fn start_text(bot: &str, reason: &str) -> String {"{bot} didn't reply: there's no Claude sign-in for it on this computer. Sign in to Claude in Settings › This space › Accounts, then Retry."),"host_is_root" => format!(- "{couldnt_start} kwant is running as root, so Claude can't run inside the VM as you. Start kwant as your normal user, then Retry. {SAFETY}"+ "{couldnt_start} kwant is running as root, so Claude's sealed box can't run as you. Start kwant as your normal user, then Retry. {SAFETY}"),"folder_name_unsupported" => format!(- "{this_folder} The folder's name has characters kwant can't pass to the VM, like a line break. Rename the folder, then Retry. Nothing ran."+ "{this_folder} The folder's name has characters kwant can't pass to Claude's sealed box, like a line break. Rename the folder, then Retry. Nothing ran."),"folder_record_failed" => format!(- "{couldnt_start} kwant couldn't note that this folder is used inside the VM, so it didn't start Claude. Retry; if it keeps happening, restart kwant. {SAFETY}"+ "{couldnt_start} kwant couldn't note that this folder is used by Claude's sealed box, so it didn't start Claude. Retry; if it keeps happening, restart kwant. {SAFETY}"),- "container_failed" => format!("{couldnt_start} The VM couldn't start Claude. Retry; if it keeps happening, restart Docker. {SAFETY}"),+ "container_failed" => format!("{couldnt_start} Docker couldn't start it. Retry; if it keeps happening, restart Docker. {SAFETY}"),"unsupported_os" => format!(- "{couldnt_start} Isolation is only on Linux for now. Turn off Run Claude inside the VM to run Claude on this computer. {SAFETY}"+ "{couldnt_start} Isolation is only on Linux for now. Turn off key protection to run Claude on this computer. {SAFETY}"),// Without its folder (Mira's "missing or unknown" row)reason::UNSAFE_FOLDER => format!(- "{this_folder} This folder holds your home folder or sign-ins, so kwant won't share it with the VM. Pick a project folder instead, then Retry. Nothing ran."+ "{this_folder} This folder holds your home folder or sign-ins, so kwant won't share it with Claude's sealed box. Pick a project folder instead, then Retry. Nothing ran."),code => format!(- "{couldnt_start} Something went wrong ({code}). Retry, or turn off Run Claude inside the VM to run Claude on this computer. {SAFETY}"+ "{couldnt_start} Something went wrong ({code}). Retry, or turn off key protection to run Claude on this computer. {SAFETY}"),}}@@ -109,17 +109,17 @@ pub fn start_text(bot: &str, reason: &str) -> String {pub fn unsafe_folder_text(bot: &str, kind: UnsafeKind, folder: &FolderInfo, home: Option<&Path>) -> String {let shown = tilde(&folder.folder, home);let team = folder.team.as_ref().map(|(_, name)| name.as_str());- let first = format!("{bot} didn't reply: Claude can't use this folder inside the VM.");+ let first = format!("{bot} didn't reply: Claude can't take this folder into its sealed box.");let why = match kind {- UnsafeKind::Home => format!("{shown} is your home folder. Inside the VM, Claude would see all your files and sign-ins."),+ UnsafeKind::Home => format!("{shown} is your home folder. In its sealed box, Claude would see all your files and sign-ins."),UnsafeKind::ContainsHome | UnsafeKind::Root => {- format!("{shown} holds your home folder. Inside the VM, Claude would see all your files and sign-ins.")+ format!("{shown} holds your home folder. In its sealed box, Claude would see all your files and sign-ins.")}UnsafeKind::SignIns => format!(- "{shown} holds sign-ins, like your SSH keys or Claude, Codex or Grok sign-in, so kwant won't share it with the VM."+ "{shown} holds sign-ins, like your SSH keys or Claude, Codex or Grok sign-in, so kwant won't share it with Claude's sealed box."),- UnsafeKind::KwantData => format!("{shown} holds kwant's own data, including your sign-ins, so kwant won't share it with the VM."),- UnsafeKind::Docker => format!("{shown} holds Docker's control socket, which would let Claude out of the VM."),+ UnsafeKind::KwantData => format!("{shown} holds kwant's own data, including your sign-ins, so kwant won't share it with Claude's sealed box."),+ UnsafeKind::Docker => format!("{shown} holds Docker's control socket, which would let Claude out of its sealed box."),// No path: kwant's own path means nothing to peopleUnsafeKind::SharedFolder => {let give = match team {@@ -127,7 +127,7 @@ pub fn unsafe_folder_text(bot: &str, kind: UnsafeKind, folder: &FolderInfo, homeNone => "Give this team its own folder".into(),};return format!(- "{first} This is the folder teams share when they don't have their own. If Claude used it inside the VM, Codex and Grok bots in every team would be kept out of it. {give}, then Retry. Nothing ran."+ "{first} This is the folder teams share when they don't have their own. If Claude took it into its sealed box, Codex and Grok bots in every team would be kept out of it. {give}, then Retry. Nothing ran.");}};@@ -153,7 +153,7 @@ pub fn tilde(folder: &str, home: Option<&Path>) -> String {/// The text saved when an isolated reply stopped partway (notice 3).pub fn mid_turn_text(bot: &str) -> String {format!(- "{bot}'s reply stopped partway: Claude lost its connection inside the VM. What it changed before that is in the task folder, and Undo still works. Retry to start the reply again. {SAFETY}"+ "{bot}'s reply stopped partway: Claude's sealed box lost its connection. What it changed before that is in the task folder, and Undo still works. Retry to start the reply again. {SAFETY}")}@@ -165,7 +165,7 @@ pub fn folder_used_text(bot: &str, engine: &str) -> String {other => other,};format!(- "{bot} didn't reply: {engine} won't run in a folder Claude used inside the VM. A bot inside the VM could have left settings there that {engine} would load on this computer, so kwant keeps {engine} out of it for now. Switch {bot} to Claude, or pick another folder, then Retry. Nothing ran."+ "{bot} didn't reply: {engine} won't run in a folder Claude used in its sealed box. A Claude bot in its sealed box could have left settings there that {engine} would load on this computer, so kwant keeps {engine} out of it for now. Switch {bot} to Claude, or pick another folder, then Retry. Nothing ran.")}@@ -302,8 +302,8 @@ mod tests {#[test]fn saved_texts_use_miras_first_lines_and_never_claim_a_host_run() {- assert!(start_text("Ada", "docker_unavailable").starts_with("Ada didn't reply: Claude couldn't start inside the VM. Docker isn't running"));- assert!(start_text("Ada", "preparing").starts_with("Ada didn't reply: Claude's VM isn't ready yet."));+ assert!(start_text("Ada", "docker_unavailable").starts_with("Ada didn't reply: Claude's sealed box couldn't start. Docker isn't running"));+ assert!(start_text("Ada", "preparing").starts_with("Ada didn't reply: Claude's sealed box isn't ready yet."));assert!(start_text("Ada", "sign_in_expired").contains("Settings › This space › Accounts"));for r in ["docker_unavailable", "preparing", "download_failed", "relay_down", "container_failed", "host_is_root", "folder_record_failed", "unsupported_os"] {assert!(start_text("Ada", r).ends_with(SAFETY), "{r}");@@ -312,10 +312,10 @@ mod tests {assert!(start_text("Ada", "brand_new").contains("Something went wrong (brand_new)"));// Notice 3 has the safety line too (ui-check-446 fix 10)let mid = mid_turn_text("Ada");- assert!(mid.starts_with("Ada's reply stopped partway: Claude lost its connection inside the VM."), "{mid}");+ assert!(mid.starts_with("Ada's reply stopped partway: Claude's sealed box lost its connection."), "{mid}");assert!(mid.ends_with(SAFETY), "{mid}");let used = folder_used_text("Rex", "codex");- assert!(used.starts_with("Rex didn't reply: Codex won't run in a folder Claude used inside the VM."), "{used}");+ assert!(used.starts_with("Rex didn't reply: Codex won't run in a folder Claude used in its sealed box."), "{used}");}#[test]@@ -348,7 +348,7 @@ mod tests {let t = unsafe_folder_text("Ada", UnsafeKind::Home, &bot, Some(home));assert_eq!(t,- "Ada didn't reply: Claude can't use this folder inside the VM. ~ is your home folder. Inside the VM, Claude would see all your files and sign-ins. Pick a project folder instead, then Retry. Nothing ran."+ "Ada didn't reply: Claude can't take this folder into its sealed box. ~ is your home folder. In its sealed box, Claude would see all your files and sign-ins. Pick a project folder instead, then Retry. Nothing ran.");assert_eq!(t.matches("Pick a project folder").count(), 1, "{t}");assert!(!t.contains("the computer"), "{t}");@@ -367,7 +367,7 @@ mod tests {for (kind, words) in [(UnsafeKind::Root, "/ holds your home folder."),(UnsafeKind::KwantData, "holds kwant's own data, including your sign-ins"),- (UnsafeKind::Docker, "holds Docker's control socket, which would let Claude out of the VM."),+ (UnsafeKind::Docker, "holds Docker's control socket, which would let Claude out of its sealed box."),] {let f = FolderInfo::new(Path::new(if kind == UnsafeKind::Root { "/" } else { "/srv/x" }), FolderFrom::Bot);let t = unsafe_folder_text("Ada", kind, &f, Some(home));