mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-07-18 21:50:55 +00:00
c78d5083ad
Codex gate found two SILENT defects, fixed: 1) Failed-steer RETRY re-uploaded the same File objects (uploadPendingFiles ran again with clearPending:false). Added _steerUploadCache keyed by ownerSid + file signature so a retry with the same staged set reuses the uploaded paths; invalidated when the staged set changes (signature miss) or on accepted steer. 2) Accepted steer cleared ALL S.pendingFiles, dropping files staged during the upload/API await. Now removes ONLY the delivered snapshot by object identity, preserving newly staged files. (The owner-session draft is still cleared on accepted steer — clearing the delivered session's draft is correct even after a mid-upload switch; the existing test asserts this.) Tests updated for the identity-based removal + new cache/dedup guard. 69 steer/composer tests pass, node --check clean.