Skip to content

Commit 7ae8278

Browse files
robstolarzclaude
andcommitted
feat: auto-detect non-interactive terminal and print SSH info instead of PTY
When depot ci ssh is run in a non-interactive context (piped, CI, agent), automatically print SSH connection details instead of attempting to open an interactive PTY session. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c8ca7e8 commit 7ae8278

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/ci/ssh.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ This command is in beta and subject to change.`,
7070
return err
7171
}
7272

73-
if info {
73+
if info || !helpers.IsTerminal() {
7474
return printSSHInfo(sandboxID, sessionID, output)
7575
}
7676

0 commit comments

Comments
 (0)