Skip to content

Improve tab never shows the reference-repository selector #2937

Closed

Description

@integry

Problem

On the repository Improve tab you can't pick a reference repository. The panel has a selector for one, and the API accepts it, but the selector never appears because nothing passes it a list of repositories.

At a05a88e:

  • RepoImprovementsPanel renders ReferenceRepoSelector only when availableRepos.length > 0; the prop defaults to [] (propr-ui/src/components/Repositories/RepoImprovementsPanel.tsx:74, :252).
  • RepoActionContainer renders the panel without availableRepos (propr-ui/src/components/Repositories/RepoActionContainer.tsx:310), so the selector is always hidden.
  • Everything after the selector is already wired. The container forwards referenceRepoId to generateRepoImprovements, the /api route reads it (packages/api/routes/repoImprovementsRoutes.ts:16), and the MCP tool exposes it as referenceRepository (packages/api/mcp/toolsImprovements.ts:35).

As a result, comparing against a reference repository works only through MCP.

Expected

The Improve tab lists the indexed repositories the user can access, excluding the current one, as reference options. Picking one sends referenceRepoId with the generate request.

Suggested fix

  • In RepoActionContainer, load the indexed repositories with the same loader the planner setup uses for its repository list, map them to ReferenceRepo, and pass them as availableRepos.
  • Add an e2e or component test asserting that the selector renders when other indexed repositories exist and that the chosen id reaches the request.

Found while updating the propr.dev improvement-suggestions page. For now the page describes reference repositories as MCP-only.

Activity

  1. propr-dev commented on Oct 10, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 2937/claude-opus-5-5-improve-tab-never-shows-t-20261010-2100-gtx
    • Base Branch: main
    • Worktree: issue-2937-20261010-2100-claude-opus-5-5-gtx

    🔍 Track Task Execution

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions