Repository navigation
Description
Problem
The links subsystem arrived complete on the machine's side: packages/links parses wiki-links, tags and named blocks (parse.ts — linkPattern matches [[...]]), features/links keeps an index between notes (use-note-index.ts), and the assistant can query the whole graph (features/agent/links/link-tools.ts) and even name a passage so it can be linked. Seven PRs built this — and every one wired the links to the model.
The reader's side never got connected: the markdown renderer has zero handling for the syntax (components/markdown.tsx and the whole features/reader tree contain no [[ — verified by search), so a wiki-link renders as literal text. A reader of a linked library — the git-source deployment story makes the library exactly that — cannot click from note to note. They read the name, open the Files panel, filter by path, and find the note by hand. The graph exists only because the reader's notes carry links, and today only the model can follow them.
This is the product's recurring asymmetry, seen again: document search was assistant-only (#68), and the link graph is assistant-only now.
Proposal
- Render
[[Note]]in the markdown reader as a link: resolve the name against the note index thatuse-note-index.tsalready maintains, and open the target note in the reading pane on click — same motion as opening it from the Files panel. - An unresolved name renders with a quiet "not found" style instead of a dead link — the candor the column cap and the docx unconverted markers already practice.
- Backlink panels and graph views are later layers; this issue is the follow-the-link step only.
Goal
After this, clicking a wiki-link in a note opens that note — a linked library reads like one connected body of work, not a folder of files with punctuation only the assistant understands.
Verification
grep -rl '\[\[' ui-packages/web/src/components ui-packages/web/src/features/reader --include='*.ts' --include='*.tsx' | grep -v test
pnpm --filter @gamma-reader/web test --silent
pnpm checkRefs
- packages/links/src/parse.ts — the parser that already defines the syntax (
linkPattern,ParsedLink,LinkTarget) - ui-packages/web/src/features/links/use-note-index.ts — the note index a click resolves against
- ui-packages/web/src/components/markdown.tsx — renders
[[Note]]as literal text today (verified: no[[anywhere in the reader tree) - ui-packages/web/src/features/agent/links/link-tools.ts — the graph the assistant already walks
- Let the reader search inside a PDF — Ctrl+F sees only the page on screen, while the assistant has a search tool #68 — the same assistant/reader asymmetry, for search; this is it for navigation
Activity
bencode commentedon Oct 4, 2026
Independent review — implemented on main; closing via the verify gate. (posted by the scheduled issue-reviewer loop, independent of the authoring session)
Timing. Filed 07:50Z on Oct 4; PR #94 (
32f5054, "follow links between notes in the reader") merged 08:08Z — 18 minutes later. The proposal was accurate when filed and landed almost immediately; the creation session could not have seen it coming without watching open PRs.Evidence audit of the proposal's claims (against
54aa77d):[[handling pre-feat: follow links between notes in the reader #94 — nowfeatures/reader/markdown-reader/wiki-link.tsxexists andindex.tsx:25wiresWikiLinkinto the renderer.graph.resolve(target)resolves against the note index; click →openLink(target, resolution.fileId)opens the note; unresolved renders the quiet not-found style (title="No note named … yet."); ambiguous names get a chooser popover — all three behaviors the Proposal asked for, plus a back-navigation integration test (shell/links-navigation.integration.test.tsx: "opens the linked note at the named block, and Back returns").Anchor repaired (logged). The Verification grep used
grep -rql—-qsilences all output, so| grep -v testalways received empty input and always exited 1; the anchor could never pass in any state. Edited the body to drop-q(only change). After that, verify passes on main.Note for the authoring session: the same
-qlpitfall will silently break any future list-pipeline anchor; and PR #94 was open when this was filed — a quickgh pr listbefore filing would have caught the race.Closed as implemented (verify gate passed post-repair).
bencode commentedon Oct 4, 2026
✓ Verification passed
cc @bencode please verify