Skip to content

livesync-bridge: restore bidirectional sync at 60s poll (agent write workflow) - #176

Merged
AlienWalker1995 merged 1 commit into
mainfrom
fix/livesync-bridge-bidirectional-60s
Aug 12, 2026
Merged

livesync-bridge: restore bidirectional sync at 60s poll (agent write workflow)#176
AlienWalker1995 merged 1 commit into
mainfrom
fix/livesync-bridge-bidirectional-60s

Conversation

@AlienWalker1995

Copy link
Copy Markdown
Owner

Restores the disk->CouchDB direction that PR #175 disabled, so agent/host writes to notes/ flow up to CouchDB and devices. Uses a 60s poll interval (vs the original 3s that caused ~128% CPU) — ~6% CPU, writes propagate within a minute. Validated: a file written into notes/ reached CouchDB within the poll window. Supersedes #175's one-way default; set CHOKIDAR_USEPOLLING=0 for a read-only mirror at ~0 CPU.

🤖 Generated with Claude Code

…rite workflow)

PR #175 defaulted the bridge to one-way (CouchDB->disk only) for a pure-RAG read use
case. But agents (Hermes/Claude) and host edits write docs INTO notes/ and need them to
flow UP to CouchDB -> devices, which one-way disabled. Restore bidirectional, but at a
60s poll interval instead of the original 3s: polling stats every file each tick, so 3s
on a ~5k-file vault pegged a core (~128% CPU), while 60s keeps the write workflow
(updates reach CouchDB within a minute) at ~6% CPU.

Validated: a file written into notes/ reached CouchDB within the poll window; idle CPU
is a fraction of the 3s figure. Set USEPOLLING=0 for a read-only mirror at ~0 CPU if
nothing writes to notes/ host-side.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@AlienWalker1995
AlienWalker1995 merged commit 75776c6 into main Aug 12, 2026
3 checks passed
@AlienWalker1995
AlienWalker1995 deleted the fix/livesync-bridge-bidirectional-60s branch August 12, 2026 23:41
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