Skip to content

Inline comments on the agent diff, sent back as a follow-up prompt #162

Closed

Description

@currentbits

What competitors do

Vibe Kanban lets you comment on AI-generated code in the review step (site); CodexMonitor added line-level composer actions in its diff viewer (releases).

Solenta today

src/diffView.ts only classifies and tints unified-diff lines; there is no anchor, comment box, or send-back affordance anywhere in the diff UI. src/reviewBar.ts is per-run stats + undo, not review.

Why it matters

Reviewing agent output is the main human bottleneck. Typing "line 42 of foo.ts is wrong, use Y" into the composer loses the anchor; click-to-comment on a diff line turns review into a structured follow-up turn with file/line context attached.

Activity

  1. added
    enhancement
    plan:todo
    on Aug 16, 2026
  2. currentbits commented on Aug 17, 2026

    @currentbits
    OwnerAuthor

    Deep-dive detail (T3 PR #6597): PR line-selection to composer chips — 'Add to agent' puts selected diff lines + PR context into the composer as editable chips, kept distinct from posting a review comment. Sharper than a generic ask-about-this flow.

  3. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    Research note (Conductor's experimental Pierre editor): editing files directly IN the diff view (split and unified), with comments from the line-number gutter. Warp Code's reviewers said the same: 'sometimes a hand-edit is faster than re-prompting'. Inline editing, not just inline comments.

  4. currentbits commented on Aug 19, 2026

    @currentbits
    OwnerAuthor

    Claude Code Desktop's diff comments batch before they send, which is the detail that makes this feature usable (docs):

    "To comment on specific lines, click any line in the diff to open a comment box. Type your feedback and press Enter to add the comment. After adding comments to multiple lines, submit all comments at once: Cmd+Enter."

    One turn per review pass, not one turn per comment. Solenta's naive version — each comment becomes a follow-up message — would burn a run per nit and let the agent start fixing comment 1 while the user is still writing comment 4.

    The rest of the shape: the diff opens from a +12 -1 stats indicator in the transcript, file list left / changes right, and the agent's response "appears as a new diff you can review" — so the review loop is diff → comments → diff, never leaving the pane. With #259's self-review writing into the same gutter, agent and user comments share one thread per line.

  5. added
    plan:doing
    and removed
    plan:todo
    on Aug 23, 2026
  6. currentbits commented on Aug 23, 2026

    @currentbits
    OwnerAuthor

    Shipped in this worktree: click a line-number gutter on the Git pane diff, type a comment, Send (or Cmd+Enter). That becomes a follow-up prompt with file/line and the quoted line attached.

    • Idle thread: starts a turn immediately
    • Working thread: the button says Queue and uses the existing follow-up path
    • Archived thread: no comment controls

    Helpers live in src/diffView.ts (annotateHunkLines, formatDiffCommentPrompt). Tests: test/diffView.test.ts, test/changesPanel.test.tsx.

  7. added
    plan:done
    and removed
    plan:doing
    on Aug 23, 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

    enhancementplan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions