fix(ux): reduce SSH wait verbosity and clarify agent handoff (#3056)

- Replace repeated 'SSH port closed (N/36)' with periodic updates every 5 attempts
- Add clear 'Provisioning complete. Connecting...' line before agent attach

Fixes #3053

Agent: ux-engineer

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
A 2026-03-27 01:22:46 -07:00 committed by GitHub
parent e0dca0cad9
commit e44705d925
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -725,7 +725,7 @@ async function postInstall(
process.exit(0);
}
logStep("Starting agent...");
logStep("Provisioning complete. Connecting to agent session...");
// Reset terminal state before handing off to the interactive SSH session.
// @clack/prompts may have left the cursor hidden or set ANSI attributes

View file

@ -347,7 +347,9 @@ export async function waitForSsh(opts: WaitForSshOpts): Promise<void> {
logInfo("SSH port 22 is open");
break;
}
logStepInline(`SSH port closed (${attempt}/${maxAttempts})`);
if (attempt % 5 === 0 || attempt === 1) {
logStepInline(`Waiting for SSH port... (${attempt}/${maxAttempts} attempts)`);
}
await sleep(2000);
}