Skip to content

[pull] main from tldraw:main#248

Merged
pull[bot] merged 2 commits intocode:mainfrom
tldraw:main
Oct 30, 2025
Merged

[pull] main from tldraw:main#248
pull[bot] merged 2 commits intocode:mainfrom
tldraw:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Oct 30, 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 : )

TodePond and others added 2 commits October 30, 2025 15:39
This PR pulls across a fix from fairydraw into the agent starter.

### Change type

- [ ] `bugfix`
- [ ] `improvement`
- [ ] `feature`
- [ ] `api`
- [x] `other`

### Test plan

1. Create a shape...
2.

- [ ] Unit tests
- [ ] End to end tests

### Release notes

- Agent starter: Fixed a bug where shape indices could get set to the
same value.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Use the highest parent index for new shapes instead of a hardcoded
value across all shape converters to avoid index collisions.
> 
> -
**templates/agent/shared/format/convertSimpleShapeToTldrawShape.ts**:
> - **Index assignment**: When a shape's `index` is absent, use
`editor.getHighestIndexForParent(editor.getCurrentPageId())` instead of
the hardcoded `'a1'` for:
> - `text`, `line`, `arrow`, `geo`, `note`, `draw`, and `unknown`
shapes.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
d31e468. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
tiptap: fix focus issue when editor not mounted

### Change type

- [x] `bugfix`
- [ ] `improvement`
- [ ] `feature`
- [ ] `api`
- [ ] `other`

### Release notes

- tiptap: fix minor focus issue if editor isn't mounted yet

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Guard Tiptap toolbar actions and active-state checks when the editor
view isn't mounted to prevent focus errors.
> 
> - **Rich Text Toolbar (`DefaultRichTextToolbarContent.tsx`)**:
> - Add guard to avoid invoking Tiptap operations when `textEditor.view`
is undefined.
> - Compute `isActive` defensively using `textEditor.view ? ... : false`
to prevent access before mount.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
299507f. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
@pull pull Bot locked and limited conversation to collaborators Oct 30, 2025
@pull pull Bot added the ⤵️ pull label Oct 30, 2025
@pull pull Bot merged commit 40241b3 into code:main Oct 30, 2025
@pull pull Bot had a problem deploying to deploy-staging October 30, 2025 21:13 Failure
@pull pull Bot had a problem deploying to deploy-production October 30, 2025 21:13 Failure
@pull pull Bot had a problem deploying to deploy-staging October 30, 2025 21:13 Failure
@pull pull Bot requested a deployment to e2e-dotcom October 31, 2025 02:18 In progress
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.

2 participants