Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion GraphcodeKit/Sources/GraphStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3385,7 +3385,7 @@ public actor GraphStore {
guard !targets.isEmpty, let onDeliverMessage else { return }
recordMailroomCommunication(from: senderID, to: "all", text: trimmed, topic: "direct")
let sender = senderID.flatMap { id in graph.nodesAtAnyDepth.first { $0.id == id }?.title }
let message = "[graphcode] to every loop — \(sender.map { "\($0): " } ?? "")\(trimmed)"
let message = "[graphcode] \(sender.map { "\($0): " } ?? "")\(trimmed)"
let path = graph.project.path
let delivered = await withTaskGroup(of: (UUID, Bool).self) { group in
for target in targets {
Expand Down
4 changes: 2 additions & 2 deletions graphcode/Tests/BroadcastMessageTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ struct BroadcastMessageTests {
await store.handle(.broadcastMessage(text: " main is frozen ", from: sender.id))

#expect(Set(delivered.value.keys) == ["Running", "Idle", "Waiting"])
#expect(delivered.value["Running"] == "[graphcode] to every loop — Sender: main is frozen")
#expect(delivered.value["Running"] == "[graphcode] Sender: main is frozen")
#expect(errors.value.isEmpty)
}

Expand All @@ -61,7 +61,7 @@ struct BroadcastMessageTests {
await store.handle(.broadcastMessage(text: "rebase on main", from: nil))

#expect(memos.value["Reachable"] == nil)
#expect(memos.value["Gone"]?.contains { $0.contains("rebase on main") } == true)
#expect(memos.value["Gone"] == ["while you were away: [graphcode] rebase on main"])
#expect(memos.value["AlsoGone"]?.contains { $0.contains("rebase on main") } == true)
#expect(errors.value.count == 1)
#expect(errors.value.first?.contains("1 of 3") == true)
Expand Down
Loading