Skip to content

Commit 96062b0

Browse files
differentiate system prompt char
1 parent 96e5b2e commit 96062b0

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

lib/ui/utils.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,17 @@ export function formatSessionMap(
213213
const bar = new Array(width).fill("█")
214214

215215
for (let m = 0; m < total; m++) {
216+
const start = Math.floor((cum[m] / totalWeight) * width)
217+
const end = Math.floor((cum[m + 1] / totalWeight) * width)
218+
219+
if (messageIds[m] === "__system__") {
220+
for (let i = start; i < end; i++) {
221+
bar[i] = "▌"
222+
}
223+
continue
224+
}
225+
216226
if (prunedMessages.has(messageIds[m])) {
217-
const start = Math.floor((cum[m] / totalWeight) * width)
218-
const end = Math.floor((cum[m + 1] / totalWeight) * width)
219227
const char = newPrunedIds.has(messageIds[m]) ? "⣿" : "░"
220228
for (let i = start; i < end; i++) {
221229
bar[i] = char

0 commit comments

Comments
 (0)