You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(ai): web_fetch reports a failed fetch as a tool failure, not as page text #894
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/aiAI review pipeline, personas, prompts, LLM client, or RAGtype/bugType bug: the code does not do what it must
#860 split the web_fetch hardening entry (docs/ROADMAP.md, at 308a71f line 878) into four PRs and delivered PR1, the per-hop egress veto, as a v0.2.24 critical fix. This is PR2. Today every failure, an SSRF block included, comes back to the model as the page's text.
Scope & Deliverables
Deliverable: replace the except arm; raise ToolFailed (src/devops_cli/exceptions/ai.py:200) for non-2xx and connection failures (tool_failed, runner.py:156-158); let SSRFBlockedError reach error (:164-171).
Acceptance criteria: every behaviour named above has a test that fails before the change; tests use httpx2.MockTransport and never touch the network; uv run devops ci passes.
Closes #894.
Previously, web_fetch caught all generic exceptions and returned an error string as ordinary page text. This disguised HTTP errors and transport failures as successful tool results with status "success", confusing calling agents and eval pipelines. Furthermore, redirect violations and SSRF exceptions were swallowed into page text.
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/aiAI review pipeline, personas, prompts, LLM client, or RAGtype/bugType bug: the code does not do what it must
Activity
feat(release): v0.2.24 (#905)
fix(ai): web_fetch reports a failed fetch as a tool failure, not as p…
dan-petty-bot commentedon Oct 6, 2026
What changed
#1265, merged into
release/v0.2.28as d753f3f.4 file(s) changed.
How it was verified
Check runs at e4460b6:
Acceptance Criteria of
docs/agent/tasks/task-894-web-fetch-reports-tool-failed.md:No Acceptance Criteria section.
feat(release): v0.2.28 (#1283)