Skip to content

fix(setup): align OpenClaw prompt path with MNEMON_DATA_DIR#45

Merged
Grivn merged 1 commit into
masterfrom
fix/openclaw-prompt-data-dir
May 31, 2026
Merged

fix(setup): align OpenClaw prompt path with MNEMON_DATA_DIR#45
Grivn merged 1 commit into
masterfrom
fix/openclaw-prompt-data-dir

Conversation

@Grivn
Copy link
Copy Markdown
Member

@Grivn Grivn commented May 31, 2026

Follow-up to #44.

OpenClaw setup now writes prompt files under ~/.mnemon/prompt, but the OpenClaw bootstrap handler still read only ~/.mnemon/prompt/guide.md. This updates the handler to resolve the guide from MNEMON_DATA_DIR and preserve the legacy fallback, matching the Claude and Codex prime hooks.

Also narrows the promptDir comment so it does not imply full --data-dir runtime support.

Validation:

  • go test ./internal/setup
  • go test ./...

Resolve the OpenClaw prime hook guide path from MNEMON_DATA_DIR with the same legacy ~/.mnemon fallback used by the Claude and Codex hooks. This keeps OpenClaw setup output and runtime guide injection aligned after prompt files move under the data root.

Validation: go test ./internal/setup; go test ./...
@Grivn Grivn merged commit afb2a50 into master May 31, 2026
1 check passed
@Grivn Grivn deleted the fix/openclaw-prompt-data-dir branch May 31, 2026 10:26
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