Files
fusion/.changeset/shared-badge-pubsub.md
gsxdsm ab3dff2100 feat(KB-335): rename environment variables from KB_* to FUSION_*
- Rename all KB_* environment variables to FUSION_* prefix across CLI and dashboard
- Update CLI runtime files (native-patch.ts) and build configuration
- Update dashboard server, badge-pubsub, GitHub webhooks, and terminal service
- Update test files to use new FUSION_API_KEY and related env vars
- Update documentation in README, AGENTS.md, STANDALONE.md, and dashboard README
- Update changeset files with new environment variable names
2026-03-31 17:03:23 -07:00

1.1 KiB

@gsxdsm/fusion
@gsxdsm/fusion
patch

Add shared badge pub/sub support for multi-instance dashboard deployments

The dashboard now supports cross-instance badge update delivery via Redis pub/sub. When running multiple dashboard instances behind a load balancer, badge updates detected on one instance are now delivered to subscribed WebSocket clients on other instances.

Configuration:

  • FUSION_BADGE_PUBSUB_REDIS_URL - Redis connection URL (enables multi-instance mode)
  • FUSION_BADGE_PUBSUB_CHANNEL - Pub/sub channel name (default: fusion:badge-updates)

Features:

  • Badge snapshots are fanned out across instances while preserving per-instance focused polling
  • Echo loop prevention via source instance deduplication
  • Structured snapshot cache for late subscription replay
  • Graceful fallback to in-memory mode when Redis is not configured
  • Clean adapter shutdown without connection leaks

API Changes:

  • ServerOptions now accepts optional badgePubSub and githubPoller for dependency injection
  • Package exports include GitHubPollingService and badge pub/sub interfaces