Repository navigation
Stop lore_sync_now from freezing the hosted server while it waits - #20
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
lore wwwserves the board and every agent's hosted MCP session from one Node process.refresh(behindlore_sync_now) waited for the host's sync unit withexecFileSync, 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
refreshis async and its host commands run through a promisifiedexecFile, 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