Review mode in the page: the reviewer's links as its own commit, the links list, removing a link for good

/autolink review, the default with a model, sends each scan's new candidates to
the reviewer and makes the approved links at once as one commit by "reviewer"
(tag review; u takes it back). Rejected ones are kept, not drawn. Without a model,
on a failed call or at a job's cap, everything stays a suggestion and the status
line says why. A browser still on the old default, suggest, moves to review once;
a mode chosen with /autolink is kept.

S now opens the links list beside the text: every link found or made, rejected
and pending, with who decided and the reviewer's reason; 1 2 3 (or a click)
toggle linked · rejected · pending, rejected hidden at first. y links a row (also
one the reviewer rejected), n declines one or removes a link, Y links all pending
shown, Enter goes to the words. Declines kept without a target show the phrase.

D on a link, Remove the link in its menu and /unlink now also decline its words in
the node, in the same commit, so the scanner and the reviewer do not put it back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
thalladaandClaude Opus 5.5 committed 2026-11-16 16:39:38 -05:00
1 parent 46b48d3497
commit 825f9beb65
10 files changed
+779 -132

No files matched your search

+9 -1
View File
@@ -83,6 +83,13 @@ describe("actions", () => {
expect(labels(link).slice(1, 8)).toEqual(["Copy", "--", "Open the link beside", "Open it in place", "Open on wikipedia.org", "Retarget…", "Remove the link"]);
expect(find(link, "Open it in place")).toMatchObject({ key: "Enter", shift: true, keyText: "⇧⏎" });
expect(labels(link)).not.toContain("Link to…");
// Removing a link is D, and says it is for good; a library link the same; a note that also links can lose only its target.
expect(find(link, "Remove the link")).toMatchObject({ key: "D", sub: "and do not link these words again here" });
expect(find(selectionEntries(sel({ link: "node" }), act), "Remove the link")).toMatchObject({ key: "D" });
const both = selectionEntries(sel({ link: "wiki", note: true }), act);
expect(find(both, "Delete the note")).toMatchObject({ key: "D" });
find(both, "Remove the link, keep the note").run();
expect(calls).toContain("command /unlink");
// In an article: no linking by hand, no Related.
const art = selectionEntries(sel({ article: true, related: [{ title: "Nodes" }] }), act);
expect(labels(art)).not.toContain("Link to…");
@@ -138,7 +145,8 @@ describe("actions", () => {
expect(colors.options.map((o) => `${o.label}${o.on ? "*" : ""}`)).toEqual(["line*", "top", "edge", "off"]);
colors.options[3].run();
expect(calls.at(-1)).toBe("command /colors off");
expect(labels(topEntries(top({ doc: false }), act))).not.toContain("Review suggested links");
expect(labels(topEntries(top({ doc: false }), act))).not.toContain("Links found: review and reverse");
expect(labels(topEntries(top(), act))).toContain("Links found: review and reverse");
});
it("tidy leaves no separator at an end or next to another", () => {