From a5896fe2e28eb1e9ff9affe5d47ccd443bee5fc2 Mon Sep 17 00:00:00 2001 From: Elvis Claros Castro Date: Sat, 3 Oct 2026 19:47:45 -0300 Subject: Use the /rename title, mark compactions, count active time A title set with /rename (custom-title) now wins over Claude's. The summary Claude Code leaves when the context is compacted is a block of its own ("c"), shown as a "context compacted here" mark instead of a message of yours, and not counted. Duration is active time: pauses over 30 minutes between messages are left out. --- claude_logbook/template.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'claude_logbook/template.html') diff --git a/claude_logbook/template.html b/claude_logbook/template.html index c018320..20dfbee 100644 --- a/claude_logbook/template.html +++ b/claude_logbook/template.html @@ -509,6 +509,23 @@ } .tool b { color: var(--amber); font-weight: 500; flex-shrink: 0; } + .compact { margin: 6px 0; } + .compact summary { + font-family: var(--mono); + font-size: 11.5px; + color: var(--muted); + cursor: pointer; + text-align: center; + padding: 6px 0; + border-top: 1px dashed var(--line); + border-bottom: 1px dashed var(--line); + list-style: none; + } + .compact summary::-webkit-details-marker { display: none; } + .compact summary::before { content: '▸ '; } + .compact[open] summary::before { content: '▾ '; } + .compact .bubble { margin-top: 8px; font-size: 13.5px; } + .reader-empty { color: var(--muted); font-family: var(--mono); font-size: 13px; text-align: center; padding: 60px 20px; } /* ---------- toast ---------- */ @@ -1170,6 +1187,8 @@ function openChat(id) { bodyEl.innerHTML = d.c.length ? d.c.map(m => m.r === 't' ? `
⚒${esc(m.x)}
` + : m.r === 'c' + ? `
Context compacted here · the summary Claude kept
${renderBody(m.x)}
` : `
${WHO[m.r]}
${renderBody(m.x)}
` ).join('') : `

This session has no messages.

`; -- cgit v1.2.3