Skip to content

Comments

refactor(http): consolidate HTTP client creation with default_client()#674

Merged
bug-ops merged 1 commit intomainfrom
feat/http-client-consolidation
Feb 20, 2026
Merged

refactor(http): consolidate HTTP client creation with default_client()#674
bug-ops merged 1 commit intomainfrom
feat/http-client-consolidation

Conversation

@bug-ops
Copy link
Owner

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

Summary

  • Add default_client() helper in zeph-core::http and zeph-llm::http with standard timeouts (30s connect, 60s request), user-agent zeph/{version}, and redirect limit 10
  • Replace 5 production Client::new() calls: claude.rs, openai.rs, slack/api.rs, discord/rest.rs, main.rs
  • Parallel module in zeph-llm due to circular dependency with zeph-core
  • Custom builders retained for scrape.rs (timeout+redirect) and update_check.rs (user-agent)

12 files changed, +61 -5 lines.

Closes #627, #666, #667

Test plan

  • cargo +nightly fmt --check — pass
  • cargo clippy --workspace -- -D warnings — 0 warnings
  • cargo nextest run --workspace --lib --bins — 2035 passed, 9 skipped

@github-actions github-actions bot added documentation Improvements or additions to documentation llm LLM provider related channels User interface channels rust refactor core dependencies size/M labels Feb 20, 2026
@bug-ops bug-ops force-pushed the feat/http-client-consolidation branch from 400cb36 to 42c4a91 Compare February 20, 2026 00:19
#627)

Add default_client() helper in zeph-core and zeph-llm with standard
timeouts (30s connect, 60s request), user-agent, and redirect policy.
Replace 5 production Client::new() sites across claude, openai, slack,
discord, and main bootstrap. Parallel module in zeph-llm due to circular
dependency with zeph-core.

Closes #666, #667
@bug-ops bug-ops force-pushed the feat/http-client-consolidation branch from 42c4a91 to 71d1821 Compare February 20, 2026 00:35
@bug-ops bug-ops enabled auto-merge (squash) February 20, 2026 00:39
@bug-ops bug-ops merged commit 4ef52d2 into main Feb 20, 2026
20 checks passed
@bug-ops bug-ops deleted the feat/http-client-consolidation branch February 20, 2026 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channels User interface channels core dependencies documentation Improvements or additions to documentation llm LLM provider related refactor rust size/M

Projects

None yet

1 participant