Skip to content

docs(mcp): warn that musecode does not take Muse Code's settings lock - #3688

Merged
dyoshikawa merged 2 commits into
mainfrom
resolve-issue-3498-musecode-lock-docs
Oct 29, 2026
Merged

dyoshikawa merged 2 commits into
mainfrom
resolve-issue-3498-musecode-lock-docs

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

Documents a known limitation of the musecode MCP target: Muse Code serializes writes to ~/.config/muse/settings.json with an advisory flock on the sibling .settings.json.lock (confirmed on Muse Code 1.4.7 / Linux in #3498), but Rulesync does not take that lock. It reads the settings early in generate and writes them back later, so a concurrent Muse Code write can be lost.

Node.js has no portable flock (a native dependency would also affect the Bun-compiled release binaries), so for now the Meta Muse Code MCP note in docs/reference/file-formats.md tells users not to run rulesync generate --global for musecode while Muse Code may be changing its settings.

Refs #3498. The issue stays open for a lock-scoped read/patch/write implementation that needs no native dependency.

Test plan

  • pnpm cicheck:content

🤖 Generated with Claude Code

https://claude.ai/code/session_0179ZomNiDQHCzgoxeRVmfth

dyoshikawa and others added 2 commits October 29, 2026 14:14
Muse Code serializes writes to ~/.config/muse/settings.json with an
advisory flock on .settings.json.lock. Rulesync reads the file early in
generate and writes it back later without that lock, so a concurrent
Muse Code write can be lost. Node.js has no portable flock, so document
the limitation and when generating is safe.

Refs #3498

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0179ZomNiDQHCzgoxeRVmfth
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0179ZomNiDQHCzgoxeRVmfth
@dyoshikawa
dyoshikawa merged commit 98caaad into main Oct 29, 2026
9 checks passed
@dyoshikawa
dyoshikawa deleted the resolve-issue-3498-musecode-lock-docs branch October 29, 2026 05:30
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