Skip to content

fix: add --yes flag to init instructions for non-interactive use (#534)#682

Merged
bensig merged 1 commit intoMemPalace:developfrom
jphein:fix/init-yes-flag
Apr 12, 2026
Merged

fix: add --yes flag to init instructions for non-interactive use (#534)#682
bensig merged 1 commit intoMemPalace:developfrom
jphein:fix/init-yes-flag

Conversation

@jphein
Copy link
Copy Markdown
Collaborator

@jphein jphein commented Apr 12, 2026

Summary

  • Add --yes flag to mempalace init in instructions/init.md
  • AI agents calling mempalace init hang on the interactive confirmation prompt — --yes skips it

Files changed

  • mempalace/instructions/init.md — line 44

Test plan

  • Existing tests pass
  • Verify mempalace init --yes <dir> completes without prompting

🤖 Generated with Claude Code

…Palace#534)

AI agents calling `mempalace init` hang on the interactive confirmation
prompt. The --yes flag skips it, enabling automated setup.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Copilot AI review requested due to automatic review settings April 12, 2026 07:08
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the MemPalace setup instructions to avoid mempalace init hanging in non-interactive automation by using a flag that skips the confirmation prompt.

Changes:

  • Update Step 5 command in init.md to use mempalace init --yes <dir>.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +44 to 45
Run `mempalace init --yes <dir>` where `<dir>` is the directory from Step 4.

Copy link

Copilot AI Apr 12, 2026

Choose a reason for hiding this comment

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

Using --yes changes mempalace init behavior to auto-accept detected entities (per CLI help). Since this doc is framed as a user-guided setup, consider keeping the default interactive command (mempalace init <dir>) and mentioning --yes as an option specifically for non-interactive/agent automation, with a brief note about the tradeoff (skips confirmation).

Suggested change
Run `mempalace init --yes <dir>` where `<dir>` is the directory from Step 4.
Run `mempalace init <dir>` where `<dir>` is the directory from Step 4.
For non-interactive or agent-driven automation, you may use
`mempalace init --yes <dir>` instead, but note that `--yes` skips
confirmation and auto-accepts detected entities.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This file (instructions/init.md) is the MCP onboarding prompt — it's read by the AI agent during mempalace_status, not by humans. The agent runs mempalace init programmatically and hangs on the interactive prompt. --yes is the correct default here since the only consumer is an AI agent.

Copy link
Copy Markdown
Collaborator

@bensig bensig 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 + security audit clean.

@bensig bensig merged commit 915b8b2 into MemPalace:develop Apr 12, 2026
9 of 10 checks passed
jphein added a commit to jphein/mempalace that referenced this pull request Apr 12, 2026
Upstream merged MemPalace#682-684 (our splits), MemPalace#687 (dry-run None room),
MemPalace#695/MemPalace#708 (convo_miner full response), MemPalace#732 (0-chunk re-processing),
plus VitePress docs site. Conflicts:
- config.py: take upstream's [^\W_] regex (our MemPalace#683 merged version)
- miner.py: integrate upstream's early-return for tiny files, dedupe
  dry-run read path
- test_miner.py: keep our detect_room tests + upstream's dry-run test
- CONTRIBUTING.md: take upstream's org URL update

Co-Authored-By: Claude Opus 4.6 <[email protected]>
jphein added a commit to jphein/mempalace that referenced this pull request Apr 12, 2026
…ged, add MemPalace#681, bump test count to 715

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@jphein jphein deleted the fix/init-yes-flag branch April 19, 2026 03:51
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.

3 participants