Repo picker asks Forgejo for brief repos, the rest of its pages at once #170
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
queue
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/fzt-automate!170
Loading…
Reference in a new issue
No description provided.
Delete branch "repo-search-brief"
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?
Work package: FORGEJO-67
What changes:
repo_picker.go) asks Forgejo's repo search and starred list forbrief=true. Our Forgejo's patch 0014 (in nelsong6/forgejo, same work package) answers that with only the six fields aforgejoReporeads, under 200 bytes a repo instead of 2.6 KB.X-Total-Countsays there are at once. Before, it asked for them one after another, one round trip each. This is the same paging at-claude's repo list already does. Without a total, it still reads page after page until a short one.Why: on the laptop's mobile link, at-claude's list (which this picker's code came from) didn't get Forgejo's first full page of 50 (133 KB) within 8 seconds. This picker has the same budget, and it paged one request at a time.
What it doesn't change: the 8-second budget, ordering, or what shows when Forgejo can't be reached. A Forgejo without the patch ignores the parameter and sends the full form, which decodes the same.
Tests: the fake Forgejo fails any request without
brief=true. A new test holds pages 2 and 3 until both are asked for, so reading them one after another times out.🤖 Generated with Claude Code