mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-10-29 18:52:45 +08:00
fix(kilo-sessions): reverse messages before fullSync
we need to send them in asc order
This commit is contained in:
@@ -343,6 +343,7 @@ export namespace KiloSessions {
|
||||
const session = await Session.get(sessionId)
|
||||
const diffs = await Session.diff(sessionId)
|
||||
const messages = await Array.fromAsync(MessageV2.stream(sessionId))
|
||||
messages.reverse()
|
||||
const models = await Promise.all(
|
||||
messages
|
||||
.filter((m) => m.info.role === "user")
|
||||
|
||||
Reference in New Issue
Block a user