Skip to content

Comments

fix: implement execute_tool_call for WebScrapeExecutor#343

Merged
bug-ops merged 2 commits intomainfrom
feat/m20/web-scrape-tool-call
Feb 16, 2026
Merged

fix: implement execute_tool_call for WebScrapeExecutor#343
bug-ops merged 2 commits intomainfrom
feat/m20/web-scrape-tool-call

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Feb 16, 2026

Summary

  • WebScrapeExecutor only implemented legacy text-extraction execute(), returning Ok(None) for native execute_tool_call() — making web_scrape tool silently fail under native tool_use path
  • Extract shared scrape_instruction() helper, wire into both execute() and execute_tool_call()

Test plan

  • cargo clippy -p zeph-tools -- -D warnings passes
  • cargo nextest run -p zeph-tools --lib — 240 tests pass
  • Manual verification: ask zeph to scrape a URL via Claude provider

WebScrapeExecutor only implemented the legacy text-extraction path,
returning Ok(None) for native tool_use calls. Extract shared
scrape_instruction helper and wire it into execute_tool_call.
@github-actions github-actions bot added rust bug Something isn't working size/M labels Feb 16, 2026
@bug-ops bug-ops enabled auto-merge (squash) February 16, 2026 00:43
@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 23.68421% with 29 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
crates/zeph-tools/src/scrape.rs 23.68% 29 Missing ⚠️

❌ Your patch status has failed because the patch coverage (23.68%) is below the target coverage (60.00%). You can increase the patch coverage or adjust the target coverage.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #343      +/-   ##
==========================================
- Coverage   79.23%   79.18%   -0.06%     
==========================================
  Files          99       99              
  Lines       25406    25431      +25     
==========================================
+ Hits        20131    20137       +6     
- Misses       5275     5294      +19     
Files with missing lines Coverage Δ
crates/zeph-tools/src/scrape.rs 91.00% <23.68%> (-3.03%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bug-ops bug-ops merged commit 77eaeab into main Feb 16, 2026
17 checks passed
@bug-ops bug-ops deleted the feat/m20/web-scrape-tool-call branch February 16, 2026 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working rust size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants