mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-28 03:49:31 +00:00
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:
parent
e0dca0cad9
commit
e44705d925
2 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue