feat: show active task count in /status output

This commit is contained in:
aiguozhi123456
2026-04-15 01:49:42 +08:00
committed by Xubin Ren
parent b60e8dc0ba
commit 634f4b45c1
5 changed files with 24 additions and 0 deletions
+2
View File
@@ -400,6 +400,7 @@ def build_status_content(
session_msg_count: int,
context_tokens_estimate: int,
search_usage_text: str | None = None,
active_task_count: int = 0,
) -> str:
"""Build a human-readable runtime status snapshot.
@@ -431,6 +432,7 @@ def build_status_content(
f"\U0001f4da Context: {ctx_used_str}/{ctx_total_str} ({ctx_pct}%)",
f"\U0001f4ac Session: {session_msg_count} messages",
f"\u23f1 Uptime: {uptime}",
f"\u26a1 Tasks: {active_task_count} active",
]
if search_usage_text:
lines.append(search_usage_text)