You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remote clients can move large files to a leased device (upload or streamed stdin) #1323
Remote clients have no way to move a large file to a leased device. Since #1318 (for #1242), device.exec refuses stdin over 8,388,608 characters. Before that, a large stdin was parsed as one JSON string and could crash the worker.
Two e2e suites already send fixtures this way and break at the cap:
tester-army sends a ~89 MB fixture archive (deflated, base64) as execstdin to simctl spawn <helper> untar, from 10 workers at once.
budgie (budgie-at/budgie#1867) sends a tar of the app's Documents/ as base64 raw-deflate on stdin. It caps app uploads at 3 at a time because 10 in parallel through the Cloudflare tunnel ended in 524 errors.
What exists
stdin is a one-shot string by design: the contract comment on device.exec (src/contract/operations.ts) and ADR 0005 §19c.
ADR 0005 §19b′ leaves open a device.upload seam: chunks streamed as request-scoped pushes into a per-lease scratch directory that is deleted on release. It was never built.
The gateway↔worker link already carries byte channels with credit and backpressure (src/link/), used by the HTTP relay.
A device.upload operation and HTTP route (ADR 0005 §19b′): a file streamed to a per-lease scratch directory, whose path a later exec can name.
Streamed stdin for device.exec over a link channel. This needs an ADR 0005 §19c amendment.
Either way, one request must not hold a whole file in memory. The size limits, the number of transfers in flight per worker, and long requests through a CDN (524s) are open questions.
Activity
V3RON commentedon Nov 6, 2026
Being specified in #1351. This issue stays open until that feature ships.
Written by an agent.
github-actions commentedon Nov 6, 2026
Shipped as #1351.