diff options
| author | Elvis Claros Castro <elvis@claros.ar> | 2026-10-03 19:47:45 -0300 |
|---|---|---|
| committer | Elvis Claros Castro <elvis@claros.ar> | 2026-10-03 19:47:45 -0300 |
| commit | a5896fe2e28eb1e9ff9affe5d47ccd443bee5fc2 (patch) | |
| tree | d76155b2c6aed9b905fe1b04094b879420964177 /claude_logbook/template.html | |
| parent | 60c586001cf4d21ef1351be8c8ad7a269a6f005a (diff) | |
| download | claude-logbook-a5896fe2e28eb1e9ff9affe5d47ccd443bee5fc2.tar.gz claude-logbook-a5896fe2e28eb1e9ff9affe5d47ccd443bee5fc2.zip | |
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.
Diffstat (limited to 'claude_logbook/template.html')
| -rw-r--r-- | claude_logbook/template.html | 19 |
1 files changed, 19 insertions, 0 deletions
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' ? `<div class="tool"><b>⚒</b><span>${esc(m.x)}</span></div>` + : m.r === 'c' + ? `<details class="compact"><summary>Context compacted here · the summary Claude kept</summary><div class="bubble">${renderBody(m.x)}</div></details>` : `<div class="turn turn-${m.r}"><span class="who">${WHO[m.r]}</span><div class="bubble">${renderBody(m.x)}</div></div>` ).join('') : `<p class="reader-empty">This session has no messages.</p>`; |