Skip to content

fix(web): keep peer image transfers retryable and cacheable - #1285

Merged
iruriQ merged 1 commit into
mainfrom
fix/peer-image-backend
Nov 27, 2026
Merged

iruriQ merged 1 commit into
mainfrom
fix/peer-image-backend

Conversation

@iruriQ

@iruriQ iruriQ commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Distinguish Peer request timeouts and transfer failures from connection state. Keep history failures retryable without marking an online Peer disconnected.
  • Preserve valid Content-Length on streamed uploads and log only structured, sanitized failure diagnostics.
  • Enable private image caching and ETag revalidation on both hops. Stream validated large previews through the Hub when the upstream length is known; keep a bounded fallback for other responses.

Validation

  • `npx tsc -b packages/web-server`
  • 84 passing Node tests: ch-file-upload-timing, peer-attachments-http, remote-peer-attachment-flow, remote-peer-attachments, remote-sessions, peer-host-manager, web-images.

No visual changes: backend HTTP transport and history error classification only.

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@iruriQ
iruriQ merged commit f48682f into main Nov 27, 2026
4 of 8 checks passed
@iruriQ
iruriQ deleted the fix/peer-image-backend branch November 27, 2026 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants