mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-05 15:40:47 +00:00
fix: use log_step (cyan) for progress messages instead of log_warn (yellow) (#534)
~1500 progress messages across 481 files were using log_warn (yellow) for normal status updates like "Installing...", "Setting up...", "Creating server...", etc. This made users think something was wrong when everything was proceeding normally. Changes: - Replace log_warn with log_step for all progress/status messages - Keep log_warn only for actual warnings (errors, remediation hints) - Remove emoji from 3 sprite completion messages Agent: ux-engineer Co-authored-by: A <6723574+louisgv@users.noreply.github.com>
This commit is contained in:
parent
800e9ed564
commit
0835b35a36
481 changed files with 1602 additions and 1602 deletions
|
|
@ -27,7 +27,7 @@ fi
|
|||
|
||||
ensure_e2b_cli() {
|
||||
if ! command -v e2b &>/dev/null; then
|
||||
log_warn "Installing E2B CLI..."
|
||||
log_step "Installing E2B CLI..."
|
||||
npm install -g @e2b/cli 2>/dev/null || {
|
||||
log_error "Failed to install E2B CLI. Install manually: npm install -g @e2b/cli"
|
||||
return 1
|
||||
|
|
@ -72,7 +72,7 @@ create_server() {
|
|||
local name="${1}"
|
||||
local template="${E2B_TEMPLATE:-base}"
|
||||
|
||||
log_warn "Creating E2B sandbox '${name}' (template: ${template})..."
|
||||
log_step "Creating E2B sandbox '${name}' (template: ${template})..."
|
||||
|
||||
# Create sandbox and capture ID
|
||||
local output
|
||||
|
|
@ -94,7 +94,7 @@ create_server() {
|
|||
}
|
||||
|
||||
wait_for_cloud_init() {
|
||||
log_warn "Installing base tools in sandbox..."
|
||||
log_step "Installing base tools in sandbox..."
|
||||
run_server "apt-get update -y && apt-get install -y curl unzip git zsh" >/dev/null 2>&1 || true
|
||||
run_server "curl -fsSL https://bun.sh/install | bash" >/dev/null 2>&1 || true
|
||||
run_server "curl -fsSL https://claude.ai/install.sh | bash" >/dev/null 2>&1 || true
|
||||
|
|
@ -138,7 +138,7 @@ interactive_session() {
|
|||
|
||||
destroy_server() {
|
||||
local sandbox_id="${1:-${E2B_SANDBOX_ID}}"
|
||||
log_warn "Destroying sandbox ${sandbox_id}..."
|
||||
log_step "Destroying sandbox ${sandbox_id}..."
|
||||
e2b sandbox kill "${sandbox_id}" 2>/dev/null || true
|
||||
log_info "Sandbox destroyed"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue