v0.16.14: TypeScript 编译错误修复 + 文档同步 + 代码健壮性增强
This commit is contained in:
@@ -1080,7 +1080,7 @@ function renderToolCard(tc: ToolCallRecord): string {
|
||||
} else if (tc.name === 'delete_file') {
|
||||
if (r.batch) {
|
||||
resultHtml = `<div class="tool-result-entry">✅ 批量删除 ${r.successCount}/${r.totalPaths} 个路径</div>`;
|
||||
if (r.results) {
|
||||
if (Array.isArray(r.results)) {
|
||||
for (const res of r.results) {
|
||||
resultHtml += `<div class="tool-result-entry">${res.success ? '✅' : '❌'} ${escapeHtml(String(res.path || ''))}${res.success ? '' : ' — ' + escapeHtml(String(res.error || ''))}</div>`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user