better claude
This commit is contained in:
parent
d4bc102838
commit
6d6afe73fa
|
|
@ -73,7 +73,7 @@ export async function ensure(log?: (msg: string) => void): Promise<void> {
|
|||
const settingsJson = JSON.stringify(apiKey
|
||||
? { apiKeyHelper: "~/.claude/api-key-helper.sh", skipDangerousModePermissionPrompt: true }
|
||||
: { skipDangerousModePermissionPrompt: true })
|
||||
const claudeJson = JSON.stringify({ hasCompletedOnboarding: true })
|
||||
const claudeJson = JSON.stringify({ hasCompletedOnboarding: true, effortCalloutDismissed: 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`.
|
||||
|
|
@ -116,7 +116,7 @@ export async function claude(workdir: string, prompt?: string): Promise<void> {
|
|||
"The host's ~/.sandlot is mounted at /sandlot.",
|
||||
].join("\n")
|
||||
|
||||
const args = ["container", "exec", "-it", "--user", USER, "--workdir", cwd, CONTAINER_NAME, CLAUDE_BIN, "--dangerously-skip-permissions", "--append-system-prompt", systemPrompt]
|
||||
const args = ["container", "exec", "-it", "--user", USER, "--workdir", cwd, CONTAINER_NAME, CLAUDE_BIN, "--dangerously-skip-permissions", "--model", "claude-opus-4-6", "--append-system-prompt", systemPrompt]
|
||||
if (prompt) args.push(prompt)
|
||||
const proc = Bun.spawn(args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" })
|
||||
await proc.exited
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user