Skip to content

Commit 25c4fde

Browse files
authored
fix(examples): repair multi-agent notepad uploads (#1152)
1 parent d73860f commit 25c4fde

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

e2e/rust/tests/upload_create.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ use std::fs;
1818
use openshell_e2e::harness::output::strip_ansi;
1919
use 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.

examples/multi-agent-notepad/demo.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

369369
run_worker() {

0 commit comments

Comments
 (0)