ANG-011:Incremental updates via workspace events - #16
Open
yugalkaushik wants to merge 1 commit into
Open
Conversation
yugalkaushik
commented
Aug 4, 2026
Collaborator
- Live updates without reopening the panel
- Listens to Joplin workspace events: note changed, note selected, sync completed
- When you edit a note, the graph updates automatically after a short delay instead of needing a manual refresh
- Two ways of detecting what changed
- Uses Joplin's /events API with a saved cursor to catch new, updated, and deleted notes
- When AI is on, also sweeps the getEmbeddings API with its own saved cursor to catch notes that got re-embedded
- If AI is off, it just relies on /events for everything
- Graph is now cached on disk
- The built graph itself (not just embeddings) is saved to a local SQLite database
- Reopening the panel loads instantly from this cache instead of recomputing the whole graph from scratch
- Partial graph updates instead of full rebuilds
- Added a diffing step that compares the old graph to the new one and figures out exactly which nodes and edges were added, changed, or removed
- The webview applies just that small patch instead of tearing down and rebuilding the whole graph
- Nodes that weren't touched keep their position on screen instead of jumping around on every edit
- Small logic changes to support all this
- Tag edges now get a stable, order independent identity so they don't flicker during partial updates
- The graph builder now assigns explicit IDs to edges so the diffing step can match them up between rebuilds
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.