mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-16 13:00:55 +00:00
* fix: Skip Attachments Deleted by Storage Retention Instead of Failing the Turn A file that storage retention removed from an earlier message made every later turn of the conversation fail, because the encoders rethrew the storage miss and the user has no way to remove an attachment from history. History replay now passes a handler to the encoders, which leave missing files out of the request and report them; the message's file context tells the model which files were deleted and were not read. Current-turn attachments keep the strict error, since the user can remove and re-upload them. Code Interpreter priming names files missing from storage in the tool context and only requires resource recovery for other failures. * refactor: Keep Code Reupload Failure Policy in packages/api Tally priming reupload failures in createCodeReuploadFailures so the decision that a file deleted from storage is named instead of requiring resource recovery lives in TypeScript, and add mock e2e scenarios for a follow-up after an attachment is deleted from storage. * fix: Classify Code Files as Deleted Only at the Storage Read A 404 from the Code API upload was counted as a source file deleted from storage, which skipped resource recovery. openCodeFileSource marks a miss where the stored object is read, and only that error counts as deleted. Move the history replay of attachments with tolerated misses into replayMessageAttachments so BaseClient only calls it. * fix: Name Local Code Files Whose Stream Reports a Missing Object Local storage returns a read stream that raises ENOENT only once read, so openCodeFileSource now holds a stream until its first chunk or error and names a miss there. The missing-files context assignment moves into setMissingCodeFilesContext so both tool loaders only call it. * fix: Close a Held Code File Stream When Priming Is Cancelled openCodeFileSource waits for a source stream's first chunk; when that wait fails, as on cancellation, the caller never receives the stream, so destroy it before rethrowing instead of leaking its file descriptor. |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| callbacks.background.spec.js | ||
| callbacks.js | ||
| client.codeDecision.spec.js | ||
| client.imageDetail.spec.js | ||
| client.js | ||
| client.test.js | ||
| filterAuthorizedTools.spec.js | ||
| openai.js | ||
| protocol.js | ||
| queuedTurns.js | ||
| recordCollectedUsage.spec.js | ||
| request.js | ||
| responses.js | ||
| resume.js | ||
| steer.js | ||
| v1.js | ||
| v1.spec.js | ||