From ac1924eb740457216d1485a30a9cdf527b0d01a0 Mon Sep 17 00:00:00 2001 From: Sebastian Szewczyk Date: Tue, 5 May 2026 12:11:24 +0200 Subject: [PATCH 1/2] Fix tail path in script/macos/run --open_with_launchd for OSS channel. The script hardcoded `tail -f ~/Library/Logs/warp_local.log`, which only exists for the internal local channel. External contributors who build the OSS channel got `tail: ... No such file or directory` even though the app launched successfully. Branch on $WARP_CHANNEL so OSS tails warp-oss.log (verified in app/src/bin/oss.rs) and the local channel keeps its existing path. Also use `tail -F` so the tail survives the brief window before launchd creates the log file. --- script/macos/run | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/script/macos/run b/script/macos/run index a667e096f..159b43230 100755 --- a/script/macos/run +++ b/script/macos/run @@ -134,7 +134,12 @@ if [ "$DONT_OPEN" = false ] ; then if [ "$OPEN_WITH_LAUNCHD" = true ]; then echo "Launching with MacOS application launcher" PATH="" /usr/bin/open "./$WARP_APP_PATH" - tail -f ~/Library/Logs/warp_local.log + if [ "$WARP_CHANNEL" = "local" ]; then + LOG_FILE=~/Library/Logs/warp_local.log + else + LOG_FILE=~/Library/Logs/warp-oss.log + fi + tail -F "$LOG_FILE" else echo "Opening app at ./$WARP_APP_PATH/Contents/MacOS/$WARP_BIN_NAME" "./$WARP_APP_PATH/Contents/MacOS/$WARP_BIN_NAME" "${WARP_ARGS[@]}" From 679b8cb17ddd6a79e5f4da347b4777bb5aa25893 Mon Sep 17 00:00:00 2001 From: Sebastian Szewczyk Date: Tue, 5 May 2026 22:54:31 +0200 Subject: [PATCH 2/2] Make WARP_CHANNEL log-path mapping explicit in script/macos/run. Match `oss` explicitly and warn on unrecognized channels instead of silently using the OSS log path. Addresses review feedback on #10140. --- script/macos/run | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/macos/run b/script/macos/run index 159b43230..42ee2c18b 100755 --- a/script/macos/run +++ b/script/macos/run @@ -136,7 +136,10 @@ if [ "$DONT_OPEN" = false ] ; then PATH="" /usr/bin/open "./$WARP_APP_PATH" if [ "$WARP_CHANNEL" = "local" ]; then LOG_FILE=~/Library/Logs/warp_local.log + elif [ "$WARP_CHANNEL" = "oss" ]; then + LOG_FILE=~/Library/Logs/warp-oss.log else + echo "Warning: unrecognized WARP_CHANNEL '$WARP_CHANNEL', defaulting to OSS log path" >&2 LOG_FILE=~/Library/Logs/warp-oss.log fi tail -F "$LOG_FILE"