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
Two bugs made 003 (on-demand session capture) non-functional in the GIGANTIC
platform layout where Claude Code is launched at the GIGANTIC root (an ancestor
of gigantic_project-*) rather than inside gigantic_project-* itself:
- Path discovery: the source ~/.claude/projects/<encoded> dir was derived from the
gigantic_project-* root, so for ancestor-launched sessions it pointed at a
directory that does not exist -> "No Claude session storage found", captured
nothing. Now find_claude_jsonl_directory() walks up from the project root to the
deepest ancestor whose encoded session dir exists (the launch root), with a new
--source-root override for explicit control. Destination is unchanged
(gigantic_project-*/research_notebook/research_ai/sessions/).
- Invalid f-string format specs: four f-strings used "{x:.1f }" (trailing space in
the format spec), which raises ValueError: Invalid format specifier on Python 3.9
-> the capture/log step crashed after copying. Fixed to "{x:.1f}".
Verified on species70 layout: --dry-run and a real run now auto-detect the
GIGANTIC-root session dir, capture + log correctly (exit 0), and --source-root
override resolves explicitly. The PreCompact hook (002) was unaffected (Claude
passes it the transcript path directly).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: gigantic_project-COPYME/ai/ai_scripts/003_ai-python-copy_session_jsonls.py
+67-9Lines changed: 67 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
#!/usr/bin/env python3
2
2
# AI: Claude Code | Opus 4.7 (1M context) | 2026 May 25 | Purpose: On-demand "Save Chat!" raw-copy of every Claude Code session JSONL for this project into research_notebook/research_ai/sessions/ as lossless gzipped permanent archives
3
+
# AI: Claude Code | Opus 4.8 (1M context) | 2026 June 28 | Fix: auto-detect Claude's session dir when sessions were launched at an ANCESTOR of the gigantic_project-* root (e.g. the GIGANTIC platform root); add --source-root override; fix invalid f-string format specs ({x:.1f }) that crashed capture on Python 3.9
0 commit comments