Repository navigation
Date sessions by their last message, not the transcript file - #8
Merged
Merged
Conversation
Claude Code appends bookkeeping lines (custom-title, cost-state, bridge-session, last-prompt) to idle transcripts, so a session idle since Nov 3 showed as active today: it entered the summary's 24-hour window and the top of Sessions. Session.LastActive is now the newest message or tool call, falling back to mtime; the summary window, touched times, topic activity, note fingerprints and the Sessions tab all read it. mtime still keys the parse cache, which moves to sessions-v2.json so cached sessions are read again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NtvhFvhWywmqE7ZEmKxLJy
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NtvhFvhWywmqE7ZEmKxLJy
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.
What and why
The tcg-feed session, idle since Nov 3, showed up in the last 24 hours of a summary. Claude Code keeps appending bookkeeping lines (custom-title, cost-state, bridge-session, last-prompt) to idle transcripts, which moves the file mtime that agentyard used as "last active".
Session.LastActive()is the newest user/assistant message (Claude) or message/tool call (Codex), falling back to mtime. The summary window, touched times, topic activity, note fingerprints and the Sessions tab (Last active, sort, filter) all read it.sessions-v2.jsonso sessions cached before this are read again.On this Mac: tcg-feed now reads last active Nov 3, 11:07, and sessions active in the last 24 hours outside scratch folders drop from 27 to 18.
Checklist
gofmt -l .clean,go vet ./...andgo test -race ./...pass (168 s)🤖 Generated with Claude Code
https://claude.ai/code/session_01NtvhFvhWywmqE7ZEmKxLJy