Skip to content

Commit 11fcd43

Browse files
ctothclaude
andcommitted
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

6 files changed

+1590
-1348
lines changed

src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import {
2525
GMCPCharStatusAffectedBy, // Added
2626
GMCPCharStatusConditions, // Added
2727
GMCPCharStatusTimers,
28+
GMCPClientFile,
2829
GMCPClientFileTransfer,
2930
GMCPClientHtml,
3031
GMCPClientKeystrokes,
@@ -96,6 +97,7 @@ function App() {
9697
newClient.registerGMCPPackage(GMCPCommLiveKit);
9798
newClient.registerGMCPPackage(GMCPAutoLogin);
9899
newClient.registerGMCPPackage(GMCPClientHtml);
100+
newClient.registerGMCPPackage(GMCPClientFile);
99101
newClient.registerGMCPPackage(GMCPClientFileTransfer);
100102
newClient.registerGMCPPackage(GMCPCharItems);
101103
newClient.registerGMCPPackage(GMCPCharStatus); // Removed duplicate below

0 commit comments

Comments
 (0)