Skip to content

Commit

Permalink
fix(language-processor): handle local commands in DevInsCustomAgentRe…
Browse files Browse the repository at this point in the history
…sponse

The `DevInsCustomAgentResponse` class now correctly handles both compilation errors and local commands, ensuring a more robust language processing experience for users.
  • Loading branch information
phodal committed Mar 29, 2024
1 parent b2dcf1e commit ae8b4db
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -25,7 +25,7 @@ class DevInsCustomAgentResponse : LanguagePromptProcessor {
val devInsCompiler = DevInsCompiler(project, devInFile)

val result = devInsCompiler.compile()
return if (result.hasError) {
return if (result.hasError || result.isLocalCommand) {
text
} else {
result.output
Expand Down

0 comments on commit ae8b4db

Please sign in to comment.