You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
(Claude) --no-cache writes no session pages, but the index links them #406
A directory conversion with --no-cache and no date window writes the combined page and no session page, while the index links each session's page. Every such link is dead.
Reproduce
Two sessions in one project, an all-projects run without the cache:
On main e5301df (2026-11-08) this printed [] and True: no session page, and the index links session-s-day1.html. No cache.db was created. claude-code-log <projects> --no-cache takes the same path.
Cause
_generate_individual_session_files (claude_code_log/converter.py) writes a page only for a session that has a cache row (session_ids & set(session_data.keys())), and it reads the rows from the cache alone. With no cache there are no rows, so it writes no page. The index builds its session list from the messages instead, so it lists every session.
Possible fix
Without a cache, give the writer rows computed from the load (_build_session_data_from_messages), as a date-filtered run does since #403 (_window_session_rows). That changes the output of every --no-cache directory run: session pages are written that were not before, so the run writes more files and takes longer. It needs a test of that, and a check of what the snapshot tests cover.
Activity