Skip to content

Commit b6b6fcc

Browse files
Merge pull request #65 from spoons-and-mirrors/dev
DCP summary message
2 parents 08ef2d4 + 54fa760 commit b6b6fcc

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 total`,
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)