Skip to content

fix: the assistant opens a cited PDF at the page it named - #234

Merged
bencode merged 1 commit into
mainfrom
fix/open-at-page
Oct 26, 2026
Merged

bencode merged 1 commit into
mainfrom
fix/open-at-page

Conversation

@bencode

@bencode bencode commented Oct 26, 2026

Copy link
Copy Markdown
Owner

An answer cites "paper.pdf, page 12", but open took only a fileId, so "take me there" landed on page 1.

  • open takes an optional page, for a PDF only. It goes through the same reveal a note's [[paper.pdf#page=12]] uses, and the tool resolves once the reader has shown that page.
  • A page on anything other than a PDF is refused rather than ignored.
  • The tool description and the system prompt's citation line say to open at the cited page when the reader asks to go there.

Lines and cells are not covered: the readers have no reveal for them yet.

Checked end to end: asked for page 3 of the tutorial PDF, then "带我去那一页"; the assistant called open with page: 3 and the reader showed page 3.

Closes #192

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Let a citation take the reader to its place — an answer's 'paper.pdf, page 12' opens the file at page 1 today, and no path reaches the page it named

1 participant