Commit fc68e85
weiesky.wangc
feat(chat): support Claude Code 2.x JSONL transcripts with tool_result images (1.7.15)
- feat: v2-transcript-normalizer converts new top-level-message JSONL into legacy entries (per-session grouping, /clear segmentation, message.id assistant-row merging, uuid dedup), wired into cold/local/live ingest; base64 tool_result images render via the existing extractToolResultImages chain
- fix: live split-row merged tool_use blocks re-paired via _toolUses (label/input/Read/Edit state no longer lost); live /clear keeps the entry.timestamp === messages[0]._timestamp invariant and skips empty snapshots; string-content assistant rows merge without dropping content
- ui: tool-result images open the full-screen ImageLightbox (ToolResultView + simplified-mode inline under the tool pill, memoized); oversized placeholder unified via formatOversizedImagePlaceholder
- fix: synthetic entries no longer render undefined status/method; per-message timestamps survive applyBatchEntryTimestamps; delta-reconstructor excludes _syntheticV2 repair candidates
- test: 4 new test files (normalizer/incremental/image-pipeline/should-inline) + guards in delta-reconstructor/timestamp-assignment/client-safe-imports; all suites green1 parent 8c8b96e commit fc68e85
22 files changed
Lines changed: 1505 additions & 59 deletions
File tree
- server/lib
- src
- components
- chat
- dashboard
- viewers
- utils
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
3 | 10 | | |
4 | 11 | | |
5 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
247 | 250 | | |
248 | 251 | | |
249 | 252 | | |
| |||
0 commit comments