fix(coding-agent): avoid interactive fish shortcuts
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user