Repo picker asks Forgejo for brief repos, the rest of its pages at once #170

Merged
merge-queue merged 2 commits from repo-search-brief into main 2026-11-26 22:10:19 -08:00
Owner

Work package: FORGEJO-67

What changes:

  • The launchers' repo picker (repo_picker.go) asks Forgejo's repo search and starred list for brief=true. Our Forgejo's patch 0014 (in nelsong6/forgejo, same work package) answers that with only the six fields a forgejoRepo reads, under 200 bytes a repo instead of 2.6 KB.
  • After the first page, the picker asks for all the remaining pages its X-Total-Count says 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

Work package: [FORGEJO-67](https://openproject.home.romaine.life/wp/FORGEJO-67) **What changes:** - The launchers' repo picker (`repo_picker.go`) asks Forgejo's repo search and starred list for `brief=true`. Our Forgejo's patch 0014 (in [nelsong6/forgejo](https://forgejo.romaine.life/nelsong6/forgejo), same work package) answers that with only the six fields a `forgejoRepo` reads, under 200 bytes a repo instead of 2.6 KB. - After the first page, the picker asks for all the remaining pages its `X-Total-Count` says 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](https://claude.com/claude-code)
Repo picker asks Forgejo for brief repos, the rest of its pages at once (FORGEJO-67)
Some checks failed
Suite release / scope (pull_request) Has been cancelled
Suite release / module (pull_request) Has been cancelled
Suite release / reserve (pull_request) Has been cancelled
Suite release / finalize (pull_request) Has been cancelled
Suite release / home-sync (pull_request) Has been cancelled
Suite default / scope (pull_request) Has been cancelled
Suite default / check-fetches (pull_request) Has been cancelled
Suite default / check-rules (pull_request) Has been cancelled
Suite default / reused-checks (pull_request) Has been cancelled
Suite go / scope (pull_request) Has been cancelled
Suite go / check-format (pull_request) Has been cancelled
Suite release / scope (push) Has been skipped
Suite release / module (push) Has been skipped
Suite release / reserve (push) Has been skipped
Suite release / check-package (push) Has been skipped
Suite release / finalize (push) Has been skipped
Suite release / reused-checks (push) Has been skipped
Suite release / home-sync (push) Has been skipped
Suite release / publish (push) Has been skipped
Suite release / dispatch (push) Has been skipped
Suite release / deploy-image (push) Has been skipped
Suite go / check-test-linux (pull_request) Has been cancelled
Suite go / check-test-windows (pull_request) Has been cancelled
Suite go / check-services (pull_request) Has been cancelled
Suite go / reused-checks (pull_request) Has been cancelled
Suite release / publish (pull_request) Has been cancelled
Suite release / dispatch (pull_request) Has been cancelled
Suite release / check-package (pull_request) Has been cancelled
Suite release / deploy-image (pull_request) Has been cancelled
Suite release / reused-checks (pull_request) Has been cancelled
647c513432
The picker's repo search and starred list ask for ?brief=true, which our
Forgejo's patch 0014 answers with the six fields a forgejoRepo reads
instead of each repo's full record: under 200 bytes a repo instead of
2.6 KB. And after the first page it asks for all the rest its total says
there are at once, as at-claude's repo list does, instead of one round
trip after another. A Forgejo without the patch ignores the parameter
and answers in full, which reads the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge branch 'main' into repo-search-brief
All checks were successful
Suite release / check-package (push) Has been skipped
Suite release / finalize (push) Has been skipped
Suite release / reused-checks (push) Has been skipped
Suite release / home-sync (push) Has been skipped
Suite release / publish (push) Has been skipped
Suite release / dispatch (push) Has been skipped
Suite release / deploy-image (push) Has been skipped
Suite go / scope (pull_request) Successful in 19s
Suite go / check-services (pull_request) Has been skipped
Suite release / scope (pull_request) Successful in 20s
Suite default / scope (pull_request) Successful in 19s
Suite default / check-fetches (pull_request) Has been skipped
Suite release / module (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite release / reserve (pull_request) Has been skipped
Suite release / build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (pull_request) Has been skipped
Suite release / check-build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite release / check-package (pull_request) Has been skipped
Suite release / home-sync (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
Suite release / dispatch (pull_request) Has been skipped
Suite go / check-format (pull_request) Successful in 30s
Suite go / check-test-linux (pull_request) Successful in 53s
Suite go / check-test-windows (pull_request) Successful in 1m52s
Suite default / check-rules (pull_request) Successful in 23s
Suite release / reused-checks (pull_request) Successful in 34s
merge-queue landed on main
Suite default / reused-checks (pull_request) Successful in 36s
Suite go / reused-checks (pull_request) Successful in 37s
59a1a7fe3d
merge-queue deleted branch repo-search-brief 2026-11-26 22:10:20 -08:00
Sign in to join this conversation.
No description provided.