Skip to content

Make the PR view searchable and expose open PRs beyond its silent 50-row limit #1134

Closed

Description

@currentbits

The PR view requires manual scanning across every project and silently omits open PRs beyond the first 50 per repository. A user cannot find a known older PR or tell that the list is incomplete.

Evidence

PrListView.tsx renders Refresh and repository groups, with no search or project filter. A mounted component assertion confirms there is no searchbox or select.

worktrees.js:listPrsRaw defaults to --limit 50. listPrs uses that default and returns only {ok:true,prs}; there is no completeness/continuation metadata. The view offers no Load more action or partial-result notice.

Runnable boundary reproduction:
node docs/issue-drafts/2026-09-08-pr-list-limit-evidence.cjs
Uses real listPrs, a fake GitHub origin and fake gh with 75 PRs. Asserts the actual CLI invocation requests 50 and the result contains 50 with no completeness metadata. No GitHub calls.
Mounted controls check: node --import=./test/support/disable-grok-mcp.mjs --import=./test/support/render.mjs --experimental-strip-types docs/issue-drafts/2026-09-08-view-actions-evidence.mjs.

Proposed view improvement

Add a compact native search field for PR number/title/branch and a project filter. Keep existing compact rows, draft badges, Open, Check out and associated-thread navigation. Expose bounded pagination or explicit Load more per repository; report loaded/partial scope honestly. Do not claim a local search covered all open PRs when only a subset was loaded.

Acceptance

  • A known PR can be located by #number, title or branch; project scope narrows results with a clear reset and result count.
  • A repository with >50 open PRs exposes a way to reach remaining PRs and clearly indicates partial loading.
  • Search on partially loaded data is labelled honestly or searches beyond the loaded subset.
  • No-match, empty repository, loading and per-repository failure states are distinct.
  • Native keyboard/focus behavior works; existing row actions and matching threads remain intact.
  • Use existing grouping/matching helpers. Keep requests bounded and preserve explicit listPrsRaw limits used by other callers such as Fleet.
  • Verify a multi-project fixture with >50 PRs, a known PR beyond the first batch, a failed repository and keyboard use.

Duplicate check

#260 proposes a wider agent-PR attention inbox with prioritization and CI/review signals. This is a bounded browsing foundation for today's all-open-PR view, not that new triage product. #729 covers chrome flattening; #945 adds Planboard search; #942 owns return-navigation state. Link those instead of expanding this issue into their scopes.

Parent audit #1130. PrListView blob matched current default branch during verification.

Activity

  1. added
    plan:todo
    plan:doing
    plan:done
    and removed
    plan:todo
    plan:doing
    on Sep 8, 2026
  2. currentbits commented on Sep 8, 2026

    @currentbits
    OwnerAuthor

    Landed from Solenta thread "Make the PR view searchable and expose open PRs beyond its s". Closed on merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions