Skip to content

feat: add live diff updates via SSE stream - #5

Closed
dansusman wants to merge 1 commit into
mainfrom
susman/diff-watch
Closed

dansusman wants to merge 1 commit into
mainfrom
susman/diff-watch

Conversation

@dansusman

@dansusman dansusman commented Apr 15, 2026 •

Copy link
Copy Markdown
Owner

Add file system watchers to detect git changes and broadcast updates to connected SSE clients. Introduce new /api/diff/stream endpoint that provides real-time diff and git context updates in local mode.

Add fs and path imports. Export getVcsContext from vcs module. Initialize diffWatchers Set, diffEncoder, heartbeat interval, and fs watchers array. Implement SSE stream handler with heartbeat mechanism and proper cleanup. Add git directory watcher that debounces file changes and refreshes diff state.

plannotator-diff-watch.mp4

Add file system watchers to detect git changes and broadcast
updates to connected SSE clients. Introduce new /api/diff/stream
endpoint that provides real-time diff and git context updates in
local mode.

Add fs and path imports. Export getVcsContext from vcs module.
Initialize diffWatchers Set, diffEncoder, heartbeat interval, and
fs watchers array. Implement SSE stream handler with heartbeat
mechanism and proper cleanup. Add git directory watcher that
debounces file changes and refreshes diff state.
@backnotprop

Copy link
Copy Markdown

That is dope

@dansusman dansusman closed this May 13, 2026
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.

2 participants