From 083c103ab92a42ce2dae337bdeaf7f3f8902a712 Mon Sep 17 00:00:00 2001 From: A <258483684+la14-1@users.noreply.github.com> Date: Wed, 4 Mar 2026 04:16:49 -0800 Subject: [PATCH] fix(run): suppress duplicate failure output on SSH disconnect (exit 255) (#2186) When SSH disconnects with exit code 255, the server is still running. Previously the warn message ("SSH connection lost") was followed by the full reportScriptFailure block, which was contradictory. Now we return undefined after the warn so reportScriptFailure is skipped entirely. Fixes #2185 Agent: issue-fixer Co-authored-by: B <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.5 --- packages/cli/src/commands/run.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/cli/src/commands/run.ts b/packages/cli/src/commands/run.ts index 4f1d60a4..420cad2b 100644 --- a/packages/cli/src/commands/run.ts +++ b/packages/cli/src/commands/run.ts @@ -576,6 +576,7 @@ function runBashScript( console.error(); p.log.warn("SSH connection lost. Your server is likely still running."); p.log.warn("To reconnect, re-run the same spawn command."); + return undefined; // Don't report as failure — user already has clear guidance } return errMsg;