From d8c6ff47c20a028a37adfca0264b844debaba8f4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 20 Mar 2026 08:07:39 +0000 Subject: [PATCH 1/2] Initial plan From 9447b66f78856549b4eff56201ee3feb3ab82e6b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 20 Mar 2026 08:12:27 +0000 Subject: [PATCH 2/2] fix: restore terminal input for install prompts Co-authored-by: ChangeHow <23733347+ChangeHow@users.noreply.github.com> --- install.sh | 2 +- tests/install-script.test.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index ab6bdb4..2116607 100755 --- a/install.sh +++ b/install.sh @@ -49,4 +49,4 @@ cd "${WORK_DIR}/repo" npm ci --no-fund --no-audit echo "Launching suitup inside zsh..." -zsh -lc 'cd "$1" && shift && node src/cli.js "$@"' -- "${WORK_DIR}/repo" "$@" +zsh -lc 'cd "$1" && shift && node src/cli.js "$@"' -- "${WORK_DIR}/repo" "$@" < /dev/tty diff --git a/tests/install-script.test.js b/tests/install-script.test.js index 9c04302..941ec9e 100644 --- a/tests/install-script.test.js +++ b/tests/install-script.test.js @@ -16,12 +16,13 @@ describe("install.sh", () => { }).not.toThrow(); }); - test("downloads the repo archive, installs dependencies, and launches under zsh", () => { + test("downloads the repo archive, installs dependencies, and launches under zsh with terminal input", () => { const content = readFileSync(INSTALL_SCRIPT, "utf-8"); expect(content).toContain("https://github.com/${REPO_SLUG}/archive/refs/heads/${SUITUP_REF}.tar.gz"); expect(content).toContain("npm ci --no-fund --no-audit"); expect(content).toContain("require_cmd zsh"); expect(content).toContain("zsh -lc"); + expect(content).toContain("< /dev/tty"); }); });