Repository navigation
fix(load_artifact): load urls into the named container, not the sandbox's agent container - #112
Merged
earakely-scale merged 3 commits intoOct 8, 2026
Conversation
…ox's agent container Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…er; test the load over http Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ts staged file too Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Collaborator
Author
|
Chaos run: local on macOS (Rancher Desktop) and native Linux (Docker 29, x86); remote on
Every scenario left no container and no staged Remote (
Separately: a |
earakely-scale
deleted the
edgararakelyan/load-urls-into-named-container
branch
October 8, 2026 15:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
A
load_artifactstep withsandbox_nameandcontainer_nametargets a container thatrun_docker_containerstarted on a VM sandbox. Artifacts loaded that way reach the container: a universe or environment payload is staged on the VM host and copied in. URLs did not.The URL branch called
sandbox.write_file_from_url(url, dest). That method downloads onto the VM host and copies into the sandbox's own agent container (agent-apion remote VMs,agent-<id>locally), not the named container. So the files landed in the wrong container, and on a sandbox with no agent the copy failed with "No such container".Now, with
container_nameset, each URL is downloaded onto the VM host and copied into that container atdestination_path/<name>, the way the universe path already works. The temp file on the host is removed either way. Steps withoutcontainer_nameare unchanged.How it was tested
make unit-test: 6792 passed. A new unit test checks that a URL withcontainer_nameis copied into that container, and never throughwrite_file_from_url.run_docker_container, thenload_artifactwithurlsandcontainer_name, then reads the file back from inside the step container. It passes on macOS.check_plugin_api.py: no break to the plugin surface.🤖 Generated with Claude Code
The PR appears safe to merge; no new actionable issue or outstanding numbered finding remains.
Summary
URL downloads for
load_artifactsteps now reach the named container on VM sandboxes, instead of the sandbox’s agent container.Diagram
%%{init: {'theme': 'neutral'}}%% flowchart LR URL[URL] --> VM[Temporary file on VM host] VM --> Container[Named Docker container] VM --> Cleanup[Remove temporary file]Reviews (3) · Last reviewed commit: "fix(load_artifact): a cancelled url load..." · Reviewed by Greptile