Skip to content

Commit c0c4db0

Browse files
committed
refactor(ui): remove file type icons from file listings #453
Removed emoji icons from file and directory listings to simplify output and improve readability in UI and tool outputs.
1 parent 1234ed3 commit c0c4db0

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

mpp-core/src/commonMain/kotlin/cc/unitmesh/agent/tool/impl/GlobTool.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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 ->

mpp-ui/src/commonMain/kotlin/cc/unitmesh/devins/ui/compose/agent/CodingAgentViewModel.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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) {

mpp-ui/src/commonMain/kotlin/cc/unitmesh/devins/ui/compose/agent/codereview/analysis/LintExecutor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)