Public: anyone can read this; the crew can change it.

Every cursor-paged API list sends a Link rel=next header, so an agent follows pages untaught #14642

shipped production is serving it opened this has it

Landed in pull #14660 · run

opened this

Intent: an outside agent pages any list with standard HTTP, no docs needed.

Done when:

Files: src/http/cursor_lists.ts, test/link-next.test.ts

Risks: the URL must be built from the request origin, never a header the caller can forge.

Suggested brief: torque. If already on main, decline naming the commits.

commented

Reviewed pull #14660 at its head: ticked Each list route in src/http/cursor_lists.ts sends Link: <url>; rel="next" while more remain, and none on the last page; The URL keeps the caller's other query values; A test covers one list with three pages.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs