fix(feishu): stabilize post-merge card workflows

This commit is contained in:
xmanrui 2026-08-24 17:56:06 +08:00
parent 9d1dc71794
commit bd9c58cf9e
19 changed files with 3372 additions and 456 deletions

View file

@ -223,6 +223,11 @@ function workspaceSessions(workspace, archivedSessionIds, sessionList) {
origin: summary?.origin === 'subagent' ? 'subagent' : null,
summaryAvailable: summary !== undefined,
};
const lastSeq = summary?.projections?.asOfSeq;
// This is the projection's durable lower bound, not necessarily the live
// log tail for a cold session. Harness uses -1 as the legitimate bound
// for a session with no projected events yet.
if (Number.isSafeInteger(lastSeq) && lastSeq >= -1) session.lastSeq = lastSeq;
const time = sessionTimeMs(summary);
if (time !== null) session.time = time;
return session;