Conversation
We were chunking JSON on the client-side but the TLUserDO wasn't able to parse them. We didn't start running into this until the new fairy work. ### Change type - [x] `bugfix` - [ ] `improvement` - [ ] `feature` - [ ] `api` - [ ] `other` ### Release notes - handle large socket messages to `TLUserDurableObject` ### API changes Handle large socket messages to `TLUserDurableObject` <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Adds server-side JSON chunk assembly for large WebSocket messages and exports JsonChunkAssembler from sync-core. > > - **Sync worker (`TLUserDurableObject`)**: > - Use `JsonChunkAssembler` to reassemble chunked WebSocket messages before processing. > - Handle incomplete and invalid chunk sequences with early returns/error capture. > - **sync-core**: > - Add and export `JsonChunkAssembler` in `src/lib/chunk.ts` and `src/index.ts`. > - Update API surface (`api-report.api.md`) to include `JsonChunkAssembler`. > - Minor JSDoc/escaping adjustments in `chunk.ts` docs. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit e715cd1. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: Max Drake <maxdrake46@gmail.com>
We added the image contextual toolbar but forgot to move the rotate handle. Oooops. Thanks @max-drake for noticing! <img width="1212" height="1296" alt="Screenshot 2025-09-11 at 18 25 51" src="https://github.com/user-attachments/assets/7828486f-d57a-4c71-8b51-cf4bbf5aada8" /> This puts the handle on the bottom, just for images/videos. Open to other ideas, like putting it on the side. ### Change type - [x] `bugfix` - [ ] `improvement` - [ ] `feature` - [ ] `api` - [ ] `other` ### Release notes - media: move mobile rotate handle to bottom to accomodate the toolbar <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Positions the mobile rotate handle below image/video selections (avoiding the contextual toolbar based on rotation), otherwise keeps previous placement. > > - **UI – selection overlay (`packages/tldraw/src/lib/canvas/TldrawSelectionForeground.tsx`)** > - **Mobile rotate handle**: For media shapes (`image`, `video`), move `MobileRotateHandle` to the bottom; fallback to top when selection is too close to the contextual toolbar or when very small. > - **Rotation-aware logic**: Use `selectionRotation` and `HALF_PI` to determine toolbar proximity and handle placement. > - **Media detection**: Introduce `isMediaShape` via `TLImageShape`/`TLVideoShape` checks. > - Minor refactor: store `selectionRotation` before `useTransform`. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 18cf815. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
### Change type - [ ] `bugfix` - [ ] `improvement` - [ ] `feature` - [ ] `api` - [x] `other` <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Replaces shared todos with a per-page Fairy Tasks/Projects system and refactors agents to new mode/actions architecture, alongside significant UI, persistence, worker, and editor API updates. > > - **Architecture/Agent**: > - Introduce mode-based agent framework (`idling/soloing/working/orchestrating`) via `FairyModeDefinition`; remove wands. > - Consolidate and expand action schemas (tasks, projects, pages, sleep, etc.); update prompt part system with definitions and logging/debug flags. > - Track cumulative token usage; ensure fairies act on correct page; add follow/summon behavior. > - **Data/Persistence**: > - Replace shared todos with `FairyTask` and `FairyProject`; persist tasks/projects and update `PersistedFairyState`. > - Filter fairies/tasks by current page. > - **UI**: > - New task list (inline, dropdown, context menu), in-canvas task rendering, revamped HUD/sidebar, group chat updates, i18n labels, and a comprehensive Fairy Debug dialog. > - Context/dropdown z-index fixes; select tool namespaced (`select.fairy-throw`, `select.task-drag`). > - **Worker/Backend**: > - Add admin detection/header; optional logging of system prompt/messages; stream usage metadata. > - **Editor API**: > - `setTool`/`removeTool` accept optional parent `StateNode`; add tests. > - **Fixes**: > - Safe label updates only for shapes supporting `richText`. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 4637dad. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: Lu[ke] Wilson <l2wilson94@gmail.com> Co-authored-by: Max Drake <maxdrake46@gmail.com> Co-authored-by: David Sheldrick <d.j.sheldrick@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )