Skip to content

Commit caf0e57

Browse files
authored
chore: add an option to block network requests to server (sourcegraph#8151)
Add a new feature flag to allow disabling network requests from Cody, in the rare cases that Cody client causes problems. Both vscode and agent uses the patched `DelegateAgent`, so this flag should apply to both. Cody does not use `keepAlive`, nor `keepAliveMsecs` (which defaults to 1s), so this flag should be reflected ~1 hour or so after set on server side. ## Test plan -- manual testing with s2
1 parent 6c81f31 commit caf0e57

3 files changed

Lines changed: 367 additions & 326 deletions

File tree

lib/shared/src/experimentation/FeatureFlagProvider.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ export enum FeatureFlag {
162162
* When set to true, context will not be added to chat automatically.
163163
*/
164164
AgenticContextDisabled = 'agentic-context-disabled',
165+
166+
/**
167+
* Disable network request to servers, in case of bad client
168+
*/
169+
DisableNetworkRequests = 'disable-network-requests',
165170
}
166171

167172
const ONE_HOUR = 60 * 60 * 1000

0 commit comments

Comments
 (0)