j2h4u
5f821ed067
fix(session): prevent stale threadId leaking into non-thread sessions
...
When a user interacts with the bot inside a DM topic (thread), the
session persists `lastThreadId`. If the user later sends a message
from the main DM (no topic), `ctx.MessageThreadId` is undefined and
the `||` fallback picks up the stale persisted value — causing the
bot to reply into the old topic instead of the main conversation.
Only fall back to `baseEntry.lastThreadId` for thread sessions where
the fallback is meaningful (e.g. consecutive messages in the same
thread). Non-thread sessions now correctly leave threadId unset.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-16 23:51:12 +01:00
..
2026-02-16 23:51:12 +01:00
2026-02-16 14:59:30 +00:00
2026-02-15 18:55:01 +00:00
2026-02-16 11:30:49 -08:00
2026-02-16 11:30:49 -08:00
2026-01-31 16:19:20 +09:00
2026-02-15 04:17:02 +00:00
2026-02-16 14:18:17 -06:00
2026-02-16 14:18:17 -06:00
2026-02-16 14:59:30 +00:00
2026-02-08 23:59:43 -08:00
2026-01-30 03:16:21 +01:00
2026-02-14 00:41:37 +01:00
2026-02-14 00:41:37 +01:00
2026-02-09 08:55:50 +01:00
2026-02-10 00:44:38 -06:00
2026-01-31 16:19:20 +09:00
2026-02-15 04:37:52 +00:00
2026-02-14 01:36:04 +01:00
2026-02-14 01:36:04 +01:00
2026-01-31 16:19:20 +09:00
2026-02-14 15:06:13 +01:00
2026-02-16 14:59:30 +00:00
2026-02-12 19:01:53 -06:00
2026-02-16 14:59:30 +00:00
2026-01-25 10:02:12 +00:00
2026-02-08 23:59:43 -08:00
2026-02-16 14:59:30 +00:00
2026-02-16 14:59:30 +00:00
2026-02-16 14:59:30 +00:00
2026-02-14 23:51:42 +00:00
2026-02-16 14:59:30 +00:00
2026-02-14 19:55:10 +00:00
2026-02-14 19:55:10 +00:00
2026-02-16 14:59:30 +00:00
2026-02-14 19:55:10 +00:00
2026-02-16 14:59:30 +00:00
2026-02-16 14:59:30 +00:00
2026-02-16 14:59:30 +00:00
2026-02-16 14:59:30 +00:00
2026-02-16 14:59:30 +00:00
2026-02-16 14:59:30 +00:00
2026-02-01 10:03:47 +09:00
2026-02-14 23:51:41 +00:00
2026-02-01 10:03:47 +09:00
2026-02-14 23:51:41 +00:00
2026-02-14 23:51:41 +00:00
2026-02-16 14:59:30 +00:00
2026-02-15 00:26:46 +00:00
2026-02-16 14:59:30 +00:00
2026-02-16 14:59:30 +00:00
2026-02-16 14:59:30 +00:00
2026-02-16 14:59:30 +00:00
2026-02-16 14:59:30 +00:00
2026-02-16 14:59:30 +00:00
2026-02-16 14:59:30 +00:00
2026-02-16 14:59:30 +00:00
2026-02-14 22:01:54 +01:00
2026-02-16 14:59:30 +00:00
2026-02-16 14:59:30 +00:00
2026-02-16 18:25:04 +00:00
2026-02-16 14:59:30 +00:00
2026-02-14 22:01:54 +01:00
2026-02-16 14:59:30 +00:00
2026-01-18 06:12:54 +00:00
2026-01-31 16:19:20 +09:00
2026-02-14 16:36:15 +00:00
2026-02-16 14:59:30 +00:00
2026-02-16 14:59:30 +00:00
2026-02-16 14:59:30 +00:00
2026-02-16 23:50:21 +01:00
2026-02-16 23:50:21 +01:00
2026-02-13 05:51:04 +01:00
2026-02-13 11:39:22 +00:00
2026-02-15 14:07:28 +00:00
2026-02-08 23:59:43 -08:00
2026-02-08 20:06:29 -05:00
2026-02-08 20:06:29 -05:00
2026-02-16 13:38:39 -06:00