{"draft":null,"from":159,"to":160,"files":[{"path":"worker/project/queue.ts","added":5,"removed":2,"diff":"--- a/worker/project/queue.ts\n+++ b/worker/project/queue.ts\n@@ -4,7 +4,7 @@\n import { type AtomId, buildAtom, type Graph, type ReadView } from \"../../src/engine/index.ts\";\n import type { Pair } from \"./collisions.ts\";\n import { definedTwice } from \"./definitions.ts\";\n-import { keptOf, lostLines } from \"./markers.ts\";\n+import { heldMessage, keptOf, lostLines } from \"./markers.ts\";\n import { clip } from \"./news.ts\";\n import { ProjectError } from \"./project-error.ts\";\n import { projectFileIn } from \"./project-helpers.ts\";\n@@ -49,6 +49,7 @@\n \t\ttime: number,\n \t\tcollisions: Collision[],\n \t\tentries: Entry[],\n+\t\tmessage?: string,\n \t): { ok: false; collisions: Collision[] };\n \tcurrentChange(agent: AgentState, time: number): number | undefined;\n \tnextAt(): number;\n@@ -149,7 +150,7 @@\n \t\t\t\t});\n \t\t\t}\n \t\t}\n-\t\tif (collisions.length > 0) return host.refuse(agent, space, \"publish\", time, collisions, entries);\n+\t\tif (collisions.length > 0) return host.refuse(agent, space, \"publish\", time, collisions, entries, message);\n \t}\n \tconst view = host.agentView(agent);\n \tconst settled: Settled[] = agent.marked\n@@ -157,11 +158,13 @@\n \t\t.map((r) => {\n \t\t\tconst lines = view.hasFile(r.file) ? view.lines(r.file).map((l) => l.text) : [];\n \t\t\tconst lost = lostLines(lines, r);\n+\t\t\tconst held = heldMessage(agent, r.file);\n \t\t\treturn {\n \t\t\t\tfile: r.file,\n \t\t\t\tkept: keptOf(lines, r),\n \t\t\t\ttheirs: { agent: r.agent, version: r.version },\n \t\t\t\t...(lost.length > 0 ? { lost } : {}),\n+\t\t\t\t...(held ? { held } : {}),\n \t\t\t};\n \t\t});\n \tconst id = host.queuedId() + 1;"}],"unmatched":[]}