Skip to content

feat(vscode): send inline review draft comments directly from diff - #11822

Merged
marius-kilocode merged 1 commit into
mainfrom
pepper-wedge
Jun 30, 2026
Merged

feat(vscode): send inline review draft comments directly from diff#11822
marius-kilocode merged 1 commit into
mainfrom
pepper-wedge

Conversation

@marius-kilocode

@marius-kilocode marius-kilocode commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Problem

When reviewing a diff in Agent Manager (and the full-screen diff view and the vscode diff view), the inline comment composer only offered a Comment action. That action saves the draft as a pending review comment in the footer. To actually send a single line comment to the chat, you had to save it as pending first and then use the per-comment "Send to chat" icon. There was no way to send one inline draft straight to the agent in a single step.

What changed

The inline draft composer now has a Send button next to Cancel and Comment. Clicking it sends the current draft directly through the existing review-comment append path (appendReviewComments / appendReviewCommentsToTerminal with autoSend: true), the same path the saved-comment "Send to chat" icon already uses, then clears the draft without leaving a pending comment behind.

Comment keeps its existing behavior of saving a pending review comment.

Both action buttons are disabled while the textarea is empty or whitespace-only, and they now carry a proper disabled style (dimmed with a not-allowed cursor) so the unclickable state is visible rather than just functional. Cancel stays enabled.

The send dispatch was extracted into a shared sendReviewComments helper so the new draft Send button and the existing saved-comment send icon use one implementation. The change is wired into both review surfaces: the Agent Manager inline DiffPanel and the full-screen FullScreenDiffView.

file-599b87ab0ff06c465c91756bad909109 file-2962b7d274b3a7a2ae8d9e3a1d35320d

@marius-kilocode marius-kilocode changed the title feat(agent-manager): send inline review draft comments directly from diff feat(vscode): send inline review draft comments directly from diff Jun 30, 2026
@kilo-code-bot

kilo-code-bot Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (5 files)
  • .changeset/send-inline-review-comments.md
  • packages/kilo-vscode/webview-ui/agent-manager/DiffPanel.tsx
  • packages/kilo-vscode/webview-ui/agent-manager/agent-manager.css
  • packages/kilo-vscode/webview-ui/diff-viewer/FullScreenDiffView.tsx
  • packages/kilo-vscode/webview-ui/diff-viewer/review-annotations.ts

Reviewed by gpt-5.4-20260305 · Input: 89K · Output: 14K · Cached: 1.3M

Review guidance: REVIEW.md from base branch main

@marius-kilocode
marius-kilocode merged commit 22c6699 into main Jun 30, 2026
21 checks passed
@marius-kilocode
marius-kilocode deleted the pepper-wedge branch June 30, 2026 08:55
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
feat(agent-manager): send inline review draft comments directly from diff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants