Skip to content

fix: --yes flag skips all interactive prompts in init#123

Merged
bensig merged 1 commit intomainfrom
fix/non-interactive-init
Apr 7, 2026
Merged

fix: --yes flag skips all interactive prompts in init#123
bensig merged 1 commit intomainfrom
fix/non-interactive-init

Conversation

@bensig
Copy link
Copy Markdown
Collaborator

@bensig bensig commented Apr 7, 2026

Summary

mempalace init --yes now skips room confirmation in addition to entity detection. Previously --yes only applied to the entity step, so agents and CI would still hit EOFError on the room approval prompt.

Two-line fix: pass yes through cmd_initdetect_rooms_local, skip get_user_approval when set.

Fixes #8

Test plan

  • ruff check . / ruff format --check . pass
  • pytest tests/ -v — 20/20 pass
  • Manually verified: mempalace init sample-project --yes completes without any stdin prompts

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
@bensig bensig merged commit 45c2c92 into main Apr 7, 2026
4 checks passed

print_proposed_structure(project_name, rooms, len(files), source)
approved_rooms = get_user_approval(rooms)
if yes:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

approved_rooms = rooms if yes else get_user_approval(rooms)

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.

Non-interactive mode for all commands (agent-friendly)

2 participants