Repository navigation
feat: All your repositories in the Link picker (#371) - #406
Merged
Merged
Conversation
GET /v1/github/repositories and POST /v1/github/repositories/refresh: GET /user/repos 100 a page, page 1 first, then the last page, then the rest 4 at a time; kept in memory for the run, refreshed quietly, with progress and changed github_repositories as pages arrive. API_VERSION 27. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The picker lists the daemon's GitHub repository list after Suggested and From your pull requests, leaving out those listed above, linked or Unreachable, with a lock on private ones; it asks for a refresh each time it opens, reads the list again on changed github_repositories, says "Loading your repositories… 400 of about 1,100" while it loads and "Couldn't load your repositories." with Retry when it fails. Rows are drawn only in view. The sidebar skips the list's events. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…#371) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #371
What changes
The "Link a repository…" picker in Edit workspace and New workspace gets its third section, All your repositories: every GitHub repository the sign-in can reach, after Suggested and From your pull requests, without GitHub's search API.
Daemon: the GitHub repository list
GET /v1/github/repositoriesanswers the list kept in memory for the run, with its progress:status(not_loaded,loading,loaded,failed,signed_out),loaded,total(estimated from page 1'sLink: rel="last", exact once the last page arrives) anderror.POST /v1/github/repositories/refresh(204 at once) loads it with RESTGET /user/repos?sort=full_name&direction=asc&per_page=100: page 1 first, then the last page, then the pages between, 4 at a time. About 1,100 repositories take 12 requests.changed github_repositoriesevent. A held list is refreshed quietly: clients see the old one until the new one has loaded whole. A failed quiet refresh keeps the list and setserror.signed_outwithout calling GitHub. A changed token drops the list and, if a picker had asked, loads the new sign-in's.search/repositoriesis never called.API_VERSIONis 27;openapi.jsonand the client are regenerated.GUI: the picker's section
changed github_repositories. The sidebar now ignores that event.owner/nameit lists gets no "Link owner/name" row.list), so ~1,100 rows cost a screenful.docs/spec.md§4, §5, §8, §11 and §12 are rewritten to match.Tests
tests/integration/github_list.rs, httpmock withLinkheaders) covers:repositories::github_listandrefresh_github_list, the fake API's new operations.Design
Penpot "Screens · Dialogs": the
agentdeck/LinkPickerListmain gained the All your repositories label, rows, a Loading line and a Failed row (Retry as a link xs Button). The existing picker boards now show the loaded section, and two new boards sit next to them: "Edit workspace · picker · loading" and "Edit workspace · picker · couldn't load". The signed-out and typed-repo boards hide the section.Captures, each Penpot export beside the app:
~/Pictures/agentdeck/2026-11-23-all-repos-picker/(01-picker-loaded,02-picker-loading,03-picker-failed,-penpot.png/-app.png). The app ran on a fake GitHub. The section matches the boards; the only differences are the sample data (a loading count of 7 rather than 400, 3 loaded rows rather than 2). A 3–4px offset of the whole dialog body predates this change and is tracked in #405.Follow-ups
ETag) requests for the refresh: tracked in Conditional requests for the GitHub repository list's refresh #404🤖 Generated with Claude Code