Skip to content

Contextual panel: wire the Code Review body — render the pending review-comment queue for the shown builder (participating feature of #1049) #1559

Closed

Description

@amrmelsayed

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):

Constraints

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

  1. added
    area/vscode
    on Aug 26, 2026
  2. added a commit that references this issue on Aug 26, 2026
  3. added 8 commits that reference this issue on Oct 5, 2026
  4. added 2 commits that reference this issue on Oct 5, 2026
  5. amrmelsayed commented on Oct 5, 2026

    @amrmelsayed
    CollaboratorAuthor

    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's resolveAgentName tail-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 and review-queue/status-bar.ts deleted (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.md Unreleased and docs/releases/UNRELEASED.md (own section) updated on docs/vscode-changelog.

  6. added 2 commits that reference this issue on Oct 5, 2026
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

    area/vscode

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions