fix(coding-agent): avoid interactive fish shortcuts

This commit is contained in:
handlecusion
2026-06-10 16:36:09 +09:00
parent 9820a5233f
commit bbf8216768
2 changed files with 3 additions and 2 deletions
@@ -114,7 +114,7 @@ function isBashShell(shell: string): boolean {
function needsInteractiveShellArg(shell: string): boolean {
const basename = shellBasename(shell);
return basename.includes("zsh") || basename.includes("fish");
return basename.includes("zsh");
}
function supportsAutoUserShell(shell: string): boolean {
@@ -230,7 +230,8 @@ exit 64
expect(result.cancelled).toBe(false);
expect(result.exitCode).toBe(0);
expect(result.output.trim()).toBe("env-shell-ok");
expect(fs.readFileSync(marker, "utf8")).toContain("-l -i -c");
expect(fs.readFileSync(marker, "utf8")).toContain("-l -c");
expect(fs.readFileSync(marker, "utf8")).not.toContain("-i");
} finally {
if (originalShell === undefined) {
delete Bun.env.SHELL;