Skip to content

Commit 075c76a

Browse files
summary message
1 parent 08ef2d4 commit 075c76a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/ui/notification.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,9 @@ function formatStatsHeader(
102102

103103
const maxTokenLen = Math.max(totalTokensStr.length, justNowTokensStr.length)
104104
const totalTokensPadded = totalTokensStr.padStart(maxTokenLen)
105-
const justNowTokensPadded = justNowTokensStr.padStart(maxTokenLen)
106105

107106
return [
108-
`▣ DCP Stats`,
109-
` Total saved │ ${totalTokensPadded}`,
110-
` Just now │ ${justNowTokensPadded}`,
107+
`▣ DCP | ${totalTokensPadded} saved`,
111108
].join('\n')
112109
}
113110

@@ -117,7 +114,8 @@ function buildDetailedMessage(data: NotificationData, workingDirectory?: string)
117114
let message = formatStatsHeader(totalTokens, justNowTokens)
118115

119116
if (data.aiPrunedCount > 0) {
120-
message += '\n\n▣ Pruned tools:'
117+
const justNowTokensStr = `~${formatTokenCount(justNowTokens)}`
118+
message += `\n\n▣ Pruned tools (${justNowTokensStr})`
121119

122120
for (const prunedId of data.aiPrunedIds) {
123121
const normalizedId = prunedId.toLowerCase()

0 commit comments

Comments
 (0)