-
Notifications
You must be signed in to change notification settings - Fork 4
fix: Prevent GATT operation errors and queue reducer crashes #559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Add GATT operation queue to serialize Bluetooth writes, preventing "GATT operation already in progress" errors when rapidly switching climbs - Support "latest only" semantics so that when multiple climbs are queued rapidly, only the most recent one gets sent to the board - Add defensive null checks in queue reducer to handle corrupted queue data from IndexedDB or WebSocket, fixing "Cannot read properties of undefined (reading 'climb')" crash
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Claude Review✅ Ready to merge - Minor issues noted below, but nothing blocking. Issues
|
- Add needsResync flag to QueueState to track when corrupted data was filtered - Expose triggerResync function from persistent session context - Update QueueContext to observe the flag and trigger resync automatically - Update test files with new state property
Claude Review✅ Ready to merge - Minor issues noted below, but nothing blocking. Issues
Notes
|
The GATT operation error just logs to console and isn't urgent. Keep only the reducer fix that prevents crashes from corrupted queue data and triggers automatic resync.
Claude Review✅ Ready to merge - Minor issues noted below, but nothing blocking. Issues
|
"GATT operation already in progress" errors when rapidly switching
climbs
queued rapidly, only the most recent one gets sent to the board
data from IndexedDB or WebSocket, fixing "Cannot read properties of
undefined (reading 'climb')" crash