Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

feat: surface ecc2 tool and file metrics in sessions pane

Affaan Mustafac6e26ddea46f
diff --git a/ecc2/src/tui/dashboard.rs b/ecc2/src/tui/dashboard.rs
index 8c726340f..32e9543c1 100644
--- a/ecc2/src/tui/dashboard.rs
+++ b/ecc2/src/tui/dashboard.rs
@@ -470,6 +470,8 @@ impl Dashboard {
"Approvals",
"Backlog",
"Tokens",
+ "Tools",
+ "Files",
"Duration",
])
.style(Style::default().add_modifier(Modifier::BOLD));
@@ -481,6 +483,8 @@ impl Dashboard {
Constraint::Length(10),
Constraint::Length(7),
Constraint::Length(8),
+ Constraint::Length(7),
+ Constraint::Length(7),
Constraint::Length(8),
];
@@ -4742,6 +4746,8 @@ fn session_row(
.add_modifier(Modifier::BOLD)
}),
Cell::from(session.metrics.tokens_used.to_string()),
+ Cell::from(session.metrics.tool_calls.to_string()),
+ Cell::from(session.metrics.files_changed.to_string()),
Cell::from(format_duration(session.metrics.duration_secs)),
])
}
@@ -5253,9 +5259,10 @@ mod tests {
timestamp: Utc::now(),
}];
- let rendered = render_dashboard_text(dashboard, 180, 24);
+ let rendered = render_dashboard_text(dashboard, 220, 24);
assert!(rendered.contains("ID"));
assert!(rendered.contains("Branch"));
+ assert!(rendered.contains("Tool Files"));
assert!(rendered.contains("Total 2"));
assert!(rendered.contains("Running 1"));
assert!(rendered.contains("Completed 1"));