Skip to content

[codex] Add Vision output overwrite safety#1

Draft
mimeding wants to merge 2 commits into
osaurus-ai:masterfrom
mimeding:codex/fix-test-resources
Draft

[codex] Add Vision output overwrite safety#1
mimeding wants to merge 2 commits into
osaurus-ai:masterfrom
mimeding:codex/fix-test-resources

Conversation

@mimeding
Copy link
Copy Markdown

@mimeding mimeding commented Apr 28, 2026

Summary

Adds output overwrite controls to Vision image-writing tools and tests the manifest plus runtime refusal to overwrite existing files by default.

Business Rationale

Vision workflows often produce derived artifacts from user images. Refusing implicit overwrites protects source and output files while still allowing intentional replacement when requested.

Coding Rationale

Overwrite behavior is enforced in the plugin helper that writes image outputs, keeping the safety rule close to the file mutation point. Manifest tests ensure the host and model can see the same output contract.

Expected LLM Performance Improvement

Models should choose explicit output paths, avoid destructive retries, and recover from existing-file conflicts with clear tool feedback instead of silently replacing artifacts.

Changes

  • Behavior change
  • UI change
  • Refactor / chore
  • Tests
  • Docs

Test Plan

  • swift test
  • swift build -c release
  • git diff --check

@mimeding mimeding changed the title [codex] Fix Vision test resource setup [codex] Add Vision output overwrite safety Apr 28, 2026
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.

1 participant