feat: показывать recap (away_summary) Claude Code в заголовке сессии#182
Merged
Conversation
Claude Code 2.1.108+ writes auto-recap entries to session JSONL:
{"type":"system","subtype":"away_summary","content":"~40 words…"}
Parse the last away_summary per session, surface it as session.recap,
and use it in the card title when no explicit session_name is set.
Falls back to first_message when no recap exists, so sessions without
one behave identically.
Also:
- Strip "(disable recaps in /config)" suffix from displayed text
- Include recap in search haystack
- Bump parsed disk cache filename to -v2.json to force a one-time
rebuild so pre-existing cache entries pick up the new field
vakovalskii
added a commit
that referenced
this pull request
Apr 17, 2026
…lytics tabs Merged PRs: - #182 (@rrr3try): Show Claude Code recap (away_summary) as session title - #181 (@NovakPAai): Block bulk delete for filter-hidden sessions - #180 (@NovakPAai): Detect new sessions in existing dirs + local-agent-mode - #179 (@NovakPAai): Message sort toggle in session drawer + default setting - #86 (@NovakPAai): Sub-tabs in Cost Analytics (Overview/Breakdown/History) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
vakovalskii
added a commit
that referenced
this pull request
Apr 17, 2026
…lytics tabs (#183) Merged PRs: - #182 (@rrr3try): Show Claude Code recap (away_summary) as session title - #181 (@NovakPAai): Block bulk delete for filter-hidden sessions - #180 (@NovakPAai): Detect new sessions in existing dirs + local-agent-mode - #179 (@NovakPAai): Message sort toggle in session drawer + default setting - #86 (@NovakPAai): Sub-tabs in Cost Analytics (Overview/Breakdown/History) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Что
Claude Code 2.1.108+ пишет в JSONL сессии авто-резюме вида
{"type":"system","subtype":"away_summary","content":"…~40 слов…"}когда пользователь возвращается после простоя 3–5+ минут.
PR добавляет парсинг этих записей и показывает последний recap как заголовок карточки сессии — когда он есть и когда не задан явный
session_name.Приоритет заголовка
session_name(ручной кастомный) →recap(авто от Claude) →first_message(сырое первое сообщение).AI-титулы (
sessionTitles, localStorage) остаются поверх всего, как и раньше.Изменения
src/data.jsparseClaudeSessionFile: извлекает последнийaway_summaryв полеlastRecap(cap 300 символов).mergeClaudeSessionDetail: пробрасываетsession.recap.recap.codedash-parsed-cache-v2.json, чтобы одноразово перепарсить существующие записи и подхватить новое поле.src/frontend/app.jsstripRecapSuffix— срезает хвост(disable recaps in /config), который Claude Code добавляет к тексту.getSessionDisplayNameучитывает recap в приоритете.searchScoreищет и по recap.src/frontend/cloud.js— то же для локальных и облачных строк.Охват
Recap есть только там, где сработал авто-триггер на простой. В моём архиве (~800 сессий) — 2 с recap. Для сессий без него поведение не меняется.
Проверка
```bash
node -e "const d = require('./src/data.js'); const s = d.loadSessions().filter(x => x.recap); console.log(s.length, 'with recap'); s.slice(0,3).forEach(x => console.log(x.id.slice(0,8), '→', x.recap.slice(0,80)))"
```
Параллельный порт этой же фичи в родственный проект terminal-mba: Graf-RAGov@565ee00