Repository navigation
feat(web): sidebar shelf for open pull requests linked to unsettled threads - #19132
Closed
NullVoxPopuli wants to merge 1 commit into
Closed
NullVoxPopuli wants to merge 1 commit into
NullVoxPopuli wants to merge 1 commit into
Conversation
…hreads Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
|
each of my conversations/threads has sub-agents, and often multiple related worktrees, so I'm hoping that this linked PRs thing would allow me to more easily find which PR belongs to which conversation |
Author
sidebar-pull-requests-shelf.webm |
NullVoxPopuli
marked this pull request as ready for review
October 13, 2026 20:40
Collaborator
|
Note Written by Thanks for submitting this. The new collapsible Pull requests shelf adds a sidebar workflow, and the description confirms it has no approved Ideas discussion, so it requires prior approval. Please bring the linked-PR discoverability problem to an Ideas discussion and obtain explicit direction and scope approval before requesting reconsideration. |
Author
|
Prs are also a place to discuss these things |
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.
Problem
The PRs button in the sidebar footer shows every PR on every repo my threads touch.
I want the PRs my active threads have linked, and nothing else.
Each of my threads has subagents, and often a few related worktrees, so it's hard to tell which PR belongs to which thread.
Right now the only way to find out is to hover each thread's PR badge.
Change
This PR adds a collapsible "Pull requests" section to the sidebar, under Working / Snoozed / Settled.
It lists the open PRs linked from my active threads, and clicking one jumps to its thread with the PR open in the right panel.
The section works like the other ones: collapsed by default, remembers open/closed in localStorage, and shows a count while collapsed.
What shows up:
Clicking a row goes to the thread and opens the PR in the right panel, same as clicking a thread's PR badge.
Cmd/ctrl+click opens it on GitHub.
If the PR's repo doesn't match a project in that thread's environment, the click opens the link instead (same fallback the badge has).
It reads the
pullRequestsalready on the shell, so there are no new subscriptions, RPCs, or contract changes.The section is hidden when there are no open PRs, and while searching threads.
Files
collectSidebarOpenPullRequestsinapps/web/src/components/Sidebar.logic.tspicks, de-dupes, and sorts the PRsapps/web/src/components/sidebar/SidebarPullRequestsShelf.tsxrenders the sectionSidebar.tsxfeeds it the unsettled threads and renders it after the thread listNot in this PR: mobile.
Scope and approval
This is a new feature, and there's no approved Ideas discussion for it yet.
Happy to open one, or close this if it's not the direction you want.
Verification
vp test run apps/web/src/components/Sidebar.logic.test.ts -t collectSidebarOpenPullRequests: 2 new tests pass (open / unsynced / merged / closed / stack-dismissed links, ordering, de-dupe across threads)tsc-rs --noEmitinapps/webpasses, andvp linton the changed files adds no new warningsBefore:
After:
sidebar-pull-requests-shelf.webm
🤖 Generated with Claude Code (Claude Opus 5.5)