Repository navigation
Description
Problem
Submitting a review queue deletes the queued comments at the wrong lifecycle boundary, and nothing tracks sent feedback afterwards. Reported by the owner from live use: comments vanish "right after forwarding to the builder even though they haven't been actioned upon yet."
Verified at source (apps/vscode/src/review-queue/submit.ts:56-79): submitReview loads the queue, injects the composed message into the builder's prompt (injectBuilderText, bracketed paste), then immediately store.remove(...)s every comment. The status message itself says "placed in 's prompt — press Enter there to send" — i.e. delivery is acknowledged as incomplete at the moment the store discards its only copy. The sole path that preserves the queue is injection failing outright.
Two defects, one boundary
1. A loss window between injection and the human's Enter. The final Enter is deliberately the human's (#1037). Between injection and that Enter, the comments exist only as editable prompt text. If the prompt is cleared, the composer is overwritten, or the builder session dies before Enter is pressed, the comments are gone from both the store and the terminal. Every adjacent design this month is cancel-biased (a failure may cost a retry, never content); this path is the inversion — the destructive step (store clear) precedes the completing step (Enter).
2. No record of sent-but-unactioned feedback. Once flushed, no artifact tracks which feedback the builder has addressed. The Attention view (#1553) surfaces queued counts only; after submit the architect's "did it act on all N?" runs on memory and the builder thread. This is the diff-comment sibling of #1131 (resolve-state for spec/plan REVIEW markers, open): same lifecycle gap, different comment surface.
Suggested shape (two stages, severable)
Stage 1 — move the clear to a safe boundary (small, BUGFIX-shaped). On successful injection, move comments to a sent state (or archive) instead of deleting; the store is per-builder JSON in the worktree (.codev/pending-comments.json), so a status: pending|sent field or a sibling sent-comments.json is cheap. Re-submitting with sent-but-unconfirmed entries present should be an explicit choice (re-inject vs drop), not silent. Exact UX at plan gate.
Stage 2 — sent/actioned lifecycle (feature-shaped, possibly its own issue). Surface sent-but-unactioned feedback per builder (natural home: the Attention view's per-builder rollup) with a way to mark actioned — manual architect action at minimum; anything smarter (builder signals addressed) should be designed alongside #1131 rather than diverging from it, since they are the same lifecycle question on two surfaces.
Stage 1 stands alone if Stage 2 is deferred or split out.
Notes
- The queue store, submit flow, and status bar are
apps/vscode/src/review-queue/*(vscode: codelens-driven review comments in the unified diff editor — per-builder queue with batched submit to PTY (follow-up to #789) #1037, extended by vscode: review-flag gestures must prompt for comment prose (native inline thread, Submit/Cancel) — remove the promptless deck default #1552). No Tower/types surface is obviously required for Stage 1; Stage 2's rollup may want a field on the overview payload — if so, that is a stakeholder routing to the contract-surface owner, decided at plan time. - Related: vscode: resolve state on review comments + builder workflow for signalling addressed (#1055 follow-up) #1131 (resolve-state, spec/plan markers), Contextual panel: wire the Attention fallback body from OverviewCache (participating feature of #1049, skeleton fast-follow) #1553 (Attention view, where queued counts already render), vscode: codelens-driven review comments in the unified diff editor — per-builder queue with batched submit to PTY (follow-up to #789) #1037 (the queue's origin and the final-Enter-is-human design).
Activity
amrmelsayed commentedon Oct 5, 2026
On it! Working on a fix now.
Fix #1562: keep submitted review comments as sent instead of deleting…
[Bugfix #1562] Show sent count in the submit picker and confirm Mark …
[Bugfix #1562] Make Mark Delivered the default button; Re-send is the…
Merge pull request #1768 from cluesmith/builder/bugfix-1562
amrmelsayed commentedon Oct 5, 2026
Shipped (Stage 1). PR #1768 merged to main 2026-10-05T01:09:10Z as merge commit d78fd87 (admin merge by the main architect seat on the owner's pr-gate word, 01:00Z).
What landed (
apps/vscode/src/review-queue/{queue,store,submit}.ts+ 3 tests): on a successful submit the packaged comments MOVE to asentarray (each aPendingCommentplussentAt) in the same per-builder<worktree>/.codev/pending-comments.json, instead of being deleted.commentskeeps its name and shape (pending only), so Tower's queued count and the contextual panel's projection (#1559) are unaffected. A later submit with sent entries present asks in a modal: Mark Delivered (default, drops the record; confirmation when nothing is pending), Re-send, or cancel. A builder with only sent entries stays pickable, which is how lost feedback gets re-sent; the picker shows the sent-but-unconfirmed count. Regression test fails six ways against the old submit path. 1124 extension tests on the merged head; CI 7/7. Review: Gemini and Codex approve, Claude comment (two UX points applied). The Mark-Delivered default was the owner's direct instruction to the builder.Stage 2 (sent/actioned lifecycle, per-builder rollup, mark-actioned, builder-side signal decision, store accessor) is #1771.
Changelog:
apps/vscode/CHANGELOG.mdUnreleased Fixes anddocs/releases/UNRELEASED.mdPolish updated ondocs/vscode-changelog.docs(changelog): #1562 review-queue submit keeps comments as sent (PR #…