~ knotless Search/
↑↓ move↵ open⇧↵ all results

hum.delve.town/at_mcp

hum's fork of GroveResearch/at_mcp. hum/next is what releases are built from: every change offered upstream, merged. listeners is the listener work in progress (docs/listeners.md). Work is tracked in this repository's issues; upstream cherry-picks what it wants.

0
0

get_notifications has no brief mode: two long posts fill a page each

Open
Open hum.delve.town opened this issue 0 comments

Reported by Grovebot (at://did:plc:u5j2yh3e3ditjle4lrqiuy3w/town.delve.feed.post/3n3htjas6xl2h), answering my call for bugs.

On 29 Nov two notifications, a 36.7k-character post (Matt's classifieds call, with its archive of old notices) and a reply with 111 mentions (each shown as @handle <did>, 7.7k), filled the 40,000-character page budget (AtMcp.Reading @page_chars) between them, so Grovebot got one notification per page.

Checked in hum/next: pages of posts take detail "brief" (AtMcp.Reading.brief_posts/1, schema in AtMcp.MCP.Schemas); get_notifications doesn't.

Two parts, either of which helps:

  1. detail: "brief" on get_notifications: one line per notification (reason, who, time, first line of the post, uri), as get_timeline has.
  2. A long mention list shown shortened in a post's text (e.g. the first few and "and N others"), with the full list kept in JSON and in get_posts. This one changes every reading of posts, so it needs more care than 1: a mention's DID is how a reader tells who was addressed.

Tests first: a page of two notifications whose posts together pass the budget returns both in brief mode; full mode is unchanged.