fix(daemon): keep artifact side records out of resume leaf

This commit is contained in:
秦奇 2026-07-09 07:47:12 +08:00
parent e3096bd492
commit 42c19ccfa3

View file

@ -1025,7 +1025,13 @@ export class SessionService {
}
// Reconstruct linear history
const leafUuid = this.lastConversationRecordUuid(records);
if (!leafUuid) {
return;
}
const { messages, gaps } = this.reconstructHistory(records, {
leafUuid,
detectGaps: true,
});
if (messages.length === 0) {