Skip to content

refactor(tool): convert webfetch tool internals to Effect#21809

Draft
kitlangton wants to merge 1 commit intodevfrom
kit/tool-effect-webfetch
Draft

refactor(tool): convert webfetch tool internals to Effect#21809
kitlangton wants to merge 1 commit intodevfrom
kit/tool-effect-webfetch

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Mechanical conversion of the webfetch tool's execute method from async/await to Effect.gen + Effect.promise, with Effect.runPromise at the boundary. No behavioral change — precursor to eventually making tool execute return Effect natively.

@kitlangton kitlangton force-pushed the kit/tool-effect-webfetch branch 2 times, most recently from 4e216ce to 491964e Compare April 10, 2026 03:13
Replace raw fetch with Effect HttpClient service. Remove manual
AbortController/signal/clearTimeout plumbing — fiber interruption
and Effect.timeout handle cancellation natively. Update registry
to yield WebFetchTool and provide FetchHttpClient.layer. Fix tests
to provide FetchHttpClient.layer where needed.
@kitlangton kitlangton force-pushed the kit/tool-effect-webfetch branch from 491964e to 91a3eef Compare April 10, 2026 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant