Skip to content

Add microvm upload/download commands - #2079

Merged
SSharma-10 merged 3 commits into
mainfrom
ksingh/microvm-file-transfer
Oct 26, 2026
Merged

SSharma-10 merged 3 commits into
mainfrom
ksingh/microvm-file-transfer

Conversation

@kishlay-singh-DO

Copy link
Copy Markdown
Contributor

Adds the new MicroVMs.UploadFile/DownloadFile endpoints:

doctl compute microvm upload --local-file F --path /remote [--mode 0600 --uid N --gid N]
doctl compute microvm download --path /remote --save-to F

Wraps the new MicroVMs.UploadFile/DownloadFile endpoints:

  doctl compute microvm upload <id> --local-file F --path /remote [--mode 0600 --uid N --gid N]
  doctl compute microvm download <id> --path /remote --save-to F

Upload sends the local SHA-256 so the API verifies before replacing the
target. Download streams into a temp file and renames on success; godo's
body checks the announced digest at EOF, so a mismatch leaves nothing at
--save-to.

Co-authored-by: Cursor <cursoragent@cursor.com>
@kishlay-singh-DO kishlay-singh-DO changed the title Update godo to v1.233.0 and add microvm upload/download commands Add microvm upload/download commands Oct 26, 2026
kishlay-singh-DO and others added 2 commits October 26, 2026 19:13
godo v1.233.0 moved hosted-agents routes from /v2/agents to
/v2/harness-runtime. The fake harness only registered the old prefix, so
every StreamSession in internal/agentproxy/opencode got a 404 and the
proxy answered 502. Register both prefixes, as the edge does.

Co-authored-by: Cursor <cursoragent@cursor.com>
godo v1.233.0 sends the new prefix (digitalocean/godo#1189); the fake API
in the pause-reason suite only matched /v2/agents/sessions, so list/show
hit the unknown-request branch and timed out.

Co-authored-by: Cursor <cursoragent@cursor.com>
@SSharma-10
SSharma-10 merged commit c834f9d into main Oct 26, 2026
9 checks passed
@SSharma-10
SSharma-10 deleted the ksingh/microvm-file-transfer branch October 26, 2026 14:40
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

⌂ 换网址