From 8149a6add397408b4656a67fe7ac0c474167d4e5 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Wed, 25 Feb 2026 12:25:16 -0800 Subject: [PATCH] Accept trust dialog for root project in claude.json --- src/vm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vm.ts b/src/vm.ts index 07fa03d..4737c2c 100644 --- a/src/vm.ts +++ b/src/vm.ts @@ -163,7 +163,7 @@ async function configureEnvironment(home: string, log?: (msg: string) => void, a const settingsJson = JSON.stringify(apiKey ? { apiKeyHelper: "~/.claude/api-key-helper.sh", skipDangerousModePermissionPrompt: true, hooks } : { skipDangerousModePermissionPrompt: true, hooks }) - const claudeJson = JSON.stringify({ hasCompletedOnboarding: true, effortCalloutDismissed: true }) + const claudeJson = JSON.stringify({ hasCompletedOnboarding: true, effortCalloutDismissed: true, projects: { "/": { hasTrustDialogAccepted: true } } }) // Write the helper script to a temp file and copy it in so the key // never appears in a process argument visible in `ps`.