Skip to content

feat: add progress forwarding for remote SSH/daemon transfers - #2550

Merged
oferchen merged 1 commit into
masterfrom
feat/remote-progress-forwarding
Feb 28, 2026
Merged

oferchen merged 1 commit into
masterfrom
feat/remote-progress-forwarding

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Define TransferProgressCallback trait in the transfer crate for per-file progress events during server-side transfers
  • Thread progress callback through run_server_stdio() → run_server_with_handshake() → receiver/generator pipeline loops
  • Create ServerProgressAdapter in core that bridges TransferProgressCallback → ClientProgressObserver for SSH transfers
  • Emit progress events after each file completes in both receiver (run_pipeline_loop_decoupled) and generator (run_transfer_loop)
  • Daemon transfers accept the parameter (pass None for now) for future extensibility

Test plan

  • cargo fmt --all -- --check passes
  • cargo clippy --workspace --all-targets --all-features --no-deps -- -D warnings passes
  • cargo nextest run --workspace --all-features — all 22,647 tests pass
  • CI validation on Linux, macOS, Windows

@github-actions github-actions Bot added the enhancement New feature or request label Feb 28, 2026
Define TransferProgressCallback trait in the transfer crate and thread
it through run_server_stdio/run_server_with_handshake into the receiver
and generator pipeline loops. Each completed file emits a progress event
with path, bytes, and file counts.

In the core crate, ServerProgressAdapter bridges the transfer callback
to ClientProgressObserver, enabling SSH transfers to report per-file
progress to the client. Daemon transfers pass None for now but accept
the parameter for future use.
@oferchen
oferchen force-pushed the feat/remote-progress-forwarding branch from 0078115 to 269500e Compare February 28, 2026 08:27
@oferchen
oferchen merged commit 075d2a7 into master Feb 28, 2026
4 of 8 checks passed
@oferchen
oferchen deleted the feat/remote-progress-forwarding branch February 28, 2026 08:27
oferchen added a commit that referenced this pull request May 1, 2026
Define TransferProgressCallback trait in the transfer crate and thread
it through run_server_stdio/run_server_with_handshake into the receiver
and generator pipeline loops. Each completed file emits a progress event
with path, bytes, and file counts.

In the core crate, ServerProgressAdapter bridges the transfer callback
to ClientProgressObserver, enabling SSH transfers to report per-file
progress to the client. Daemon transfers pass None for now but accept
the parameter for future use.
oferchen added a commit that referenced this pull request May 5, 2026
Define TransferProgressCallback trait in the transfer crate and thread
it through run_server_stdio/run_server_with_handshake into the receiver
and generator pipeline loops. Each completed file emits a progress event
with path, bytes, and file counts.

In the core crate, ServerProgressAdapter bridges the transfer callback
to ClientProgressObserver, enabling SSH transfers to report per-file
progress to the client. Daemon transfers pass None for now but accept
the parameter for future use.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant