Skip to content

chore: make Enter default to Yes in setup prompts#320

Merged
marcusquinn merged 2 commits intomainfrom
chore/default-yes-prompts
Feb 5, 2026
Merged

chore: make Enter default to Yes in setup prompts#320
marcusquinn merged 2 commits intomainfrom
chore/default-yes-prompts

Conversation

@marcusquinn
Copy link
Owner

@marcusquinn marcusquinn commented Feb 5, 2026

Summary

Changes all (y/n) prompts to [Y/n] format where pressing Enter accepts the default (yes). This improves UX by allowing users to quickly accept recommended options during setup.

Changes

  • setup.sh: 24 prompts updated
  • terminal-title-setup.sh: 2 prompts updated
  • dspyground-helper.sh: 1 prompt updated

Technical Details

  • Changed prompt format from (y/n) to [Y/n]
  • Updated conditionals from == "y" to =~ ^[Yy]?$ (matches y, Y, or empty)
  • Negation syntax uses [[ ! "$var" =~ ^[Yy]?$ ]]

Safety

Destructive operations intentionally keep [y/N] format (default No):

  • Remove worktree prompts
  • Overwrite file prompts
  • Delete job prompts

These require explicit "y" to proceed.

Summary by CodeRabbit

  • Improvements
    • Setup process now defaults to "yes" when you press Enter on interactive confirmation prompts
    • Applies across all setup features including dependencies, components, and configuration tools
    • Visual prompts updated to show "[Y/n]" indicating the default action
    • Reduces setup time and streamlines the overall installation experience

Change all (y/n) prompts to [Y/n] format where pressing Enter
accepts the default (yes). This improves UX by allowing users
to quickly accept recommended options.

- Changed 24 prompts in setup.sh
- Changed 2 prompts in terminal-title-setup.sh
- Changed 1 prompt in dspyground-helper.sh

Note: Destructive operations like 'Remove worktree?' intentionally
keep [y/N] format (default No) for safety.
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 5, 2026

Warning

Rate limit exceeded

@marcusquinn has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 20 minutes and 59 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

Walkthrough

The PR updates interactive shell prompts across three scripts to use "[Y/n]" formatting and modifies acceptance logic to treat empty input as "yes" by replacing strict equality checks with case-insensitive regex patterns.

Changes

Cohort / File(s) Summary
Interactive Prompt Standardization
.agent/scripts/dspyground-helper.sh, .agent/scripts/terminal-title-setup.sh, setup.sh
Updated user prompts from "(y/n)" to "[Y/n]" format to indicate default behavior. Modified input validation logic from strict "y" equality checks to regex patterns accepting empty input, case-insensitive "y", or "Y" as affirmative responses, making Enter key default to "yes".

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

Enter without a word to say,
The scripts now default to "yea" 🚀
[Y/n] brackets bright and clear,
Sensible defaults bring good cheer,
Automation flows with graceful ease,
One keystroke now to please!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the primary change: making Enter default to Yes in setup prompts across multiple shell scripts.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/default-yes-prompts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist
Copy link

Summary of Changes

Hello @marcusquinn, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the user experience of the project's setup scripts by standardizing interactive prompts. It modifies the majority of (y/n) questions to [Y/n], enabling users to quickly proceed with recommended default 'Yes' options by simply hitting Enter. This change is implemented through updates to both the prompt text and the underlying conditional logic, ensuring that non-destructive operations are more efficient to navigate. Crucially, prompts for sensitive or destructive actions are preserved with a [y/N] format, maintaining a default 'No' to prevent accidental operations.

Highlights

  • Improved User Experience for Setup Prompts: Most interactive (y/n) prompts in setup scripts have been updated to [Y/n], allowing users to accept the default 'Yes' by simply pressing Enter.
  • Conditional Logic Updates: The underlying shell script logic for these prompts has been modified to correctly interpret an empty input as 'Yes' using the regex =~ ^[Yy]?$.
  • Safety for Destructive Operations: Prompts for potentially destructive actions (e.g., removing worktrees, overwriting files) explicitly retain a [y/N] format, requiring an explicit 'y' or 'Y' to proceed, ensuring safety.
  • Specific Prompt Discrepancy: One prompt in .agent/scripts/dspyground-helper.sh was visually updated to [Y/n] but its conditional logic was not changed to accept an empty input as 'Yes', meaning it still defaults to 'No' if Enter is pressed.
Changelog
  • .agent/scripts/dspyground-helper.sh
    • Updated 'Continue anyway? (y/n): ' prompt to 'Continue anyway? [Y/n]: '. Note: The conditional logic for this prompt was not updated to accept empty input as 'Yes', meaning it still defaults to 'No' if Enter is pressed.
  • .agent/scripts/terminal-title-setup.sh
    • Changed prompt 'Fix Tabby config to allow dynamic titles? (y/n): ' to 'Fix Tabby config to allow dynamic titles? [Y/n]: '.
    • Updated conditional logic to accept empty input as 'Yes'.
  • setup.sh
    • Modified 24 prompts from (y/n) to [Y/n] format.
    • Updated corresponding conditional logic to interpret empty input as 'Yes' for these prompts.
Activity
  • No specific activity (comments, reviews, or progress updates) has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@github-actions
Copy link

github-actions bot commented Feb 5, 2026

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

�[0;34m[INFO]�[0m Latest Quality Status:
SonarCloud: 0 bugs, 0 vulnerabilities, 2 code smells

�[0;34m[INFO]�[0m Recent monitoring activity:
Thu Feb 5 01:06:59 UTC 2026: Code review monitoring started
Thu Feb 5 01:07:00 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 2
Thu Feb 5 01:07:00 UTC 2026: Qlty - 0 issues found, auto-formatting applied
Thu Feb 5 01:07:02 UTC 2026: Codacy analysis completed with auto-fixes

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 2
  • VULNERABILITIES: 0

Generated on: Thu Feb 5 01:08:36 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request does a great job of improving the user experience by making 'Enter' default to 'Yes' for many prompts. The changes are consistent across multiple files. I've found one critical issue where the logic was not updated to match the new prompt, which would break the intended behavior. I've also pointed out a few places where the conditional logic can be simplified for better readability and consistency. Overall, a good set of changes.

read -p "Continue anyway? (y/n): " -n 1 -r
read -p "Continue anyway? [Y/n]: " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then

Choose a reason for hiding this comment

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

critical

The prompt on line 105 was updated to [Y/n], implying 'Enter' is a valid 'yes' response. However, this conditional was not updated to accept an empty response. This will cause the script to exit when the user presses Enter, which is contrary to the goal of this PR.

Suggested change
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
if [[ ! $REPLY =~ ^[Yy]?$ ]]; then

enable_mt=$(echo "$enable_mt" | tr '[:upper:]' '[:lower:]')

if [[ "$enable_mt" == "y" || "$enable_mt" == "yes" ]]; then
if [[ "$enable_mt" =~ ^[Yy]?$ || "$enable_mt" == "yes" ]]; then

Choose a reason for hiding this comment

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

medium

This condition is a bit complex. Since the input in enable_mt is already lowercased on line 3271, you can simplify this check. The current logic mixes regex matching for single characters with string comparison for "yes". A cleaner and more consistent approach would be to use a single regex that handles all affirmative cases ('y', 'yes', and empty).

Suggested change
if [[ "$enable_mt" =~ ^[Yy]?$ || "$enable_mt" == "yes" ]]; then
if [[ "$enable_mt" =~ ^(y|yes)?$ ]]; then

read -r -p "Update all outdated tools now? [Y/n]: " do_update

if [[ "$do_update" == "y" || "$do_update" == "Y" ]]; then
if [[ "$do_update" =~ ^[Yy]?$ || "$do_update" == "Y" ]]; then

Choose a reason for hiding this comment

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

medium

The || "$do_update" == "Y" part of this condition is redundant. The regex ^[Yy]?$ already matches an uppercase 'Y'. Removing the redundant check will make the code cleaner.

Suggested change
if [[ "$do_update" =~ ^[Yy]?$ || "$do_update" == "Y" ]]; then
if [[ "$do_update" =~ ^[Yy]?$ ]]; then

read -r -p "Launch OpenCode with /onboarding now? (y/n): " launch_onboarding
if [[ "$launch_onboarding" == "y" || "$launch_onboarding" == "Y" ]]; then
read -r -p "Launch OpenCode with /onboarding now? [Y/n]: " launch_onboarding
if [[ "$launch_onboarding" =~ ^[Yy]?$ || "$launch_onboarding" == "Y" ]]; then

Choose a reason for hiding this comment

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

medium

The || "$launch_onboarding" == "Y" part of this condition is redundant because the regex ^[Yy]?$ already handles uppercase 'Y'. You can remove it for cleaner code.

Suggested change
if [[ "$launch_onboarding" =~ ^[Yy]?$ || "$launch_onboarding" == "Y" ]]; then
if [[ "$launch_onboarding" =~ ^[Yy]?$ ]]; then

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.agent/scripts/dspyground-helper.sh (1)

103-109: ⚠️ Potential issue | 🟡 Minor

Align the “[Y/n]” prompt with default‑yes handling.

Line 105 advertises Enter as “yes,” but the check at Line 107 rejects empty input, causing an unexpected exit. Accept empty input (or set a default) to match the prompt.

Proposed fix
-        read -p "Continue anyway? [Y/n]: " -n 1 -r
+        local reply
+        read -r -p "Continue anyway? [Y/n]: " reply
+        reply=${reply:-Y}
         echo
-        if [[ ! $REPLY =~ ^[Yy]$ ]]; then
+        if [[ ! "$reply" =~ ^[Yy]$ ]]; then
             exit 1
         fi

- Change prompts from (y/n) to [Y/n] format so Enter defaults to Yes
- Add run_with_spinner() function with animated spinner for long-running ops
- Apply spinners to: Worktrunk, Tabby, Zed, MiniSim, DSPy, DSPyGround,
  LocalWP MCP, Beads CLI, beads_viewer, beads-ui, bdui, perles
- Preserve [y/N] for destructive operations (safety)
- Improves UX by showing activity during slow installs
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 5, 2026

@github-actions
Copy link

github-actions bot commented Feb 5, 2026

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

�[0;34m[INFO]�[0m Latest Quality Status:
SonarCloud: 0 bugs, 0 vulnerabilities, 2 code smells

�[0;34m[INFO]�[0m Recent monitoring activity:
Thu Feb 5 01:11:49 UTC 2026: Code review monitoring started
Thu Feb 5 01:11:50 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 2
Thu Feb 5 01:11:50 UTC 2026: Qlty - 0 issues found, auto-formatting applied
Thu Feb 5 01:11:52 UTC 2026: Codacy analysis completed with auto-fixes

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 2
  • VULNERABILITIES: 0

Generated on: Thu Feb 5 01:13:16 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

@marcusquinn marcusquinn merged commit 4b7b2c0 into main Feb 5, 2026
11 checks passed
@marcusquinn marcusquinn deleted the chore/default-yes-prompts branch February 21, 2026 01:59
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