Accept trust dialog for root project in claude.json

This commit is contained in:
Chris Wanstrath 2026-02-25 12:25:16 -08:00
parent 1382f55964
commit 8149a6add3

View File

@ -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`.