Files
hermes-agent/tests/tui_gateway
Brooklyn Nicholson 42d70d29ac fix(gateway): broadcast projects.changed when projects.db moves
projects.db is written by the CLI (hermes projects create), other
Desktop windows, and workspace-settings flows — processes that never
touch this gateway's transports, exactly like state.db. The change
watcher had no projects.db signature, so those writes left the Desktop's
project list and folder tree stale until an unrelated refresh (#53046,

Add a projects.changed watch (2s interval, newest mtime across
projects.db + WAL for the watcher home and every served sibling profile,
mirroring the sessions.changed contract), register the event in the
gateway contract (generated TS/OpenRPC refreshed), and route it through
the desktop lifecycle handler into a $projectsChangeTick that
refreshes both the projects list and the sidebar tree.

Fixes #53046
Fixes #56757

Co-authored-by: LeonSGP43 <LeonSGP43@users.noreply.github.com>
2026-09-26 22:37:53 -05:00
..