fix: MEMORY_FILE parent directory ($REPO_ROOT/tmp/) also not guaranteed to exist (#844)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
openhands 2026-03-16 07:57:20 +00:00
parent 39793ec0df
commit cb305b8c81

View file

@ -583,6 +583,7 @@ PROMPT=${PROMPT//\{\{MEMORY_SECTION\}\}/$MEMORY_SECTION}
# ── 7. Create output directory and run the agent ─────────────────────────────── # ── 7. Create output directory and run the agent ───────────────────────────────
mkdir -p "$REPORT_DIR" mkdir -p "$REPORT_DIR"
mkdir -p "$(dirname "$MEMORY_FILE")"
log "Spawning Claude red-team agent (timeout: ${CLAUDE_TIMEOUT}s)..." log "Spawning Claude red-team agent (timeout: ${CLAUDE_TIMEOUT}s)..."
log " Report will be written to: $REPORT" log " Report will be written to: $REPORT"