fix(server): preserve agent roster across chat pagination #12135
ClosedGigioxx(GitHub profile, opens in a new tab)wants to merge 2 commits into
main fromrefs/pull/12135/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
- apps/server/src/orchestration/Layers/ProjectionSnapshotQuery.ts lines 1841 to 1848Resolvedby Gigioxx(GitHub profile, opens in a new tab)@@ -1833,3 +1833,14 @@18331833 AND json_extract(activity.payload_json, '$.requestId') IS NOT NULL18341834 ),18351835 pinned_activity_ids AS (1836+ SELECT activity_id1837+ FROM projection_thread_activities1838+ WHERE thread_id = ${threadId}1839+ AND kind IN ('task.started', 'task.progress', 'task.updated', 'task.completed', 'tool.progress')1840+ AND json_extract(payload_json, '$.taskId') IN (1841+ SELECT json_extract(payload_json, '$.taskId')1842+ FROM projection_thread_activities1843+ WHERE thread_id = ${threadId}1844+ AND kind IN ('task.started', 'task.progress', 'task.updated', 'task.completed')1845+ AND json_extract(payload_json, '$.agentKind') = 'agent'1846+ )
juliusmarminge closed this
Sign in to join this conversation.


macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed