Skip to content

Commit 76a4d2c

Browse files
pRizzclaude
andcommitted
fix(quick-deploy): only show IOTP reset hint when it actually works
The bootstrap helper's `reset` command is a no-op when configured users exist (reason: user_exists) — it clears state files but cmd_init_internal immediately detects the existing user and returns user_exists again. Remove the IOTP management section from the "already configured" banner where reset won't help. Keep the reset hint only in the "setup complete" banner (reason: completed) where it genuinely regenerates an IOTP. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f714fa4 commit 76a4d2c

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

scripts/quick-deploy.sh

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -493,14 +493,6 @@ check_status_and_iotp() {
493493
# Display banners
494494
# ---------------------------------------------------------------------------
495495

496-
display_iotp_management() {
497-
local exec_prefix="docker exec $CONTAINER_NAME"
498-
printf ' %sIOTP management:%s\n' "$COLOR_BOLD" "$COLOR_RESET"
499-
printf ' Check status: %s%s /usr/local/bin/opencode-cloud-bootstrap status%s\n' "$COLOR_CYAN" "$exec_prefix" "$COLOR_RESET"
500-
printf ' Reset IOTP: %s%s /usr/local/bin/opencode-cloud-bootstrap reset%s\n' "$COLOR_CYAN" "$exec_prefix" "$COLOR_RESET"
501-
printf '\n'
502-
}
503-
504496
display_useful_commands() {
505497
printf ' %sUseful commands:%s\n' "$COLOR_BOLD" "$COLOR_RESET"
506498
printf ' View logs: docker logs -f %s\n' "$CONTAINER_NAME"
@@ -548,7 +540,6 @@ display_already_configured() {
548540
printf '\n'
549541
printf ' Open %s%s%s and sign in with your existing credentials.\n' "$COLOR_CYAN" "$SERVICE_URL" "$COLOR_RESET"
550542
printf '\n'
551-
display_iotp_management
552543
display_useful_commands
553544
}
554545

@@ -565,7 +556,9 @@ display_setup_complete() {
565556
printf '\n'
566557
printf ' Open %s%s%s and sign in with your credentials.\n' "$COLOR_CYAN" "$SERVICE_URL" "$COLOR_RESET"
567558
printf '\n'
568-
display_iotp_management
559+
printf ' %sTo generate a new IOTP (re-run first-time setup):%s\n' "$COLOR_BOLD" "$COLOR_RESET"
560+
printf ' %sdocker exec %s /usr/local/bin/opencode-cloud-bootstrap reset%s\n' "$COLOR_CYAN" "$CONTAINER_NAME" "$COLOR_RESET"
561+
printf '\n'
569562
display_useful_commands
570563
}
571564

0 commit comments

Comments
 (0)