Skip to content

feat: welcome box with prerequisites + friendly credential errors#56

Merged
royosherove merged 2 commits intomainfrom
feat/welcome-box
May 6, 2026
Merged

feat: welcome box with prerequisites + friendly credential errors#56
royosherove merged 2 commits intomainfrom
feat/welcome-box

Conversation

@royosherove
Copy link
Copy Markdown
Member

Adds a welcome screen when running the installer interactively:

  • Short intro box with what's needed (admin access, sandbox account)
  • 'Learn more' option expands to detailed prerequisites with links
  • Friendly credential error box replacing raw AWS CLI output
  • Skipped entirely in --non-interactive / -y mode
  • Also bumps telemetron detect timeout 30s → 45s (cold start flush probe)

Codex review requested.

- Add show_welcome() with short intro box and 'Learn more' option
- Show detailed prerequisites (AWS account, credentials, permissions)
- Replace raw AWS CLI error with a helpful box suggesting fixes
- Skip welcome in --non-interactive mode
- Bump telemetron detect timeout from 30s to 45s (cold starts)
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 42d87db9d0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread install.sh Outdated
echo ""

local choice
choice=$($GUM choose --header " Ready?" "Continue" "Learn more" "Quit" 2>/dev/null) || choice="Continue"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve Ctrl-C abort semantics in welcome prompt

Use _gum_or_die (or explicit rc==130 handling) for this gum choose call: the current || choice="Continue" fallback converts every failure into an implicit continue, so pressing Ctrl-C at the welcome step no longer aborts and the installer proceeds into preflight/deploy flow. This regresses the script’s established interrupt behavior (_gum_or_die + cleanup_on_interrupt) and can surprise users who attempted to cancel before any AWS actions.

Useful? React with 👍 / 👎.

The welcome-box gum choose calls used '|| choice="Continue"' as the
failure fallback, which converted Ctrl-C (gum exit 130) into a silent
'Continue' and proceeded into preflight/deploy. That regresses the
installer's established interrupt behavior (_gum_or_die + cleanup_on_interrupt).

Switch both gum choose invocations in show_welcome to _gum_or_die, which
explicitly exits the installer on rc==130 and keeps the 'default to
Continue on other failures (Escape, missing TTY)' behavior for the
non-interrupt case.

Addresses Codex P1 on PR #56.
@royosherove
Copy link
Copy Markdown
Member Author

Addressed Codex review 4239355880 in 622477d:

P1 \u2014 preserve Ctrl-C abort in welcome prompt: AGREE, FIXED.
Right call \u2014 both gum choose calls used || choice="Continue", which collapsed rc==130 (SIGINT) into a silent continue and let Ctrl-C slip through into preflight/deploy. Switched both invocations in show_welcome to _gum_or_die, which explicitly calls cleanup_on_interrupt on rc==130 and preserves the "default to Continue on Escape / missing TTY" behavior for the non-interrupt case.

@royosherove royosherove merged commit 6e1ba11 into main May 6, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant