You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recognize readable document links, and stop leaking library handles
Three things the canonical-URL switch broke or exposed.
**Cross-document links stopped reading as documents.** Reference only
knew `/plans/<uuid>`, so every link copied out of the address bar after
the switch — which is now every link — landed in the References footnote
as a generic "link" with no target_plan. It recognizes the readable form
too, resolving the path to an id through the same segment walk the
router uses, aliases included: a link written before a rename still
names the document it was always about.
**The truncation lists never included libraries.** Two specs run without
transactional fixtures and clean up by hand; their lists predate
libraries and folders, so those rows accumulated across runs. A library
handle is globally unique, so a leaked row keeps "alice" reserved — and
the list is now named once instead of copy-pasted twice.
**`/l` could omit your own library.** Libraries are materialized on first
touch, but the index read the table directly, which is exactly the path
that skips the invariant. A viewer who hadn't yet loaded a page linking
their library got a list without it. It had looked fine only because a
stale row from an earlier run happened to be sitting in the test DB.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments