fix(frontend): display error content when FileEditorAction encounters an error (#11560)

This commit is contained in:
Hiep Le 2025-10-29 23:03:25 +07:00 committed by GitHub
parent 0e7fefca7e
commit 6630d5dc4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,6 +19,10 @@ const getFileEditorObservationContent = (
): string => {
const { observation } = event;
if (observation.error) {
return `**Error:**\n${observation.error}`;
}
const successMessage = getObservationResult(event) === "success";
// For view commands or successful edits with content changes, format as code block