sourcegraph / cody

Type less, code more: Cody is an AI code assistant that uses advanced search and codebase context to help you write and fix code.
https://cody.dev
Apache License 2.0
2.71k stars 297 forks source link

watch feature flags instead of calling evaluateFeatureFlag (which is non-reactive) #5676

Closed sqs closed 1 month ago

sqs commented 1 month ago

This also reduces the latency of autocomplete after #5221 was merged because it makes evaluateFeatureFlag calls not hit the network each time (and each autocomplete calls that 1-2 times).

Fixes https://linear.app/sourcegraph/issue/CODY-3846/remove-most-uses-of-evaluatefeatureflag-method.

Test plan

CI. Check that the unified prompts feature flag works correctly.