Skip to content

fix: trim WEB_SEARCH_PROVIDER env value - #161

Open
prithvee07 wants to merge 1 commit into
CopilotKit:mainfrom
prithvee07:claude/zealous-brown-2b7rcb
Open

prithvee07 wants to merge 1 commit into
CopilotKit:mainfrom
prithvee07:claude/zealous-brown-2b7rcb

Conversation

@prithvee07

@prithvee07 prithvee07 commented Oct 16, 2026 •

Copy link
Copy Markdown

Every other environment parser (agentRunTimeoutMsFromEnv, firstNonEmptyEnvValue, slackUsers) trims surrounding whitespace, but webSearchProvider matched the raw value exactly. A .env entry with a trailing space such as WEB_SEARCH_PROVIDER=parallel therefore crashed startup with a confusing validation error.

Trim the value before matching, consistent with the other parsers, and treat a blank/whitespace-only value as unset (defaulting to parallel). Adds regression coverage for whitespace handling.

Every other environment parser (agentRunTimeoutMsFromEnv,
firstNonEmptyEnvValue, slackUsers) trims surrounding whitespace, but
webSearchProvider matched the raw value exactly. A .env entry with a
trailing space such as `WEB_SEARCH_PROVIDER=parallel ` therefore crashed
startup with a confusing validation error.

Trim the value before matching, consistent with the other parsers, and
treat a blank/whitespace-only value as unset (defaulting to parallel).
Adds regression coverage for whitespace handling.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015a2if6nJJ2D6ZQGjiLGknv
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T17:13:18.235145Z 9e43189 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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.

2 participants