Commit 5616c84
committed
Fix real-time output clearing synchronization
Improve output clearing to work properly in collaborative environments by:
1. Immediate YDoc clearing: Clear outputs from shared document first for instant real-time sync to all connected clients
2. Async disk cleanup: Make API call to clear disk storage as secondary operation
3. Better error handling: Add early returns and improved error messages
4. Enhanced reliability: Real-time collaboration works even if disk API fails
This fixes the issue where one user clearing outputs wouldn't be visible to other users until they reloaded the notebook.1 parent ad7c30d commit 5616c84
1 file changed
+15
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
351 | 360 | | |
352 | 361 | | |
| 362 | + | |
353 | 363 | | |
354 | 364 | | |
355 | 365 | | |
| |||
361 | 371 | | |
362 | 372 | | |
363 | 373 | | |
| 374 | + | |
364 | 375 | | |
365 | 376 | | |
| 377 | + | |
366 | 378 | | |
367 | | - | |
368 | 379 | | |
369 | 380 | | |
370 | 381 | | |
371 | 382 | | |
372 | | - | |
| 383 | + | |
373 | 384 | | |
374 | 385 | | |
375 | | - | |
| 386 | + | |
376 | 387 | | |
377 | 388 | | |
378 | | - | |
| 389 | + | |
379 | 390 | | |
380 | 391 | | |
0 commit comments