File tree Expand file tree Collapse file tree
examples/multi-agent-notepad Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ use std::fs;
1818use openshell_e2e:: harness:: output:: strip_ansi;
1919use openshell_e2e:: harness:: sandbox:: SandboxGuard ;
2020
21- /// Create a sandbox with `--upload dir:/sandbox/data` and run a command that
22- /// reads the uploaded files, verifying the content appears in stdout .
21+ /// Create a sandbox with `--upload dir:/sandbox/data` and verify directory
22+ /// uploads preserve the source basename at `/sandbox/data/<dirname>/...` .
2323#[ tokio:: test]
24- async fn create_with_upload_provides_files_to_command ( ) {
24+ async fn create_with_upload_directory_preserves_source_basename ( ) {
2525 let tmpdir = tempfile:: tempdir ( ) . expect ( "create tmpdir" ) ;
2626
2727 // Create a directory with files to upload.
Original file line number Diff line number Diff line change @@ -294,7 +294,7 @@ worker() {
294294 output_file="$(mktemp)"
295295 repo_path="runs/${RUN_ID}/notes/agent-${AGENT_INDEX}.md"
296296
297- render_template /sandbox/prompts/worker.md "$slice" > "$prompt_file"
297+ render_template /sandbox/payload/ prompts/worker.md "$slice" > "$prompt_file"
298298 run_codex_to_file "$prompt_file" "$output_file"
299299 put_contents "$repo_path" "$output_file" "Add agent ${AGENT_INDEX} note for ${RUN_ID}"
300300 printf 'wrote %s\n' "$repo_path"
@@ -312,7 +312,7 @@ synthesis() {
312312 get_contents_file "runs/${RUN_ID}/notes/agent-${i}.md" "${notes_dir}/agent-${i}.md"
313313 done
314314
315- render_template /sandbox/prompts/synthesis.md "" > "$prompt_file"
315+ render_template /sandbox/payload/ prompts/synthesis.md "" > "$prompt_file"
316316 {
317317 printf '\n\n## Worker Notes\n\n'
318318 for i in $(seq 1 "$AGENT_COUNT"); do
@@ -363,7 +363,7 @@ run_sandbox() {
363363 --policy " $POLICY_FILE " \
364364 --upload " ${PAYLOAD_DIR} :/sandbox" \
365365 --no-tty \
366- -- bash /sandbox/demo-runner.sh " $@ "
366+ -- bash /sandbox/payload/ demo-runner.sh " $@ "
367367}
368368
369369run_worker () {
You can’t perform that action at this time.
0 commit comments