mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-03 14:20:19 +00:00
fix: use log_step (cyan) for in-progress messages instead of log_info (green) (#768)
In-progress actions (installing, starting, connecting...) should use log_step (cyan) to visually distinguish them from completion messages which use log_info (green). This makes it easier for users to see at a glance what is happening vs what has finished. Changes: - cli/install.sh: add log_step function, use it for install progress - shared/common.sh: OAuth flow and non-interactive exec messages - Cloud libs: interactive_session, auth, and cleanup messages - Agent scripts: gateway startup and session opening messages Agent: ux-engineer Co-authored-by: A <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
5a1037d92c
commit
cdf6f1dba5
11 changed files with 23 additions and 20 deletions
|
|
@ -69,7 +69,7 @@ ensure_gh_cli() {
|
|||
ensure_gh_auth() {
|
||||
if ! gh auth status &>/dev/null; then
|
||||
log_step "Not authenticated with GitHub CLI"
|
||||
log_info "Initiating GitHub CLI authentication..."
|
||||
log_step "Initiating GitHub CLI authentication..."
|
||||
gh auth login || {
|
||||
log_error "Failed to authenticate with GitHub CLI"
|
||||
log_error "Run: gh auth login"
|
||||
|
|
@ -160,7 +160,7 @@ copy_to_codespace() {
|
|||
# Args: $1 = codespace name
|
||||
ssh_to_codespace() {
|
||||
local codespace="$1"
|
||||
log_info "Opening SSH session to codespace..."
|
||||
log_step "Opening SSH session to codespace..."
|
||||
gh codespace ssh --codespace "$codespace"
|
||||
}
|
||||
|
||||
|
|
@ -168,7 +168,7 @@ ssh_to_codespace() {
|
|||
# Args: $1 = codespace name
|
||||
delete_codespace() {
|
||||
local codespace="$1"
|
||||
log_info "Deleting codespace $codespace..."
|
||||
log_step "Deleting codespace $codespace..."
|
||||
gh codespace delete --codespace "$codespace" --force || {
|
||||
log_warn "Failed to delete codespace (may already be deleted)"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue