From 5fc59b6936b2d4a05f5f5192458145d0112431d3 Mon Sep 17 00:00:00 2001 From: Elvis Claros Castro Date: Sat, 3 Oct 2026 20:48:25 -0300 Subject: Show a single session as the page itself A page with one session and no memories (a shared link, or -s --html) skips the list, stats and filters: the reader becomes the page, with the title, the details (now with the Claude Code version) and the transcript. A single session is exported without memories. --- claude_logbook/cli.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'claude_logbook/cli.py') diff --git a/claude_logbook/cli.py b/claude_logbook/cli.py index 57385c1..64c6c01 100644 --- a/claude_logbook/cli.py +++ b/claude_logbook/cli.py @@ -293,9 +293,10 @@ def delete_targets(pool, args): def export_selection(sessions, args): """What --json and --html export: the -s session, or what the filters and -n leave. With no filter at all, everything, memories included; otherwise - only the memories of the projects that made it.""" + only the memories of the projects that made it. A single session (-s) goes + alone, as it would be shared: no memories.""" if args.show: - chosen = [pick(filtered(sessions, args), args.show)] + return [pick(filtered(sessions, args), args.show)], [] else: chosen = filtered(sessions, args) if args.limit: -- cgit v1.2.3