Repository navigation
Description
Gap
The contextual panel's Code Review render target is a scaffolded stub that was never wired to its data. apps/vscode/src/contextual-panel/webview/main.ts:38 renders only the header plus the placeholder "This builder's pending comments and files-to-review will appear here (#1037)", and no contextual-panel/* file reads the review queue at all (no reference to ReviewQueueStore / pending-comments anywhere in the directory — verified by grep on main, 2026-08-26).
Surfaced during pir-1552 dev-approval testing: the owner authored 6 review comments against a builder diff, the queue path worked (all 6 correctly persisted to the worktree's .codev/pending-comments.json with real prose), but the panel's "Code Review · " surface showed only the stub where he expected the queued comments. The queue currently surfaces only via the #1037 status-bar "Submit Review (N)" button and the inline diff threads.
This is the #1049 pattern working as designed — the panel merged with per-mode placeholder bodies, each body owned by a participating feature issue — except the Code Review body had no tracked participating issue (#1037 predates the panel and is closed). This issue is that tracker.
What to build
Wire the Code Review body to render the shown builder's pending review-comment queue. Follow the pattern #1553 established for the Attention body (see codev/reviews/1553-contextual-panel-wire-the-atte.md and the arch.md contextual-panel paragraph):
- A pure projection over the queue state (unit-testable, no
vscodeimport); decide during planning whether it is extension-local or belongs beside the other cross-client helpers — note the queue is extension-local state (a worktree file), unlike the overview wire, so extension-local is the likely answer. - Provider injects the queue store, attaches the payload to
RenderMessagealongside the descriptor only whenkind === 'code-review'(resolver andModeDescriptorstay pure), and re-posts on queue change only while a Code Review surface is showing. - Webview renders the pending comments for the shown builder (body text, anchor file/line, edit/delete affordances consistent with vscode: edit + preview-side delete on review comments (make the markdown reviewer functional) #1055/vscode: codelens-driven review comments in the unified diff editor — per-builder queue with batched submit to PTY (follow-up to #789) #1037 semantics if cheap — otherwise read-only list first) plus files-to-review, with an honest empty state. No persisted panel state, no pinning (vscode: contextual bottom panel that adapts to active editor (mode resolver + Attention fallback) #1049 rules bind).
Constraints
- The vscode: contextual bottom panel that adapts to active editor (mode resolver + Attention fallback) #1049 umbrella rules bind: purely contextual, no persisted state, no new mode map.
- Disjoint from pir-1552 (authoring path:
review-queue/feedback.ts,comments/builder-review.ts); 1552 was explicitly fenced out ofcontextual-panel/*and this issue is why that fence stays. - The placeholder's
#1037citation should be replaced by the real body when wired.
Provenance
Reported by the pir-1552 builder (in-code confirmation), during the owner's live dev-approval session reviewing a builder diff; filed by main as the tracked participating issue the surface was missing.
Activity
[PIR #1552] Review + retrospective
[Air #1559] feat: Wire contextual panel Code Review body to the pendi…
[Air #1559] Address CMAP nits: drop inert child, clarify registry lis…
[Air #1559] feat: Move Submit Review + Discard into the Code Review b…
[Air #1559] Address CMAP round 2: guard repeat review actions, drop s…
[Air #1559] feat: Separate Re-send / Mark Delivered, show the queue i…
[Air #1559] Make Mark Delivered the default sent-comment action; Re-s…
[Air #1559] Address CMAP round 3: confine file refs to the worktree, …
[Air #1559] Address CMAP round 4: anchor deleted-file refs on the dif…
Merge pull request #1769 from cluesmith/builder/air-1559
docs(changelog): #1559 review queue in the contextual panel (PR #1769)
amrmelsayed commentedon Oct 5, 2026
Shipped. PR #1769 merged to main 2026-10-05 as merge commit c229e45 (admin merge by the main architect seat on the owner's pr-gate word, 01:48Z).
What landed: the contextual panel's Code Review body renders the shown builder's pending review comments (body, file:line) and a "Commented files" list (files with pending or sent comments, with counts), via a pure projection in
contextual-panel/code-review.ts; the payload attaches only in code-review mode and re-posts only on the shown builder's queue change. Owner-directed additions during the lane, recorded verbatim in the PR body: the queue also renders in the Builder Inspector body when a builder terminal is focused (terminal-id to queue-id via the SDK'sresolveAgentNametail-match, with a two-workspace ambiguity test); every file reference is clickable and opens the builder's per-file diff at the line (openBuilderDiffLocation, worktree-confined); the queue's actions moved into the panel as Submit Review (N), Discard (confirms), and separate Re-send and Mark Delivered buttons with Mark Delivered as default; the status-bar "Submit Review (N)" item is retired andreview-queue/status-bar.tsdeleted (palette command stays). Three-way review on the final head: Codex and Claude approve, Gemini skipped. 1163 extension tests; CI 7/7 on the merged head. Not verified in a real window by the builder (no window server); the owner reviewed at the gate.Open edge carried to #1771: a brief false-empty on a fresh window before the async queue load needs a store accessor in review-queue.
Changelog:
apps/vscode/CHANGELOG.mdUnreleased anddocs/releases/UNRELEASED.md(own section) updated ondocs/vscode-changelog.docs(changelog): #1559 review queue in the Codev panel (PR #1769)
docs(changelog): drop duplicate #1559 entries, keep the earlier ones