diff --git a/src/constants/dance.ts b/src/constants/dance.ts deleted file mode 100644 index e69de29b..00000000 diff --git a/src/store/session/index.ts b/src/store/session/index.ts index e8063224..dde939a1 100644 --- a/src/store/session/index.ts +++ b/src/store/session/index.ts @@ -371,7 +371,7 @@ export const createSessionStore: StateCreator s.role === 'user').at(-1); + const latestMsg = contextMessages.findLast((s) => s.role === 'user'); if (!latestMsg) return;