chore: complete clean Agent Desk source snapshot

This commit is contained in:
2026-10-16 12:03:16 +00:00
parent 756ae33d05
commit e57610a27c
123 changed files with 37513 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
import assert from "node:assert/strict"
import test from "node:test"
import { shouldReloadConversationListForRealtimePatch } from "./agent-conversation-realtime.ts"
test("reloads conversation list when realtime patch changes list membership fields", () => {
assert.equal(
shouldReloadConversationListForRealtimePatch({
conversationId: 1,
status: 3,
currentAssigneeId: 101,
}),
true
)
})
test("keeps local patching for message summary and unread-only changes", () => {
assert.equal(
shouldReloadConversationListForRealtimePatch({
conversationId: 1,
lastMessageId: 9,
lastMessageSummary: "hello",
agentUnreadCount: 1,
}),
false
)
})