Skip to content

Commit be19fe9

Browse files
Myoontyeeclaude
andcommitted
feat: add Trim Large Session command (v0.8.5)
Fixes 400 "unexpected end of JSON input" errors caused by oversized sessions (60MB+) exceeding API provider payload limits. The trim operation: - Keeps init/system lines + last N message turns (default 400) - Backs up original to .jsonl.bak-TIMESTAMP before overwriting in-place - Session ID unchanged so existing CC entry point still works - Available via Repair menu > Trim, and as inline button on session tree items Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a73bb1f commit be19fe9

File tree

2 files changed

+369
-35
lines changed

2 files changed

+369
-35
lines changed

package.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "claude-code-exporter",
33
"displayName": "Claude Code Exporter — Claude Code, Codex & Cursor Conversation History",
44
"description": "Export AI coding agent conversations to Markdown. Supports Claude Code (→ .claude-code-history/), OpenAI Codex (→ .codex-history/), and Cursor Composer (→ .cursor-history/). Features: auto-watch, session inject/import for claude --resume, and repair of thinking-block signature errors when switching API providers.",
5-
"version": "0.7.7",
5+
"version": "0.8.5",
66
"publisher": "myoontyee",
77
"engines": {
88
"vscode": "^1.85.0"
@@ -114,6 +114,12 @@
114114
"icon": "$(wrench)",
115115
"category": "Claude Code Exporter"
116116
},
117+
{
118+
"command": "claudeCodeExporter.trimSession",
119+
"title": "Trim Large Session (Keep Recent Messages, Backup Original)",
120+
"icon": "$(fold)",
121+
"category": "Claude Code Exporter"
122+
},
117123
{
118124
"command": "claudeCodeExporter.renameWorkspace",
119125
"title": "Rename This Workspace Folder (Keep AI Conversations Linked)",
@@ -179,6 +185,11 @@
179185
"command": "claudeCodeExporter.injectSession",
180186
"when": "viewItem == session",
181187
"group": "inline@3"
188+
},
189+
{
190+
"command": "claudeCodeExporter.trimSession",
191+
"when": "viewItem == session",
192+
"group": "inline@4"
182193
}
183194
]
184195
},

0 commit comments

Comments
 (0)