Polling a corrupt store made a new .corrupt-<ts> copy on every read (#4779
review). A backup with identical bytes is now reused.
Co-Authored-By: RuFlo <ruv@ruv.net>
CodeQL read the array .includes() as URL substring sanitization. Check the
argument after `open` by equality instead.
Co-Authored-By: RuFlo <ruv@ruv.net>
With Ollama selected, the environment's OLLAMA_API_KEY was sent to a
baseUrl read from the project's claude-flow.config.json, which a cloned
repository can commit. A project-chosen endpoint now gets only the key
saved beside it (or none); the environment key goes only to
OLLAMA_BASE_URL or Ollama Cloud.
Co-Authored-By: RuFlo <ruv@ruv.net>
browser_screenshot passed a caller-named path straight to agent-browser,
which writes the image there and replaces any existing file. The path is
now resolved with containedWritePath: inside the project, outside .git,
not a symlink, and ending in .png/.jpg/.jpeg.
Co-Authored-By: RuFlo <ruv@ruv.net>
browser_open, browser_act and browser_session_record passed any URL to
agent-browser, and the browser tools return page text to the caller. A
file: (or view-source:, chrome:, data:) target therefore exposed local
files and browser state that http_fetch never serves. Navigation targets
are now limited to http(s), about:blank and scheme-less hosts, checked on
every agent-browser `open` and in browser_session_record.
Co-Authored-By: RuFlo <ruv@ruv.net>