Skip to content

Commit 130a764

Browse files
committed
fix(AutoDevInputSection): handle empty file list in renderText
1 parent 0d20d7c commit 130a764

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/src/main/kotlin/cc/unitmesh/devti/gui/chat/ui/AutoDevInputSection.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ class AutoDevInputSection(
4141
fun renderText(): String {
4242
val inputText = inputControlsManager.renderText()
4343
val files = fileWorkspaceManager.renderText()
44-
return inputText + "\n" + files
44+
return if (files.isNotEmpty()) {
45+
inputText + "\n" + files
46+
} else {
47+
inputText
48+
}
4549
}
4650

4751
fun clearText() {

0 commit comments

Comments
 (0)