Pass TERM environment variable when launching Claude in container
This commit is contained in:
parent
8b276036bf
commit
358c66a073
|
|
@ -116,7 +116,8 @@ export async function claude(workdir: string, opts?: { prompt?: string; print?:
|
|||
"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", "--model", "claude-opus-4-6", "--append-system-prompt", systemPrompt]
|
||||
const term = process.env.TERM || "xterm-256color"
|
||||
const args = ["container", "exec", "-it", "--user", USER, "--workdir", cwd, CONTAINER_NAME, "env", `TERM=${term}`, CLAUDE_BIN, "--dangerously-skip-permissions", "--model", "claude-opus-4-6", "--append-system-prompt", systemPrompt]
|
||||
if (opts?.print) args.push("-p", opts.print)
|
||||
else if (opts?.prompt) args.push(opts.prompt)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user