Skip to content

vscode: review-queue submit deletes comments before delivery completes and keeps no sent-feedback record #1562

Closed

Description

@amrmelsayed

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

Activity

  1. added
    area/vscode
    on Aug 26, 2026
  2. amrmelsayed commented on Oct 5, 2026

    @amrmelsayed
    CollaboratorAuthor

    On it! Working on a fix now.

  3. added 3 commits that reference this issue on Oct 5, 2026
    4ffb8e7
    529cb72
    09a21da
  4. added a commit that references this issue on Oct 5, 2026
    d78fd87
  5. amrmelsayed commented on Oct 5, 2026

    @amrmelsayed
    CollaboratorAuthor

    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 a sent array (each a PendingComment plus sentAt) in the same per-builder <worktree>/.codev/pending-comments.json, instead of being deleted. comments keeps 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.md Unreleased Fixes and docs/releases/UNRELEASED.md Polish updated on docs/vscode-changelog.

  6. added a commit that references 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