Skip to content

feat: Add configurable web-search timeout setting#13441

Open
156554395 wants to merge 3 commits intoCherryHQ:mainfrom
156554395:feature/13426-configurable-websearch-timeout
Open

feat: Add configurable web-search timeout setting#13441
156554395 wants to merge 3 commits intoCherryHQ:mainfrom
156554395:feature/13426-configurable-websearch-timeout

Conversation

@156554395
Copy link

@156554395 156554395 commented Mar 13, 2026

Summary

This PR implements configurable timeout settings for web-search providers, addressing issue #13426.

Changes

Core Implementation

  • Type Definition: Added timeout?: number field to WebSearchProvider type
  • ExaMcpProvider: Now uses provider-specific timeout with fallback to 25000ms
  • SearxngProvider: Implements per-request timeout with error handling (default 10000ms)

User Interface

  • Settings Page: Added timeout input field in WebSearchProviderSetting component
    • Only shown for non-local providers
    • Number input with min 1000ms and step 1000ms
    • Validates and saves timeout values

Internationalization

  • Chinese (zh-cn): Added timeout label and tip translations
  • English (en-us): Added timeout label and tip translations

Backward Compatibility

  • Existing providers without timeout config continue to work with defaults
  • Timeout field is optional, maintaining compatibility

Testing

  • Manual testing with SearxNG provider
  • Verified timeout configuration saves and persists
  • Confirmed error handling for timeout failures

Related Issue

Fixes #13426

- Add timeout field to WebSearchProvider type
- Implement timeout support in ExaMcpProvider and SearxngProvider
- Add timeout input field in WebSearchProviderSetting component
- Add i18n translations for timeout setting (zh-cn and en-us)
- Set default timeout to 10000ms (10 seconds) for SearxngProvider
- Maintain backward compatibility with existing providers

Fixes CherryHQ#13426
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Make web-search timeout setting configurable

1 participant