fix: custom model (#3156)

This commit is contained in:
Aiden Cline
2025-10-13 19:58:19 -05:00
committed by GitHub
parent 4d68ee5d2c
commit 682d30bd12
2 changed files with 14 additions and 10 deletions

View File

@@ -1305,7 +1305,7 @@ export namespace SessionPrompt {
[[ -f ~/.zshenv ]] && source ~/.zshenv >/dev/null 2>&1 || true
[[ -f "\${ZDOTDIR:-$HOME}/.zshrc" ]] && source "\${ZDOTDIR:-$HOME}/.zshrc" >/dev/null 2>&1 || true
${input.command}
`
`,
],
},
bash: {
@@ -1320,15 +1320,11 @@ export namespace SessionPrompt {
},
// Fallback: any shell that doesn't match those above
"": {
args: [
"-c",
"-l",
`${input.command}`,
],
args: ["-c", "-l", `${input.command}`],
},
}
const matchingInvocation = invocations[shellName] ?? invocations[""];
const matchingInvocation = invocations[shellName] ?? invocations[""]
const args = matchingInvocation?.args
const proc = spawn(shell, args, {