mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-12 13:00:44 +08:00
fix(feishu): stabilize post-merge card workflows
This commit is contained in:
parent
9d1dc71794
commit
bd9c58cf9e
19 changed files with 3372 additions and 456 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue