fix(issues): gitea_issue_list silently hides everything past 20 rows #2
Labels
No labels
area/dsh
area/forgejo
experiment
priority/later
priority/next
priority/now
type/bug
type/task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
dsh-plugins/dsh-gitea#2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
gitea_issue_listnever returns more than 20 rows, whateverlimitis passed.pvlb-infra/vps-setuphas 28 issues (state=all); the tool shows 20 and the model has no idea the rest exist.Reproduced 2026-10-23:
limit:50, page:1limit:100, page:1limit:50, page:2OK(empty)limit:20, page:2Root cause
The request is fine; the formatter cuts the response:
The tool result the model sees is built from this text, so 8 issues vanish even though
wrap()returned them.Fix
Render every row the API returned (the page size is already controlled by the caller's
limit/page), or cap deliberately at 100 with an explicit footer such as… and 8 more — call again with page: 2. Silent truncation is the bug; a visible truncation would be acceptable.Acceptance
limit:50→ all 28 rows (or 20 + "8 more" footer).limit:5still returns exactly 5.Fixed in
4d77e9f(fix(tools): render complete lists and never print a bare OK), merged tomaster(#11).… and N more — narrow the filter or page through.).gitea_issue_listonpvlb-infra/vps-setup(state=all,limit=50,page=1) returned all 28 rows;limit:5still returns exactly 5 (covered bytest/handlers-formatters.test.mjs).