Skip to content

Conversation

@jnarowski
Copy link
Owner

Summary

  • Improved WebSocket reconnection UX by eliminating duplicate toasts on mobile app reopen
  • Added network status detection and auto-reconnect when connection restored
  • Enhanced ConnectionStatusBanner to show offline state with priority
  • Moved spec to done folder after successful implementation and review

Key Changes

  • Network Detection: Created useNetworkStatus hook to listen for online/offline events and trigger auto-reconnect
  • Banner Enhancements: Updated ConnectionStatusBanner to display "You're offline" when network is down
  • Provider Updates: Added network listener to WebSocketProvider for seamless mobile experience
  • Type Safety: Added isOnline property to WebSocketContext interface

Files Modified

  • apps/app/src/client/hooks/useNetworkStatus.ts (new)
  • apps/app/src/client/providers/WebSocketProvider.tsx
  • apps/app/src/client/components/ConnectionStatusBanner.tsx
  • apps/app/src/client/contexts/WebSocketContext.ts
  • apps/app/src/client/layouts/AppLayout.tsx
  • .agent/specs/index.json - moved spec to done folder

🤖 Generated with Claude Code

@vercel
Copy link
Contributor

vercel bot commented Nov 29, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
agentcmd-website Ready Ready Preview Comment Nov 29, 2025 2:09pm

@jnarowski jnarowski merged commit c1629bc into main Nov 29, 2025
1 of 3 checks passed
@jnarowski jnarowski deleted the feature/websocket-reconnection-ux-improvements branch December 1, 2025 15:57
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.

3 participants