Repository navigation
GitHub plugin: a pull request inbox that says what each one needs next - #6037
Closed
alexandre-vl wants to merge 2 commits into
Closed
alexandre-vl wants to merge 2 commits into
alexandre-vl wants to merge 2 commits into
Conversation
The plugin listed pull requests without saying what each one needed from the viewer, so every row had to be opened and read. This makes the panel an inbox: Your move first, then the viewer's own pull requests grouped by their next step, each row with one status glyph and the reason in words. - Views Inbox, Mine, All, Merged and Issues; the panel badge counts the pull requests that need the viewer. Filter with is:, author:, label:, base:, repo: and chips; j/k, Enter and single-key actions. - Pull request detail with a next-step card that leads with one GitHub action, a status pill (ready, draft, close, reopen) with Undo, the diff stat, a branch copy chip, and Activity, Files and Checks tabs. - One merge path: the card's split button, the row's Merge… step, m and the phone drawer share one method menu, and every merge runs gh pr merge with --match-head-commit. - Phones: long-press drawers titled with the pull request, 40 px touch targets, a merge drawer, rows that clamp to two lines. - Loading: the next-step skeleton takes the listed row's shape; status changes and merges show at once until GitHub reports them. - Failing checks stay visible when the viewer's review or conflicts lead. - Issues: list, detail, status, assignee and label pickers, new issue. - Start an agent: bb's new-thread composer in a sheet, seeded from the pull request or issue; a linked thread shows as a glyph on the row. - bb github CLI: pr-state, merge, rerun, snooze, unsnooze and agent. - The server keeps the viewer's last GitHub login. Fixes get-bb#5867
Contributor
Author
Every finding from the eight reviews, and its fixEight agent reviews in two rounds found 292 problems. Several reviews often found the same one; those share a line.
Merge
Phone and touch
Loading and data freshness
Hierarchy and coherence, including copy
Scope: the agent features that were cutThis theme also holds the non-agent power-user surfaces removed in the same pass (bulk selection, Peek, the Display menu, the fake Linear keys, the
Keyboard and focus
Status changes and state
Issues
Code health
|
Upstream get-bb#6013 typed thread action tabs with ExperimentalThreadActionTabProps, so the GitHub tab keeps its keyed PullPanelBody under that type. Upstream get-bb#6356 retired ctx.openPanel, so the thread pull request command opens the tab through ctx.experimental_panel and the plugin needs SDK 0.6.88. Thread tab props now carry the thread's environment and sidebar threads their parentNotifications, so the new tests pass both.
ymichael
added a commit
that referenced
this pull request
Nov 2, 2026
## Human comments ## What was wrong The GitHub plugin parsed PR and issue bodies and comments with its own regex Markdown renderer. It drifted from the host renderer: numbered and nested lists, blockquotes, task lists, strikethrough, autolinks, and HTML comments were not handled correctly. Open PR #6037 restyles that copy but does not consolidate it. ## What changed All five GitHub callers now use SDK Markdown. Deleted the custom renderer and table parser, and preserved table alignment in the host renderer so migration does not lose it. Body links now use shared host navigation. Net deletion: 296 lines. No wire or CLI changes. ## How you verified One shared SDK test table covers the former parser cases and Markdown drift. Table-removal and alignment-loss mutations fail the migrated tests; the alignment case failed before the host fix. Turbo passed 100 app Markdown/SDK tests, all 41 GitHub tests, and app/GitHub typecheck and lint (existing warnings only). Checked real PR #6037 and issue #6748 in the isolated running app, including nested and numbered lists, tables, and mobile table scrolling. Captured matching before/after screenshots. Fetching and rebasing onto the latest origin/main required no changes. > AGENT GENERATED
Contributor
|
This is an automated message. We have closed this pull request because it has been open for more than two weeks. |
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.
Human comments
What was wrong
The GitHub plugin showed pull requests as a table of titles with an open dot and a Review button, so it never said what a pull request needed or whose move it was. You had to open each one and read its checks, reviews and mergeability yourself; the detail's only action was Review with agent, and on a phone the table's columns did not fit. #5867 proposed an inbox that sorts pull requests by what they need next. The first port of that proposal was audited by eight independent agent reviews in two rounds: desktop design, phone and touch, scope, interaction bugs, interaction QA and code. Each round found the same root cause. The port added agent features that copied core, and its merge flow had six entry points, three confirm patterns and a dialog that overflowed. Check counts depended on the surface, and focus and loading broke under fast use. This pull request is that port after both rounds of fixes and cuts, rebased on
main.What changed
Only
plugins/github, its docs, the verify-bb recipe and twodocs/api_to_audit.mdconsumer notes change. Core, the SDK and the daemon are untouched; there is no wire change and noHOST_DAEMON_PROTOCOL_VERSIONbump.What to look at first
m, the phone drawer andbb github mergeall rungh pr merge --match-head-commit, so a push that lands mid-merge stops it.mor from the card, and a blocked one says why.main.j/kmoves one pull request per press in split view.What it does
#12 · Checks failing. The views are Inbox, Mine, All, Merged and Issues, and the panel badge counts what the Inbox tab counts./): free text plusis:,author:,assignee:,label:,base:,repo:andno:, with suggestions. Each token shows as a removable chip beside the number of matches.j/k, Enter and Esc move, open and close.aagent,mmerge,rready,sstatus,zsnooze,tthread,ccopy branch,oopen on GitHub.?lists them, grouped by where they work.mand the phone drawer. The default method comes first. Deleting the branch is off until you turn it on, and a branch that a bb worktree holds is kept. Every merge runsgh pr merge --match-head-commit.bb githubCLI: newpr-state,merge,rerun,snooze,unsnoozeandagentcommands, andprsnow prints each pull request's next step. Every command takes--jsonand--help.plugins/github/README.mdandPLUGIN_OVERVIEW.md;.bb/skills/verify-bb/features/plugin-github.md;docs/api_to_audit.md, which names this plugin as a consumer ofexperimental_useBadgeand ofexperimental_NewThreadComposer.main: Make GitHub PR diff headers clickable across the row #5901's whole-row diff header is carried over to the new Files tab.Where it differs from #5867
#5849 · 2 checks failingand23 checks passed · stacked on #5756. Rows here use words only, because the list and the detail count checks differently.sopens the whole row menu.xand bulk selection are gone.getPullwith a cache.gh pr mergefrom the plugin, not through core's environment merge, and the split button is the plugin's copy of core's.Kept as proposed:
mergeStateStatusstays out of the list request, so a row's Merge… defers to the detail.Every problem the reviews found, and its fix
Eight agent reviews in two rounds found 292 problems. Several reviews often found the same one; those share a line.
The 47 P0 and P1 findings, all fixed or cut
font-mono break-all. · superseded · components/merge.tsx:175-226, 195-198M, Merge all), with three confirmation patterns and three vocabularies. → OneMergeMethodItemslist serves the card's split button, the row's Merge…,mand the phone drawer, with core's method labels and no Merged status item; the split button mirrors core's but is plugin code, not extracted fromThreadPromptContextBanner. · fixed · components/merge.tsx:175-295; components/row-menu.tsx:147-196; components/workspace.tsx:630-651; app-logic.ts:457-494mworks unless a hard block applies, and from the list it opens the detail, which decides with GitHub'smergeStateStatus. · fixed · components/row-menu.tsx:93-105, 184-196; components/workspace.tsx:630-651; components/pull-detail.tsx:413-434; pull-status.ts:513-560; app.test.tsx:636align="end", so it ran past the button's left edge to the viewport edge. → The menu is w-56 and anchored at the start. · fixed · components/merge.tsx:281-283getPullreturns. · fixed · components/merge.tsx:123-149, 186-192; components/next-step.tsx:508-513mdid nothing on them. → Both cards offer Merge. · fixed · components/next-step.tsx:618-643, 729-745CompactLongPressMenudrawer, and onhover:nonedevices the "…" always shows, layered above the row button (no regression test covers the layering). · fixed · components/pull-list.tsx:224-235; components/row-menu.tsx:307-348; components/issues.tsx:447-488select-none, so iOS would likely start a text selection on a long press. → Rows setselect-none, as core's long-press rows do; no iOS device test was run. · fixed · components/pull-list.tsx:250; components/issues.tsx:382history.back(); the device gesture was not re-tested. · fixed · app.tsx:42-74; components/workspace.tsx:360-370, 514-515pr-6 scroll-pr-6, and the fade shows only while the content overflows. · fixed · components/pull-list.tsx:519-579overflow-wrap: anywhere. · fixed · components/markdown-lite.tsx:245text-sm font-semibold, and inline code istext-xs. · fixed · components/markdown-lite.tsx:68, 114; components/next-step.tsx:78-80AgentLinereplaces them, with the agent's state, its task and Open thread; questions are answered in the thread. · cut · components/next-step.tsx:184-229jopened the first row instead of the next one. → It steps from the merged row's last position. · fixed · components/workspace.tsx:502-506]switched to a view the user could not see. → The tabs stay visible while filtering. · fixed · components/workspace.tsx:546, 828-866?help, or pressing Esc in the narrow layout, dropped focus tobody. → A shareduseReturnFocushands focus back to whatever opened the overlay. · fixed · components/shared.tsx:107-136; components/agent-sheet.tsx:124-136; components/pull-list.tsx:610-620; components/workspace.tsx:353-358mfocused "Back", so Enter returned to the main menu, and a merge step opened directly still showed Back. → A step opened directly has no Back and focuses the first method. · fixed · components/row-menu.tsx:146, 259-301The 34 findings left open, all P2 or unrated
listItems), which several subscribers call at once. → Not done; low impact.rounded-md, containersrounded-lgwith no outdent; inline text buttons are still h-7text-xson desktop, and the pill is stillrounded-full.GitPullRequeston the pill, a muted one on the row, and a greenGitPullRequestArrowon a changed row. → Not done.github:<kind>:<repo>#<number>, and core's composer seeds only an empty draft (stored in localStorage). A sheet closed unsent and reopened after the PR's state or worktree changed therefore shows the old prompt, while the environment re-seeds.sopens the whole row menu, while the shortcuts list calls it "Change the status". → Not done.linkThreadis called only when the sheet spawns a thread.bb github issueslists only open issues, while the panel also lists closed ones. → Not done; the review proposed--state open|closed|all.listItemsaccepts inputs nobody sends,getPullships three unused fields, and many exports are used only in their own file. → Not done.getPulltypes absence as empty strings, which the UI turns back into null. → Not done.server.ts,pull-detail.tsx,inbox.tsxandworkspace.tsxwere each between 1,460 and 4,014 lines. → Partly done: the UI is split into per-surface modules, butserver.tsis still one 3,599-line file.KeyCapsuses core'sShortcutPill, while the shortcuts dialog hand-rolls<kbd>. → Not done.statusRequest,snoozeRequest,focusFilter). → Not done.getPullandmergePullbesidererunFailedChecks,repoSettingsandpullForThread). → Not done.useProjectHostis a shared hook with a single caller, the agent sheet. → Not done.switchView. → Not done.F27 is unverified. The agent sheet's loading placeholder and the composer are both
min-h-48, but core sets the composer's final height, so only a layout check can rule out a jump.The comment below lists all 292, theme by theme.
Before and after
All screenshots come from a local Ladle story with mocked public get-bb/bb data. The story is not part of this pull request.
mainand this pull requestFlows
Merging a ready pull request from its row, then opening one whose review is requested:
On a phone: long press, Merge…, Squash merge:
Every screen
Merge: the card's split button and its method menu
Row menu: the Merge… step
Row menu
Your review leads, and the failing check stays listed
Ready to merge
Filter chips
Split view with a running agent
Split view, ready to merge
Mine
Issues
Issue detail
New issue
Start an agent…
Home page
Shortcuts, grouped by where they work
Merge menu, dark
Pull request, dark
Issue detail, dark
On a phone:
Inbox
Long press: the row's drawer
The merge drawer
Pull request
Issues
Issue
Home page
Inbox, dark
What the reviews changed, first port and now
Merge, phone row actions, loading, failing checks, the agent sheet, and what was cut
Cut as agent or power-user features that copied core or didn't belong in a GitHub tool:
Bulk selection
Merge all
Display options
Thread header chip
How you verified
b143a228609:pnpm exec turbo run typecheck lint test --filter=bb-plugin-github:Tests 148 passed (148)(Make GitHub PR diff headers clickable across the row #5901 reports 44 onmain);Found 0 warnings and 0 errors.;tsrs.node scripts/check-plugin-forks.mjs plugins/github:1 forkable plugin(s) passed.expected to have a length of 2 but got +0.jin split view moves one pull request per press while the route catches up. It fails without the fix.Checks failing, and the review card lists the failing checks.jpresses 20 ms apart move six rows;Fixes #5867