Skip to content

fix: wire roundhouse telegram params through all deploy paths#44

Merged
royosherove merged 1 commit intomainfrom
feat/roundhouse-pack-fixes
May 5, 2026
Merged

fix: wire roundhouse telegram params through all deploy paths#44
royosherove merged 1 commit intomainfrom
feat/roundhouse-pack-fixes

Conversation

@royosherove
Copy link
Copy Markdown
Member

Codex review found that the roundhouse pack's required parameters (TelegramBotTokenSecret, TelegramUser) were not wired through all deploy paths.

Changes

  • Main installer (install.sh): interactive prompts when roundhouse selected + PARAM arrays updated
  • Terraform: variables.tf, main.tf template vars, userdata.sh.tpl
  • Registry: compatible_profiles restricted to builder (needs Secrets Manager access)
  • Telemetry: added roundhouse to _telem_pack() allowlist
  • Help text: --telegram-bot-token-secret and --telegram-user documented
  • deploy/README.md: roundhouse in pack list

Follows up on commit 031eeca (feat: add roundhouse pack).

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: 5cd4a9e679

ℹ️ 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
echo -e " ${BOLD}Roundhouse requires a Telegram bot token.${NC}"
echo -e " Store it in AWS Secrets Manager and provide the secret id/arn."
echo ""
prompt "Secrets Manager id for Telegram bot token" TELEGRAM_BOT_TOKEN_SECRET ""
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 Skip interactive prompts in non-interactive roundhouse mode

Avoid calling prompt here when -y/--non-interactive is set. prompt() only auto-fills in AUTO_YES mode when the default is non-empty, so this empty-default call still tries to open a TTY; in headless runs (CI/automation) roundhouse installs without explicit --telegram-* flags will hang or fail instead of returning a clear validation error.

Useful? React with 👍 / 👎.

royosherove added a commit that referenced this pull request May 5, 2026
prompt() only auto-fills when default is non-empty; the roundhouse
TELEGRAM_BOT_TOKEN_SECRET / TELEGRAM_USER calls pass an empty default,
so in headless runs (-y/--non-interactive) without the flags the
installer would hang on a TTY read or fail with a confusing error.

Add an explicit AUTO_YES guard before each prompt that fails with a
clear message naming the required flag.

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

Addressed Codex review 4229191543 in 9a2c2ce:

P1 \u2014 fail fast in AUTO_YES without telegram flags: AGREE, FIXED.
prompt() only auto-fills when the default is non-empty, so the two empty-default roundhouse prompts would hang on TTY read under -y. Added explicit AUTO_YES guards before each prompt that fails with a clear message naming the required flag:

  • roundhouse pack requires --telegram-bot-token-secret in non-interactive (-y) mode
  • roundhouse pack requires --telegram-user in non-interactive (-y) mode

Codex review found that the roundhouse pack's required parameters
(TelegramBotTokenSecret, TelegramUser) were not wired through:
- Main installer (install.sh): interactive prompts + PARAM arrays
- Terraform: variables.tf, main.tf template vars, userdata.sh.tpl
- Registry: compatible_profiles restricted to builder (needs SM access)

Also updates deploy/README.md with roundhouse in pack list.
@royosherove royosherove force-pushed the feat/roundhouse-pack-fixes branch from 9a2c2ce to f479805 Compare May 5, 2026 15:21
@royosherove royosherove merged commit 41b45f4 into main May 5, 2026
18 checks passed
@royosherove royosherove deleted the feat/roundhouse-pack-fixes branch May 5, 2026 15:26
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