Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

fix(tui): remove unnecessary summary

chensheng12345a2f6a98d2e8a
diff --git a/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.ts b/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.ts
index aca495a0bf..8a6abd341e 100644
--- a/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.ts
+++ b/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.ts
@@ -3158,11 +3158,16 @@ export class AppScreen implements Component, Focusable {
const statusBanner = workflowStatusBannerText(workflow.status);
const selectedPhase =
workflow.phases.find((phase) => phase.id === state.selectedPhaseId) ?? workflow.phases[0];
+ const workflowSummary = workflow.summary.trim();
+ const summaryLines =
+ workflowSummary.length > 0 && workflowSummary !== workflow.name.trim()
+ ? wrapPlainText(workflowSummary, width).map((line) =>
+ padToWidth(palette.text.dim(line), width),
+ )
+ : [];
const lines: string[] = [
padToWidth(palette.text.accent(workflow.name), width),
- ...wrapPlainText(workflow.summary, width).map((line) =>
- padToWidth(palette.text.dim(line), width),
- ),
+ ...summaryLines,
padToWidth(
`${formatWorkflowStatus(workflow.status)} ${palette.text.dim(`· ${completed}/${total} agents`)}`,
width,