Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix CLI output truncation (#21052)

Jin Hai8ff96a563abd
diff --git a/internal/cli/table.go b/internal/cli/table.go
index 26130634c3..29119fa0d1 100644
--- a/internal/cli/table.go
+++ b/internal/cli/table.go
@@ -180,13 +180,6 @@ func PrintTableSimpleByFormat(data []map[string]interface{}, format OutputFormat
rowParts := make([]string, 0, len(columns))
for _, col := range columns {
value := formatValue(item[col])
- valueWidth := getStringWidth(value)
- // Truncate if too long
- if valueWidth > colWidths[col] {
- runes := []rune(value)
- value = truncateStringByWidth(runes, colWidths[col])
- valueWidth = getStringWidth(value)
- }
// Pad to column width
rowParts = append(rowParts, fmt.Sprintf(" %s ", padCell(value, colWidths[col], false)))
}