Repository navigation
Description
Parent: #1794. Design: #4975. Depends on #5345 (server-side transfer module and CLI/REPL slice).
Scope — web adapter
Add a user-initiated send action for files on the source server. Reuse the transfer module from #5345; do not reimplement transport or stream file bytes through browser JavaScript.
- Add a “Send to server…” action to the existing file-list selection controls, using peer/server node IDs already exposed by the server. Allow an optional destination name and make the no-overwrite default / explicit replace choice visible before sending.
- Add a server-side web route (proposed:
POST /api/files/send) that accepts selected source names, destination node ID, and destination names/policy, then calls the shared server-side transfer module. The source server performs the transfer using its own Iroh identity. - Enforce the same caller authorization and destination allowlist as the CLI/REPL path. World membership alone is not file-send authorization.
- Return success only after the destination confirms blob completion and name registration. Show destination, name, and failure/progress state; a failed transfer must not appear as a successful send.
- Preserve the id: show file origin node + upload time in listings with sort/filter #4973/id: show file origin node + upload time in listings (#4973) #5191 listing contract: the destination stamps the authenticated sending server as origin and its first-write time as uploaded/created time.
Out of scope
Transport/protocol implementation, CLI/REPL surface (tracked in #5345), browser-to-browser or browser-mediated byte transfer, directories/batches, and move/delete-source semantics.
Parent acceptance criteria (verbatim from #1794)
- A file can be sent from one running server to another by a user action in CLI/REPL and in web (or the unsupported surfaces are explicitly scoped out with reasons).
- The transfer is covered by an integration test or a documented two-server probe.
Done check
A web integration test or documented two-server probe sends a selected stored file through the shared server-side transfer module, verifies the destination file and origin metadata, and covers unallowlisted destination, conflict, interruption, and retry behavior. Browser requests carry file references only; bytes stay on the servers.
Ordering
Blocked by #5345. The parent feature #1794 remains open until this adapter and the CLI/REPL slice both satisfy the parent acceptance criteria.
Activity
dezren39 commentedon Nov 4, 2026
🤖 Agent note · picked up
dezren39 commentedon Nov 4, 2026
Agent note — task 9495 handed off to opencode execution lane
repo-queue lane task 9495):opencodeopencode-claimantlaunches a session bound to task 9495 to drive it to a terminal state.handed_off. If the claimant has not launched by lease expiry, task 9495 returns to the queue.363 remaining items
dezren39 commentedon Nov 15, 2026
Blocked-until condition fired (2026-11-15 daily checker, item
br-blocked-review-gate-01-9, testcustom).Evidence: #7905 state=MERGED merged_at=2026-11-14T23:38:03Z (need pr-merged); #5345 state=CLOSED merged_at=None (need issue-closed)
Gate link(s): #7905, #5345
Queue task 9495 released to queued (fleet-queue events row kind=condition_fired, worker=blocked-until). Labels synced to queue/queued.
dezren39 commentedon Nov 15, 2026
🤖 Agent note · picked up — gate cleared, implementing
Merge pull request #10506 from developing-today/queue/9495-5346-web-send
dezren39 commentedon Nov 15, 2026
🤖 Agent note · done — fixed and merged
POST /api/files/sendin id-web — the browser carries only references (file name, destination node ID, optional dest name / replace); this server performs the transfer itself via the id: server-to-server file transfer protocol and CLI/REPL #5345 shared transfer module (id_sync::transfer::send_file, PR id: server-to-server file transfer (send) — #5345 #7905) with its own endpoint identity (AppStatetransfer_endpoint, wired byid serve). Success is answered only from the transfer receipt. Bulk action bar gains a destination input + "Send to server…" action with a well-shaped-receipt guard (isSendFileResponse).cargo test -p id-web --lib send_file6/6 (validation + two-server probe through the handler: copy + origin via destination registration, idempotent retry, conflict refuse/replace, unallowlisted denial); full id-web lib 672 passed / 1 pre-existing failure also on clean main (test_load_asset_urls_from_manifest); vitest 13/13;tsc --noEmitpass. Codex review produced no findings (its run failed on Codex usage limits — noted on PR id(web): send selected files to another server (#5346) #10506).