{"record":{"id":"17943246cb9777c6","repo":"ruvnet/ruflo","slug":"warning-disabling-flag-may-affect-dep-w","errorCode":null,"errorMessage":"Warning: Disabling '${flag}' may affect '${dep}' which depends on it","messagePattern":"Warning: Disabling '(.+?)' may affect '(.+?)' which depends on it","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/@claude-flow/integration/src/feature-flags.ts","lineNumber":217,"sourceCode":"      this.sources.set(flag, 'config');\n    }\n\n    if (!previousValue) {\n      this.emit('flag-changed', { flag, previousValue, newValue: true });\n    }\n  }\n\n  /**\n   * Disable a feature\n   */\n  disable(flag: keyof FeatureFlags, runtime: boolean = true): void {\n    const previousValue = this.isEnabled(flag);\n\n    // Check for dependent features\n    const dependents = this.getDependentFlags(flag);\n    for (const dep of dependents) {\n      if (this.isEnabled(dep)) {\n        console.warn(\n          `Warning: Disabling '${flag}' may affect '${dep}' which depends on it`\n        );\n      }\n    }\n\n    if (runtime) {\n      this.overrides.set(flag, false);\n      this.sources.set(flag, 'runtime');\n    } else {\n      this.flags[flag] = false;\n      this.sources.set(flag, 'config');\n    }\n\n    if (previousValue) {\n      this.emit('flag-changed', { flag, previousValue, newValue: false });\n    }\n  }\n","sourceCodeStart":199,"sourceCodeEnd":235,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/@claude-flow/integration/src/feature-flags.ts#L199-L235","documentation":"Log warning in FeatureFlagManager.disable: the flag being disabled has dependent features still enabled; those dependents keep running but may misbehave, so the operator is warned before the disable takes effect.","triggerScenarios":"Thrown at v3/@claude-flow/integration/src/feature-flags.ts:217 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Disable the dependent feature first, or keep the flag enabled to avoid breaking the dependent."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa13ee4ad60ac2090b1480656eb233521790d640","analyzedAt":"2026-08-18T21:34:22.708Z","contentChangedAt":"2026-08-18T21:34:22.708Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}