v0.3.5 - WebSocket Architecture Refactor
·
25 commits
to master
since this release
What's New
WebSocket Architecture Refactor
- Implemented global WebSocket context with single connection for entire app
- Added declarative hook for cleaner component code
- Real-time progress tracking now works smoothly for both regeneration and crawl operations
Critical Bug Fixes
- Fixed database session lifecycle bug in background tasks that caused failures
- Fixed WebSocket connection race conditions
- Added client ID persistence in sessionStorage
- Fixed dropdown click-through bug in source actions menu
Code Quality Improvements
- Eliminated ~100 lines of duplicate code across components
- Added type-safe WebSocket message constants (Python and TypeScript)
- Consolidated action dialogs and source menu components
- Applied DRY principles throughout codebase
Technical Details
- Single WebSocket connection shared across all components via React Context
- Optimistic UI updates using
- Background tasks now create their own database sessions properly
- WebSocket message types defined as constants in single source of truth
Full Changelog: v0.3.2...v0.3.5