Fix secret-masked image references in history by pei711 · Pull Request #1961 · agent0ai/agent-zero · GitHub
Skip to content

Fix secret-masked image references in history - #1961

Open
pei711 wants to merge 1 commit into
agent0ai:mainfrom
pei711:fix/1958-secret-masked-image-refs
Open

pei711 wants to merge 1 commit into
agent0ai:mainfrom
pei711:fix/1958-secret-masked-image-refs

Conversation

@pei711

@pei711 pei711 commented Oct 19, 2026

Copy link
Copy Markdown

What changed

Resolve secret-masked local image references before reading image files. Fully masked paths are recognized as local references, and failed lookups keep the masked path in their error message.

Why

Persisted vision history masks secret filename fragments, so image references can stop resolving on later turns.

Validation

  • python3 -m py_compile helpers/images.py tests/test_vision_load_image_refs.py — passed.
  • Direct temporary-file smoke check for a masked path and a missing path — passed.
  • python3 -m pytest -q tests/test_vision_load_image_refs.py — unavailable because pytest is not installed in the provided environment.
  • git diff --check — passed.

Fixes #1958

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

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.

FileNotFoundError for secret-masked image paths persisted in history (vision-load refs)

1 participant