Skip to content

Commit ae8b4db

Browse files
committed
fix(language-processor): handle local commands in DevInsCustomAgentResponse
The `DevInsCustomAgentResponse` class now correctly handles both compilation errors and local commands, ensuring a more robust language processing experience for users.
1 parent b2dcf1e commit ae8b4db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/provider/DevInsCustomAgentResponse.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class DevInsCustomAgentResponse : LanguagePromptProcessor {
2525
val devInsCompiler = DevInsCompiler(project, devInFile)
2626

2727
val result = devInsCompiler.compile()
28-
return if (result.hasError) {
28+
return if (result.hasError || result.isLocalCommand) {
2929
text
3030
} else {
3131
result.output

0 commit comments

Comments
 (0)