925 B
925 B
Removed test-only environment-variable usage from active code.
Implementation:
- Removed
INSOMNIA_TEST_*Brave WebSearch test key generation/dependency. - Split Brave search request execution so tests can inject an API key directly into a private helper.
- Preserved production behavior: WebSearch still reads configured
web.search.api_key_envand fails closed for missing/empty values. - Updated
docs/environment.mdso test-only env vars are not listed as supported surface.
Review:
- External reviewer
eliminate-test-env-vars-reviewer-20260531approved implementation commite64a5595956c970b090cdce851cc962e92723a97.
Validation after merge:
cargo fmt --checkcargo test -p toolscargo check -p tools(passed with unrelated existingllm-workerdead_code warning)./tickets.sh doctorgit diff --checkgit grep -n "INSOMNIA_TEST" -- ':!work-items' || trueproduced no active references.