Skip to content

Commit 364f572

Browse files
committed
fix: improve clarity of data merge messages
1 parent 0edcb94 commit 364f572

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

src/claude_monitor/cli/main.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -495,10 +495,22 @@ def _parse_date(date_str: Optional[str]):
495495
all_daily = history_manager.merge_with_current_data(
496496
current_daily, daily_historical
497497
)
498-
print_themed(
499-
f"Merged {len(current_daily)} current + {len(daily_historical)} historical days",
500-
style="info",
501-
)
498+
# Show data source composition
499+
current_dates = {d.get("date") for d in current_daily}
500+
historical_dates = {d.get("date") for d in daily_historical}
501+
from_current = len(current_dates)
502+
from_history_only = len(historical_dates - current_dates)
503+
504+
if from_history_only > 0:
505+
print_themed(
506+
f"Loaded {len(all_daily)} days total ({from_current} from current session, {from_history_only} from history)",
507+
style="info",
508+
)
509+
else:
510+
print_themed(
511+
f"Loaded {len(all_daily)} days from current session",
512+
style="info",
513+
)
502514
elif current_daily:
503515
all_daily = current_daily
504516
print_themed(

0 commit comments

Comments
 (0)