ruvnet/ruflo · error

Warning: Disabling ' ' may affect ' ' which depends on it

Error message

Warning: Disabling '${flag}' may affect '${dep}' which depends on it

What it means

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.

Solutions

  1. Disable the dependent feature first, or keep the flag enabled to avoid breaking the dependent.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at v3/@claude-flow/integration/src/feature-flags.ts:217 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of ruvnet/ruflo@fa13ee4ad6 (2026-08-18). Data as JSON: /api/errors/17943246cb9777c6. Report an issue: GitHub.

Appendix: source

Thrown at v3/@claude-flow/integration/src/feature-flags.ts:217

      this.sources.set(flag, 'config');
    }

    if (!previousValue) {
      this.emit('flag-changed', { flag, previousValue, newValue: true });
    }
  }

  /**
   * Disable a feature
   */
  disable(flag: keyof FeatureFlags, runtime: boolean = true): void {
    const previousValue = this.isEnabled(flag);

    // Check for dependent features
    const dependents = this.getDependentFlags(flag);
    for (const dep of dependents) {
      if (this.isEnabled(dep)) {
        console.warn(
          `Warning: Disabling '${flag}' may affect '${dep}' which depends on it`
        );
      }
    }

    if (runtime) {
      this.overrides.set(flag, false);
      this.sources.set(flag, 'runtime');
    } else {
      this.flags[flag] = false;
      this.sources.set(flag, 'config');
    }

    if (previousValue) {
      this.emit('flag-changed', { flag, previousValue, newValue: false });
    }
  }

View on GitHub (pinned to fa13ee4ad6)