Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion packages/ai-native/src/browser/mcp/base-apply.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export abstract class BaseApplyService extends WithEventBus {
}
: await this.doApply(codeBlock);
if (!fastApplyFileResult.stream && !fastApplyFileResult.result) {
codeBlock.status = 'cancelled';
codeBlock.status = 'failed';
this.updateCodeBlock(codeBlock);
return codeBlock;
}
Expand Down
7 changes: 4 additions & 3 deletions packages/ai-native/src/browser/mcp/tools/editFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ You should specify the following arguments before the others: [target_file]`,
content: [
{
type: 'text',
// TODO: lint error
text: result.applyResult
? `The apply model made the following changes to the file:

Expand All @@ -91,9 +90,11 @@ ${result.applyResult.diagnosticInfos
.join('\n')}

Please fix the linter errors if it is clear how to (or you can easily figure out how to). Do not make uneducated guesses. And do not loop more than 3 times on fixing linter errors on the same file.`
: 'The apply model made no changes to the file.'
: ''
}`
: 'User cancelled the edit.',
: result.status === 'cancelled'
? 'User cancelled the edit.'
: 'The apply model made no changes to the file.',
},
],
};
Expand Down
Loading