Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion apps/staged/src/lib/features/diff/DiffModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,12 @@
const reviewId = reviewHandle?.state.review?.id ?? activeReviewId;
const reviewRef = reviewId ? `Re: #review:${reviewId}\n` : '';
const tail = mode === 'note' ? 'Plan a fix for this' : 'Fix this';
return `${reviewRef}Code review comment:\n> ${comment.path} ${formatLineRange(comment.span)}\n> ${comment.content}\n\n${tail}`;
// Quote every line (blank ones too) so multi-line comments stay one blockquote.
const quotedContent = comment.content
.split('\n')
.map((line) => (line ? `> ${line}` : '>'))
.join('\n');
return `${reviewRef}Code review comment:\n> ${comment.path} ${formatLineRange(comment.span)}\n${quotedContent}\n\n${tail}`;
}

async function launchSessionDirectly(comment: Comment, mode: BranchSessionType) {
Expand Down