Skip to content

[pull] main from tldraw:main#264

Merged
pull[bot] merged 3 commits intocode:mainfrom
tldraw:main
Nov 13, 2025
Merged

[pull] main from tldraw:main#264
pull[bot] merged 3 commits intocode:mainfrom
tldraw:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Nov 13, 2025

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 : )

mimecuvalo and others added 3 commits November 13, 2025 11:31
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>
@pull pull Bot locked and limited conversation to collaborators Nov 13, 2025
@pull pull Bot added the ⤵️ pull label Nov 13, 2025
@pull pull Bot had a problem deploying to deploy-staging November 13, 2025 15:13 Failure
@pull pull Bot merged commit 74c0113 into code:main Nov 13, 2025
@pull pull Bot had a problem deploying to deploy-production November 13, 2025 15:13 Failure
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant