Skip to content

[pull] main from tldraw:main#291

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

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

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Nov 28, 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 : )

steveruizok and others added 3 commits November 28, 2025 07:30
The arrow hint indicator (shown when pointing an arrow at a shape) was
not displaying on tldraw.com because the custom `Overlays` component
completely replaced `TldrawOverlays` with fairy-only components.

This adds `TldrawOverlays` back to the custom `Overlays` component so
arrow hints render alongside fairy overlays.

### Change type

- [x] `bugfix`

### Test plan

1. Go to tldraw.com
2. Create a rectangle shape
3. Select the arrow tool and draw an arrow pointing at the rectangle
4. Verify the shape indicator (outline) appears around the rectangle
when the arrow endpoint is near it

### Release notes

- Fixed arrow hint indicator not appearing on tldraw.com when pointing
an arrow at a shape

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Adds `TldrawOverlays` to the custom `Overlays` in `TlaEditor` so arrow
hint indicators render alongside fairy overlays.
> 
> - **Editor UI (dotcom)**
> - **Overlays**: Add `TldrawOverlays` to `TlaEditor`'s custom
`Overlays` so default overlay behaviors (e.g., arrow hint indicators)
render with fairy overlays.
> - Import `TldrawOverlays` in
`apps/dotcom/client/src/tla/components/TlaEditor/TlaEditor.tsx`.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
9c366c9. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Looks like paddle loads profitwell, let's add it to csp.

### Change type
- [x] `other`

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Adds `https://public.profitwell.com` to CSP `connect-src` and
`script-src` to support Paddle-loaded ProfitWell.
> 
> - **CSP updates** (`apps/dotcom/client/src/utils/csp.ts`):
>   - `connect-src`: add `https://public.profitwell.com`.
>   - `script-src`: add `https://public.profitwell.com`.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
3d2c010. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
- Add file_fairy_messages table for append-only chat log
- Add unique IDs to all chat messages (optional for legacy). We use this
so that we override messages that change (streaming, messages wholes
status changes)
  - Frontend filters incomplete actions, sends complete messages to DB
  - Backend truncates fairy state at 350kb → 300kb (full history in DB)
  - Increment timestamps to preserve insertion order
  - Strip diff field before storing (reduce size)

### Change type

- [x] `other`


<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Introduce append-only fairy chat storage with per-message IDs,
client-side sending of completed messages, and server-side state
truncation.
> 
> - **Frontend**:
> - Add per-message `id` to all chat history entries (`prompt`,
`action`, `continuation`, `memory-transition`); generate via
`uniqueId()`.
> - Strip `diff` from `action` items before persisting; throttle-save
fairy state and append only completed, unsent messages.
> - New `TldrawApp.appendFairyChatMessages(fileId, messages)` and effect
in `FairyApp` to batch-append.
> - **Backend**:
> - `file_state.updateFairies`: server truncates per-agent `chatHistory`
(>350kb → ~300kb kept) before upsert.
> - New `file_state.appendFairyChatMessage` mutator: batch upsert JSON
messages with ordered timestamps.
> - **DB/Schema**:
> - Migration adds `file_fairy_messages` table (+ index) for append-only
chat log.
> - Extend shared types with `TlaFileFairyMessage`; wire into `DB`
interface.
> - **Types**:
> - `ChatHistoryItem` subtypes accept optional `id` (legacy-compatible).
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
c371a3b. 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 Nov 28, 2025
@pull pull Bot added the ⤵️ pull label Nov 28, 2025
@pull pull Bot had a problem deploying to deploy-staging November 28, 2025 09:13 Failure
@pull pull Bot merged commit c5efe11 into code:main Nov 28, 2025
@pull pull Bot had a problem deploying to deploy-production November 28, 2025 09:13 Failure
@pull pull Bot had a problem deploying to deploy-staging November 28, 2025 09: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.

2 participants