feat: add automatic review loop (#1840)
This commit is contained in:
committed by
GitHub
parent
45df19c3b2
commit
1f549e4525
@@ -24,6 +24,7 @@ export type ReviewFlowExecution = {
|
||||
variant: string;
|
||||
agent: string;
|
||||
generateHandoff: boolean;
|
||||
autoReview: boolean;
|
||||
};
|
||||
|
||||
type ReviewFlowDialogProps = {
|
||||
@@ -45,6 +46,7 @@ const getInitialExecution = (params: {
|
||||
variant: params.variant,
|
||||
agent: params.agent,
|
||||
generateHandoff: true,
|
||||
autoReview: false,
|
||||
});
|
||||
|
||||
export function ReviewFlowDialog({
|
||||
@@ -165,6 +167,16 @@ export function ReviewFlowDialog({
|
||||
<span>{t('diffView.reviewDialog.generateHandoff')}</span>
|
||||
</label>
|
||||
|
||||
<label className="flex items-center gap-2 typography-ui-label text-foreground">
|
||||
<Checkbox
|
||||
checked={execution.autoReview}
|
||||
onChange={(autoReview) => setExecution((prev) => ({ ...prev, autoReview }))}
|
||||
disabled={submitting}
|
||||
ariaLabel={t('diffView.reviewDialog.autoReview')}
|
||||
/>
|
||||
<span>{t('diffView.reviewDialog.autoReview')}</span>
|
||||
</label>
|
||||
|
||||
<div className="flex min-w-0 flex-col gap-1.5">
|
||||
<span className="typography-meta font-medium text-muted-foreground">{t('chat.modelControls.model')}</span>
|
||||
<ModelSelector
|
||||
|
||||
Reference in New Issue
Block a user