Commit aef68ae
demo: fix useChat demo regression from id → chatId rename
Commit 6ef8a77 renamed `SendMessagesRequestContext.id` to `chatId`
and updated the SDK source, tests, and internal docs, but missed
the useChat demo's server route, which still reads `id` from the
POST body. That left `ably.channels.get(undefined)` on the server,
so publishes targeted a fallback channel name that did not match
the `ai` namespace rule — manifesting as error 93002 ("Can only
update/delete/append messages on channels with mutableMessages
enabled") once the transport attempted any UPDATE/DELETE action.
Update the server route to read `chatId` from the body so it
attaches to the channel name the client intended.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent f3112f7 commit aef68ae
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments