From 70b2dafafeea231e3cdf5cbfcad56ce8e8cc89ad Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Wed, 15 Jul 2026 14:09:05 -0400 Subject: [PATCH] fix(recorder): add SHELL=/bin/sh to script command to prevent fish interference --- recorder.luau | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/recorder.luau b/recorder.luau index fa16102..a492955 100644 --- a/recorder.luau +++ b/recorder.luau @@ -107,8 +107,11 @@ local function buildRecordCmd() end local inner = table.concat(parts, " ") -- pty wrapper: `script -e` propagates ostt's exit code, which the wrapper - -- persists for the monitor service to report. - return "script -qec " .. shq(inner) .. " /dev/null >/dev/null 2>&1; echo $? > " .. shq(exitFile) + -- persists for the monitor service to report. SHELL=/bin/sh is REQUIRED: + -- script(1) runs the command via $SHELL, and fish probes the terminal on + -- startup — those handshake bytes reach ostt's TUI as a phantom Space + -- keypress, pausing the recording instantly (zero samples captured). + return "SHELL=/bin/sh script -qec " .. shq(inner) .. " /dev/null /dev/null 2>&1; echo $? > " .. shq(exitFile) end local function startRecording()