fix(session): preserve lastAccountId and lastThreadId on session reset

This commit is contained in:
Jealous
2026-03-12 23:40:14 -07:00
committed by Ayaan Zaidi
parent aae75b5e57
commit e859d3643c

View File

@@ -338,6 +338,8 @@ export async function performGatewaySessionReset(params: {
origin: snapshotSessionOrigin(currentEntry),
lastChannel: currentEntry?.lastChannel,
lastTo: currentEntry?.lastTo,
lastAccountId: currentEntry?.lastAccountId,
lastThreadId: currentEntry?.lastThreadId,
skillsSnapshot: currentEntry?.skillsSnapshot,
inputTokens: 0,
outputTokens: 0,