Commit be19fe9
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
2 files changed
+369
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
117 | 123 | | |
118 | 124 | | |
119 | 125 | | |
| |||
179 | 185 | | |
180 | 186 | | |
181 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
182 | 193 | | |
183 | 194 | | |
184 | 195 | | |
| |||
0 commit comments