Skip to content

fix(init): write project mempalace.json in interactive mode#8

Merged
quangdang46 merged 1 commit into
mainfrom
devin/1779020287-fix-release-issues
May 17, 2026
Merged

fix(init): write project mempalace.json in interactive mode#8
quangdang46 merged 1 commit into
mainfrom
devin/1779020287-fix-release-issues

Conversation

@quangdang46
Copy link
Copy Markdown
Owner

The interactive (non --yes) branch of mpr init <dir> told the user their next step was mpr mine <dir>, but never produced the mempalace.json project config that mpr mine needs. Mining then failed with "No mempalace config found in

".

The --yes path already detects rooms from the folder structure and calls save_project_config; mirror that behaviour after run_onboarding so both paths leave the project ready to mine.

Added a regression test that drives cmd_init with yes=false and MEMPALACE_NONINTERACTIVE=1 and asserts mempalace.json is written and load_config can read it back.

The interactive (non --yes) branch of `mpr init <dir>` told the user
their next step was `mpr mine <dir>`, but never produced the
`mempalace.json` project config that `mpr mine` needs. Mining then
failed with "No mempalace config found in <dir>".

The --yes path already detects rooms from the folder structure and
calls save_project_config; mirror that behaviour after run_onboarding
so both paths leave the project ready to mine.

Added a regression test that drives cmd_init with yes=false and
MEMPALACE_NONINTERACTIVE=1 and asserts mempalace.json is written and
load_config can read it back.
@quangdang46 quangdang46 merged commit e03346f into main May 17, 2026
4 checks passed
@quangdang46 quangdang46 deleted the devin/1779020287-fix-release-issues branch May 17, 2026 12:42
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