{"draft":null,"from":45,"to":318,"files":[{"path":"client/src/review.ts","added":9,"removed":2,"diff":"--- a/client/src/review.ts\n+++ b/client/src/review.ts\n@@ -83,6 +83,13 @@\n \treturn `  ${c.id}  ${c.agent}, ${titleLine(c.title)}${c.open ? \" (still going)\" : \"\"}: ${versionsText(c)}${files}${open > 0 ? `; ${plural(open, \"open objection\")}` : \"\"}`;\n }\n \n+/** What a settle kept, read from outside: whose lines, not \"yours\" or \"theirs\". */\n+function keptText(s: ChangeAnswer[\"settled\"][number], settler: string): string {\n+\tif (s.kept === \"yours\") return `kept ${settler}'s`;\n+\tif (s.kept === \"theirs\") return `kept ${s.theirs.agent}'s`;\n+\treturn s.kept === \"both\" ? \"kept both\" : \"rewrote both sides\";\n+}\n+\n /** The change page, as text. */\n export function changePage(c: ChangeAnswer): string[] {\n \tconst out = [\n@@ -99,12 +106,12 @@\n \t\t),\n \t\t...(c.settled.length > 0\n \t\t\t? [\n-\t\t\t\t\t`Settled: ${c.settled.map((s) => `${s.file} (kept ${s.kept}, against ${s.theirs.agent}'s version ${s.theirs.version})`).join(\"; \")}.`,\n+\t\t\t\t\t`Settled: ${c.settled.map((s) => `${s.file} (${keptText(s, c.agent)}, against ${s.theirs.agent}'s version ${s.theirs.version})`).join(\"; \")}.`,\n \t\t\t\t]\n \t\t\t: []),\n \t\t...(c.refusals.length > 0\n \t\t\t? [\n-\t\t\t\t\t`Refused ${plural(c.refusals.length, \"time\")} on the way: ${c.refusals.map((r) => `${r.kinds.join(\", \")} (${r.files.join(\", \")})`).join(\"; \")}.`,\n+\t\t\t\t\t`Refused ${plural(c.refusals.length, \"time\")} on the way: ${c.refusals.map((r) => `${r.kinds.join(\", \")} (${r.files.join(\", \")})${r.message ? `: ${JSON.stringify(r.message)}` : \"\"}`).join(\"; \")}.`,\n \t\t\t\t]\n \t\t\t: []),\n \t\t...((c.reviewers ?? []).length > 0"}],"unmatched":[]}