Skip to content
Open
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
4 changes: 2 additions & 2 deletions src/review/reviewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ export const reviewDiff = async (
}
console.log('[Amp] Iterator completed');

// Check if threadId and result are defined
if (!threadId || !result) throw new Error('Amp review failed');
// Check if threadId is defined (result can be empty when AI only uses tools)
if (!threadId) throw new Error('No thread ID received from Amp');

return { success: true, threadId, result, commentsFilePath };
} catch (error) {
Expand Down