fix: --yes flag skips all interactive prompts in init#123
Merged
Conversation
Pass yes flag through to detect_rooms_local so init --yes skips both entity detection AND room approval prompts. Agents and CI can now run init without interactive input. Fixes #8
This was referenced Apr 7, 2026
tarassh
reviewed
Apr 7, 2026
|
|
||
| print_proposed_structure(project_name, rooms, len(files), source) | ||
| approved_rooms = get_user_approval(rooms) | ||
| if yes: |
There was a problem hiding this comment.
approved_rooms = rooms if yes else get_user_approval(rooms)
This was referenced Apr 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mempalace init --yesnow skips room confirmation in addition to entity detection. Previously--yesonly applied to the entity step, so agents and CI would still hitEOFErroron the room approval prompt.Two-line fix: pass
yesthroughcmd_init→detect_rooms_local, skipget_user_approvalwhen set.Fixes #8
Test plan
ruff check ./ruff format --check .passpytest tests/ -v— 20/20 passmempalace init sample-project --yescompletes without any stdin prompts