Repository navigation
[2937 by Claude Opus 5.5] Improve tab never shows the reference-repository selector - #2950
Conversation
…other repositories are indexed. Picking one sends its id as `referenceRepoId` with the generate request. Unit tests, typecheck, lint and the new browser test all pass. I only ran that one browser test, not the rest of `repositories-settings.pw.ts`. What changed - `RepoActionContainer.tsx`: when the selected repository changes, it loads the indexed repositories using the same loader as the planner setup. That loader leaves out the current repository and keeps those that are fully indexed or still indexing. It passes the result to the panel as `availableRepos`. Repositories indexed on several branches appear once, sorted by name, because the server builds reference context per repository rather than per branch. - `setupWizardHooks.ts`: the planner's `loadIndexedRepositories` is now exported so the Improve tab can reuse it unchanged. Tests - Component test (`RepoImprovementsReferenceRepo.test.tsx`), two cases: - The selector appears and lists each other repository once; the current repository and failed indexes are left out. - The chosen id reaches `generateRepoImprovements`, and the selector stays hidden when nothing else is indexed. - Browser test in `e2e/repositories-settings.pw.ts`: on the real Repositories page it opens Improve, checks the options, picks one, generates, and asserts that the request body contains `referenceRepoId: 'integry/integration-sdk'`. I also used it to capture two screenshots: the open list of options, and a selected reference. Open question: the MCP tool checks that the user can access the reference repository before using it. The `/api/repos/improvements` route doesn't check `referenceRepoId`, so the server trusts whatever the browser sends. The list is only as limited as the indexing-status endpoint behind it. The issue counts the route as already wired, so I left it alone, but it may be worth adding the same check there. Once this ships, the propr.dev improvement-suggestions page no longer needs to describe reference repositories as MCP-only.
|
CI failed: Full Test Suite Shard 4/4 Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit 705ed15 Summary of ChangesI fixed the failing check with a one-line change to a test, Cause: The failing test came from the Task Assignment work (#2905), which was already on main when this branch was created. This PR doesn't touch Fix: The assertion now waits for the full Verification: I couldn't reproduce the failure locally; the test file passed before and after the change. After the change, One related test has the same weakness in the other direction: "offers no people and no 'me' without a signed-in user" checks for an empty list immediately. It won't fail, but it could pass before the list is filled, so it proves less than it seems to. I left it unchanged. There's no visual change, so I made no previews. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
CI failed: Run Full Test Suite Please investigate and fix this CI failure.
Failure evidence
|
… `propr-ui/src/components/TaskList.test.tsx:342`. The test is flaky; nothing in this PR caused it. I fixed the failing check with a one-line change to a test, `propr-ui/src/components/TaskList.test.tsx:342`. The test is flaky; nothing in this PR caused it. **Cause:** The failing test came from the Task Assignment work (#2905), which was already on main when this branch was created. This PR doesn't touch `TaskList`. The component fills its list of assignees in a separate step that runs just after the tasks appear on screen. The test checked that list as soon as the task table appeared, so on a slow CI runner it could catch the moment before the list was filled. That matches the CI output: it shows the signed-in user (`me|Me-User`) but not the page's assignees (`all`, `octocat`). **Fix:** The assertion now waits for the full `me|all|Me-User|octocat` list instead of checking it immediately. The next test in the same block already does this. **Verification:** I couldn't reproduce the failure locally; the test file passed before and after the change. After the change, `TaskList.test.tsx` passed 15 of 15 on three runs and eslint is clean on the file. I didn't run the full shard. One related test has the same weakness in the other direction: "offers no people and no 'me' without a signed-in user" checks for an empty list immediately. It won't fail, but it could pass before the list is filled, so it proves less than it seems to. I left it unchanged. There's no visual change, so I made no previews. PR: #2950 Comment by: @propr-dev[bot] (ID: 6102233906) Model: Claude Opus 5.5
|
ℹ️ Analyzed the follow-up request by @propr-dev[bot] Analysis SummaryI made no changes. The branch already has the fix for this failure. What failed: Run 38086296955 tested commit It's already fixed: The latest commit on the branch, Verification: With the fix in place, CI hasn't tested the fix yet: The Full Test Suite run for There's nothing visual in this change, so I made no previews. No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
CI failed: Run Full Test Suite Please investigate and fix this CI failure.
Failure evidence
|
|
ℹ️ Analyzed the follow-up request by @propr-dev[bot] Analysis SummaryI didn't change any code: this failure was an external cancellation of the CI run, not a test failure. What the logs show (run 38087054076, commit
This matches earlier PRs (#2905, #2939, #2944), where shards were also cancelled before any test ran. Next step: re-run No visual previews were made, since nothing changed. No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
CI failed: Full Test Suite Shard 1/4 Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit a217e5c Summary of ChangesI fixed the shard 1/4 failure. It was caused by code on Cause: the failing test was
The hosted-fleet merge (#1714, Changes:
Tests: I made no visual changes, so there are no previews. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…in`, not by this PR. I fixed the shard 1/4 failure. It was caused by code on `main`, not by this PR. **Cause:** the failing test was `packages/api/test/openapiRouteCoverage.test.ts`: > `GET /api/internal/hosted/bootstrap is registered directly; list it in openapi/directRoutes.ts` The hosted-fleet merge (#1714, `dc049dcdf`) added three routes in `packages/api/routes/hostedFleetRoutes.ts:232-234` but didn't list them in the OpenAPI route list. This branch is based on that merge, and `main` still doesn't have the fix, so any PR built on it fails the same way. Open PR #2951 already carries the fix, and I copied it exactly so the two PRs won't conflict when they merge. **Changes:** - **`packages/api/openapi/directRoutes.ts`**: lists the `bootstrap`, `status` and `queue` routes under `/api/internal/hosted/`. - **`packages/api/openapi/buildSpec.ts`**: adds `/api/internal/hosted` to the `System` tag's prefixes. - **`docs/static/openapi/propr-api.yaml`**: the updated spec. I ran `npm run gen:openapi` and it produced the same file. **Tests:** `openapiRouteCoverage.test.ts`, `openapiResponseConformance.test.ts` and `test/openapiReferencePage.test.mjs` pass (25 passed, 0 failed) when run from the repo root with the `test:unit` flags. I didn't run the rest of shard 1/4. I made no visual changes, so there are no previews. PR: #2950 Comment by: @propr-dev[bot] (ID: 6102456989) Model: Claude Opus 5.5
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryI resolved the one merge conflict, in What the conflict was about: The two sides wrote different versions of a single comment above the three
How I resolved it: I kept Why: This PR is about the Improve tab's reference-repository selector and never changed this file. The branch's version came from an earlier sync with 🤖 Resolution Details
System-triggered merge conflict resolution |
|
/ultrafix goal=8 max=10 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 10) First action:
|
…tab-never-shows-t-20261010-2100-gtx Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - packages/api/openapi/directRoutes.ts PR: #2950 Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — claude:claude-opus-5-5Overall EvaluationPR #2950 fixes issue #2937. The Improve tab never showed the reference-repository selector because The fix is small and well placed. The container now:
The chosen All current-head checks pass. The PR is ready to merge. ✅ Correct identifier contract — ✅ Stale-response guard — The new effect resets ✅ End-to-end coverage at both layers — The unit test checks the visible options: self excluded, failed entries excluded, Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Move the loader out of TaskPlanner
S2: 🟢 Fetch reference options only when neededThe new effect calls
This is a minor efficiency gain, not a correctness issue. S3: 🟢 Explain when a reference adds no contextThe list includes repositories still in the
This behaviour predates the PR on the server side, so it is a follow-up rather than a blocker. S4: 🟢 Reference branch is not selectableOptions are deduplicated per repository, and the server builds reference context without a branch. A repository indexed only on a non-default branch may therefore resolve to different (or no) summaries than the user expects. The PR comment in S5: 🟢 Note the unrelated test changeThe ScoreThe PR wires the missing Score: 9/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
AI Implementation Summary
Closes #2937
Branch:
2937/claude-opus-5-5-improve-tab-never-shows-t-20261010-2100-gtxCommits: ✅ Changes committed (b2f0097)
AI Processing Completed
Execution Details:
Summary:
The Improve tab now shows the reference-repository selector whenever other repositories are indexed. Picking one sends its id as
referenceRepoIdwith the generate request. Unit tests, typecheck, lint and the new browser test all pass. I only ran that one browser test, not the rest ofrepositories-settings.pw.ts.What changed
RepoActionContainer.tsx: when the selected repository changes, it loads the indexed repositories using the same loader as the planner setup. That loader leaves out the current repository and keeps those that are fully indexed or still indexing. It passes the result to the panel asavailableRepos. Repositories indexed on several branches appear once, sorted by name, because the server builds reference context per repository rather than per branch.setupWizardHooks.ts: the planner'sloadIndexedRepositoriesis now exported so the Improve tab can reuse it unchanged.Tests
RepoImprovementsReferenceRepo.test.tsx), two cases:generateRepoImprovements, and the selector stays hidden when nothing else is indexed.e2e/repositories-settings.pw.ts: on the real Repositories page it opens Improve, checks the options, picks one, generates, and asserts that the request body containsreferenceRepoId: 'integry/integration-sdk'. I also used it to capture two screenshots: the open list of options, and a selected reference.Open question: the MCP tool checks that the user can access the reference repository before using it. The
/api/repos/improvementsroute doesn't checkreferenceRepoId, so the server trusts whatever the browser sends. The list is only as limited as the indexing-status endpoint behind it. The issue counts the route as already wired, so I left it alone, but it may be worth adding the same check there.Once this ships, the propr.dev improvement-suggestions page no longer needs to describe reference repositories as MCP-only.
Detailed Logs:
a39e31f7-3a72-438f-b53f-fe159a267747Log files stored at:
/tmp/claude-logs/issue-2937-2026-10-10T21-05-38-224Z-conversation.json/tmp/claude-logs/issue-2937-2026-10-10T21-05-38-224Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #2937.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!
Visual preview
Reference repository options
The Improve tab for integry/propr now shows the Reference Repository selector, listing the other indexed repositories and leaving out the current one
Original unavailable: managed storage is unavailable or the upload has expired.
Reference repository selected
integry/integration-sdk is chosen as the reference before generating suggestions; its id is sent as referenceRepoId
Original unavailable: managed storage is unavailable or the upload has expired.