fix(core): restore ReadFolder declarative display and add missing test snapshots

This commit is contained in:
Michael Bleigh
2026-04-12 16:44:05 -07:00
parent 8548c6675f
commit 46377d2133
2 changed files with 91 additions and 0 deletions
+8
View File
@@ -288,6 +288,14 @@ class LSToolInvocation extends BaseToolInvocation<LSToolParams, ToolResult> {
name: LS_DISPLAY_NAME,
description: this.getDescription(),
resultSummary: displayMessage,
result: {
type: 'text',
text: entries
.map(
(entry) => `${entry.isDirectory ? '[DIR] ' : ''}${entry.name}`,
)
.join('\n'),
},
},
returnDisplay: {
summary: displayMessage,