Skip to content

Stop lore_sync_now from freezing the hosted server while it waits - #20

Merged
nerdburn merged 1 commit into
mainfrom
fix/sync-now-blocks-server
Nov 24, 2026
Merged

nerdburn merged 1 commit into
mainfrom
fix/sync-now-blocks-server

Conversation

@nerdburn

Copy link
Copy Markdown
Owner

Problem

lore www serves the board and every agent's hosted MCP session from one Node process. refresh (behind lore_sync_now) waited for the host's sync unit with execFileSync, with a 45-minute timeout. When an agent asked to sync while a long run was in flight, the whole server stopped answering: the board timed out and other agents' sync calls hung. This happened on 2026-11-24 during a long Merrin backfill.

Fix

refresh is async and its host commands run through a promisified execFile, so the process keeps serving while one session waits.

Testing

npm test: 483 pass, including a new test that other work keeps running during the wait.

🤖 Generated with Claude Code

lore www serves the board and every agent's MCP session from one process.
refresh waited on the host's sync unit with a synchronous exec (up to 45
minutes), so one agent asking to sync during a long run froze the board
and every other session until the run ended. The wait is now async.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@nerdburn
nerdburn merged commit b53e5e1 into main Nov 24, 2026
1 check passed
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