Skip to content

feat: give the agent each article's page map upfront#25

Merged
andylizf merged 1 commit into
mainfrom
feat/article-page-map
Jun 5, 2026
Merged

feat: give the agent each article's page map upfront#25
andylizf merged 1 commit into
mainfrom
feat/article-page-map

Conversation

@andylizf

@andylizf andylizf commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Implements the obvious-in-hindsight fix for the tile-404 exploration noise: /search hits now include article_pages — the tile:chunk ranges that actually exist on disk ('0:0-7,1:0-4'), from a cached listdir (~free; None in on-demand mode, optional field so existing clients are unaffected). The agent tools pass it to the model as pages and the tile tool's description says to stay in range.

Effect: the agent can page through an article without probing nonexistent coordinates — fewer wasted turns, faster answers, no 404s at all (the previous PR already keeps failed probes out of the UI; this removes them at the source).

Serve part needs the blue-green redeploy; agent part auto-deploys via CD.

Per review feedback: instead of the agent guessing chunk coordinates and
404ing past an article's end, /search hits now carry article_pages — the
tile:chunk ranges that actually exist on disk (e.g. '0:0-7,1:0-4'), derived
from a cached listdir of the article's tiles dir (None in on-demand mode).
The agent tools surface it as 'pages' and instruct the model to stay within
range, so paging through an article wastes no turns on nonexistent tiles.
@vercel

vercel Bot commented Jun 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
web Ready Ready Preview, Comment Jun 5, 2026 8:56am

@andylizf andylizf merged commit cb3736b into main Jun 5, 2026
6 checks passed
@andylizf andylizf deleted the feat/article-page-map branch June 5, 2026 08:56
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.

1 participant