Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions lib/ui/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,9 @@ function formatStatsHeader(

const maxTokenLen = Math.max(totalTokensStr.length, justNowTokensStr.length)
const totalTokensPadded = totalTokensStr.padStart(maxTokenLen)
const justNowTokensPadded = justNowTokensStr.padStart(maxTokenLen)

return [
`▣ DCP Stats`,
` Total saved │ ${totalTokensPadded}`,
` Just now │ ${justNowTokensPadded}`,
`▣ DCP | ${totalTokensPadded} saved total`,
].join('\n')
}

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

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

for (const prunedId of data.aiPrunedIds) {
const normalizedId = prunedId.toLowerCase()
Expand Down