There was an error while loading. Please reload this page.
1 parent b01c3b9 commit 9230218Copy full SHA for 9230218
1 file changed
36-vanilla-agent-dashboard-widgets/vanilla_agent_dashboard_widgets/main.py
@@ -58,7 +58,12 @@ def format_widget(w):
58
msg += "| Field | Value |\n"
59
msg += "|-------|-------|\n"
60
msg += f"| Name | {w.name or 'N/A'} |\n"
61
- msg += f"| Description | {w.description or 'N/A'} |\n"
+ # Clean up description - replace newlines with spaces
62
+ description = str(w.description or 'N/A')
63
+ description = description.replace('\n', ' ').replace(' ', ' ').strip()
64
+ if len(description) > 150:
65
+ description = description[:147] + '...'
66
+ msg += f"| Description | {description} |\n"
67
msg += f"| ID | {w.widget_id or 'N/A'} |\n"
68
msg += f"| Category | {getattr(w, 'category', 'N/A') or 'N/A'} |\n"
69
msg += f"| UUID | {getattr(w, 'uuid', 'N/A') or 'N/A'} |\n\n"
0 commit comments