Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.08 KB

File metadata and controls

28 lines (22 loc) · 1.08 KB
type Feature
title Live Sync
description Bundles stay current as their files change — local folders are watched and the UI is patched in place without losing state.
resource https://github.com/ryansann/okfview/blob/main/src/main/sources/local.ts
tags
sync
watching
realtime
timestamp 2026-06-18 00:00:00 UTC

Live Sync

A core differentiator: open a bundle and edit its files, and okfview reflects the change near-instantly.

How it works

  1. A source adapter watches the origin — chokidar for local folders, polling for git/HTTP.
  2. On change, the main process re-loads and re-parses via the OKF core and emits a change event over the context bridge.
  3. The renderer patches the bundle in its store in place — selection, scroll, graph layout, and MCP scope are preserved.

Notes

Because reads always reflect the live workspace, agents connected over MCP see the same fresh state with no extra work. The same persisted bundle list powers Recents, so reopen and live reload use the same source path.