Skip to content

vm push: every exec-channel chunk exceeds Freestyle's 64 KiB command cap #12308

Description

@lawrencecchen

cmux vm push <id> <file> fails for any file, even 1 MB, on a Freestyle machine: Error: The Cloud VM request failed. The stack log shows the cause:

[freestyle] exec(vm-26d5...) FreestyleApiError: bad request: command cannot exceed 64 KiB

CLI/CMUXCLI+VMTransfer.swift sets vmTransferPushChunkBytes = 64 * 1024 and base64-encodes each chunk before wrapping it in a shell command, so one chunk alone is about 87 KiB on the wire. The cap applies to the whole command. Only --secret (a different channel) works today.

Fix: size the raw chunk so the encoded command stays under the cap with headroom, about 40 KiB raw, and cover it with a test that asserts the encoded command length for a full chunk.

Seen 2026-09-11 on a prsnc dev-backend stack while pushing a 50 MB daemon binary; the Freestyle SDK vm.fs.writeFile upload worked as the workaround.

https://claude.ai/code/session_012DpfpRex9MYKKZBz3Lv5sq

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions