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. --- tests/test_cli.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/test_cli.py b/tests/test_cli.py index 4538f24..37fd7d6 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -151,6 +151,14 @@ class TestExport(CliCase): self.assertTrue(all(m["p"] == "/home/u/proj" for m in some)) self.assertLess(len(some), len(everything)) + def test_a_single_session_goes_without_memories(self): + simple_tree(self.root) + memory_tree(self.root) + _, out, _ = self.run_cli("-s", "aaaaaaaa", "--json") + data = json.loads(out) + self.assertEqual(len(data["s"]), 1) + self.assertEqual(data["m"], []) + def test_html_leaves_stdout_alone(self): # The summary goes to stderr so `--html /dev/stdout` keeps working. simple_tree(self.root) -- cgit v1.2.3