File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed
mpp-core/src/commonMain/kotlin/cc/unitmesh/agent/tool/impl
mpp-ui/src/commonMain/kotlin/cc/unitmesh/devins/ui/compose/agent Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -257,10 +257,8 @@ class GlobInvocation(
257257 result.appendLine()
258258
259259 for (match in matches) {
260- val typeIndicator = if (match.isDirectory) " 📁" else " 📄"
261260 val path = match.relativePath.ifEmpty { match.path }
262-
263- result.append(" $typeIndicator $path " )
261+ result.append(path)
264262
265263 if (params.includeFileInfo && ! match.isDirectory) {
266264 match.size?.let { size ->
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ class CodingAgentViewModel(
257257 } catch (e: CancellationException ) {
258258 // Task was cancelled - save conversation history before cleanup
259259 saveConversationHistory(codingAgent)
260-
260+
261261 // Reset all states and add cancellation message at the end
262262 renderer.forceStop() // Stop all loading states
263263
@@ -268,7 +268,7 @@ class CodingAgentViewModel(
268268 } catch (e: Exception ) {
269269 // Save conversation history even on error
270270 saveConversationHistory(codingAgent)
271-
271+
272272 renderer.renderError(e.message ? : " Unknown error" )
273273 isExecuting = false
274274 currentExecutionJob = null
@@ -284,16 +284,16 @@ class CodingAgentViewModel(
284284 chatHistoryManager?.let { manager ->
285285 try {
286286 val conversationHistory = codingAgent.getConversationHistory()
287-
287+
288288 // 获取 ChatHistoryManager 中已保存的消息数量
289289 val existingMessagesCount = manager.getMessages().size
290-
290+
291291 // 过滤掉 SYSTEM 消息,保存所有 USER 和 ASSISTANT 消息
292292 // 跳过已经保存的消息(根据数量判断)
293293 val newMessages = conversationHistory
294294 .filter { it.role == MessageRole .USER || it.role == MessageRole .ASSISTANT }
295295 .drop(existingMessagesCount)
296-
296+
297297 // 按顺序保存新消息
298298 newMessages.forEach { message ->
299299 when (message.role) {
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ class LintExecutor {
101101 )
102102 )
103103
104- progressCallback?.invoke(" 📄 ${result.filePath} \n " )
104+ progressCallback?.invoke(" ${result.filePath} \n " )
105105
106106 if (modifiedCodeRanges.isNotEmpty()) {
107107 val totalIssues = result.issues.size
You can’t perform that action at this time.
0 commit comments