Commit 11fcd43
fix: file transfer system critical bugs and add persistence
- Fix recovery logic: save transfer data before cleanup so recovery
can actually use it to restart transfers
- Register GMCPClientFile package so Client.File.Download messages
are handled (was silently dropped)
- Fix error handling in handleIncomingChunk: capture hash from header
so errors report actual hash instead of "unknown"
- Add error handling to acceptTransfer in client.ts
- Wire up FileTransferStore for IndexedDB persistence:
- Chunks saved as they arrive for resumable transfers
- Metadata tracked for incomplete transfers
- Cleanup on completion, hash mismatch, or cancellation
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 6b9b302 commit 11fcd43
File tree
6 files changed
+1590
-1348
lines changed- src
- gmcp
- Client
6 files changed
+1590
-1348
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| 100 | + | |
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| |||
0 commit comments