Skip to content

Commit 69e4633

Browse files
committed
fix(sessions): use typed visible parent join (clawdbot-d02.1.9.1.40-e70)
1 parent aa85b78 commit 69e4633

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/config/sessions/session-accessor.sqlite-active-events.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,9 @@ export function readSessionTranscriptVisibleMessageDelta(
415415
.leftJoin("session_transcript_active_events as parent_active", (join) =>
416416
join
417417
.onRef("parent_active.session_id", "=", "active.session_id")
418-
/* kysely-allow-raw: active positions are contiguous path ordinals. */
419-
.on(sql<boolean>`parent_active.active_position = active.active_position - 1`),
418+
.on((eb) =>
419+
eb("parent_active.active_position", "=", eb("active.active_position", "-", 1)),
420+
),
420421
)
421422
.leftJoin("transcript_event_identities as parent_identity", (join) =>
422423
join

0 commit comments

Comments
 (0)