Skip to content

fix: resolve stale realtime updates and cache invalidation#22

Merged
web3dev1337 merged 2 commits intomasterfrom
feature/issue-21-realtime
Mar 27, 2026
Merged

fix: resolve stale realtime updates and cache invalidation#22
web3dev1337 merged 2 commits intomasterfrom
feature/issue-21-realtime

Conversation

@web3dev1337
Copy link
Copy Markdown
Owner

Summary

  • invalidate stale backend caches on mutation events before broadcasting websocket updates
  • reduce dynamic cache TTLs for status/agents/rigs/convoys to improve freshness
  • add frontend forced-refresh pathways (refresh=true) for status/mail/agents/rigs/crews
  • add debounced realtime refresh scheduling with focus/visibility refresh, queued trailing refresh, and reduced background refresh overhead
  • add real-server integration coverage for cache invalidation after rig/service mutations
  • update CODEBASE_DOCUMENTATION.md for new integration test coverage

Validation

  • npm install
  • npm run lint (fails: no lint script in package)
  • npm run build (fails: no build script in package)
  • npm test (39 files, 327 tests)
  • npm run test:e2e (1 file, 27 tests)
  • headless Puppeteer smoke against test/mock-server.js (no page/console/network errors)

Closes #21

@web3dev1337 web3dev1337 merged commit 85f5fd9 into master Mar 27, 2026
5 checks passed
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.

Real-time updates are stale — aggressive caching + missing WebSocket events

1 participant