hermes-agent/apps/desktop/src/app/cron
Brooklyn Nicholson fe64cafa33 feat(desktop): event-driven live sync — change broadcasts replace the always-on polls
One controller (store/live-sync.ts, the workspace-events twin for gateway
state): gateway-event.ts routes pet.changed / cron.changed /
sessions.changed into tick atoms, gated on the active profile like
skin.changed; gateway.ready's change_events flag arms them; a gateway wipe
resets the capability.

Consumers subscribe to ticks and demote their polls to slow backstops
(legacy cadence is kept verbatim against older backends):

- session.active_list 1.5s → sessions.changed + 30s backstop
- cron list 30s → cron.changed + 5min backstop
- messaging lists 10s → trailing sessions.changed refresh + legacy poll
  only when events are unavailable
- open messaging transcript 5s → sessions.changed + 30s backstop
- pet.info 3s/15s → pet.changed, NO timer on event-capable backends
  (users with no pet used to poll hardest); enabled=false broadcasts
  clear the mascot with zero round-trips
- cron runs page/peek 8s → cron.changed + 60s backstop

Idle renderer traffic drops from ~89 req/min to the backstops (~5/min).
Part of #73618.
2026-07-28 17:21:58 -05:00
..
blueprints.test.ts fmt(js): `npm run fix` on merge (#70927) 2026-07-24 18:30:37 +00:00
blueprints.tsx refactor(desktop): fold cron Blueprints into the New Job dialog 2026-07-24 19:16:45 -05:00
cron-job-model.test.ts feat(desktop): per-job model picker in the cron create/edit dialog (#67472) 2026-07-19 05:23:55 -07:00
cron-job-model.ts feat(desktop): per-job model picker in the cron create/edit dialog (#67472) 2026-07-19 05:23:55 -07:00
index.tsx feat(desktop): event-driven live sync — change broadcasts replace the always-on polls 2026-07-28 17:21:58 -05:00
job-state.ts refactor(desktop): merge cron jobLabel/jobTitle into one shared helper 2026-06-06 14:51:13 -05:00