Skip to content

Commit 975597a

Browse files
committed
New review option: changes this conversation
1 parent 71a2b8e commit 975597a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

cli/src/commands/prompt-builders.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,15 @@ export function buildInterviewPrompt(input: string): string {
4141
/**
4242
* Review scope presets for the review screen.
4343
*/
44-
type ReviewScope = 'uncommitted' | 'branch' | 'custom'
44+
type ReviewScope = 'conversation' | 'uncommitted' | 'branch' | 'custom'
4545

4646
/**
4747
* Get the default text for a review scope preset.
4848
*/
4949
function getReviewScopeText(scope: ReviewScope): string {
5050
switch (scope) {
51+
case 'conversation':
52+
return 'all changes made in this conversation'
5153
case 'uncommitted':
5254
return 'uncommitted changes'
5355
case 'branch':
@@ -59,7 +61,7 @@ function getReviewScopeText(scope: ReviewScope): string {
5961

6062
/**
6163
* Build a review prompt from scope or custom input.
62-
* @param scope - The selected review scope (uncommitted, branch, or custom)
64+
* @param scope - The selected review scope (conversation, uncommitted, branch, or custom)
6365
* @param customInput - Optional custom review focus (when scope is 'custom')
6466
* @returns The full prompt to send to the agent
6567
*/

cli/src/components/review-screen.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ interface ReviewOption {
1313
}
1414

1515
const REVIEW_OPTIONS: ReviewOption[] = [
16+
{ id: 'conversation', label: 'Changes this conversation' },
1617
{ id: 'uncommitted', label: 'Uncommitted changes' },
1718
{ id: 'branch', label: 'This branch vs main' },
1819
{ id: 'custom', label: 'Custom...' },
@@ -42,7 +43,7 @@ export const ReviewScreen: React.FC<ReviewScreenProps> = ({
4243
return
4344
}
4445

45-
const scope = option.id as 'uncommitted' | 'branch'
46+
const scope = option.id as 'conversation' | 'uncommitted' | 'branch'
4647
const reviewText = buildReviewPrompt(scope)
4748
onSelectOption(reviewText)
4849
},

0 commit comments

Comments
 (0)