Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Shows how to promote a gated FeatureFlag to Dogfood, Preview, or Stable in the Warp codebase, covering runtime and compile-time flag wiring.
23% 73%+50 ptsof test cases passed
Passed 16 of 22 test cases with the skill, and 5 of 22 without it.
I updated `warp_core/src/features.rs` to promote `FeatureFlag::SessionRestore` to Dogfood without changing any other workspace packages. What is the exact clippy command line for validating this package?
The response specifies cargo clippy -p warp_core --all-targets --tests -- -D warnings as the validation command.
3 of 3 safety checks passed
Guides the staged promotion of a gated FeatureFlag variant to Dogfood, Preview, or Stable, and schedules the follow-up cleanup.
Feature flags have two interacting layers:
warp_core/src/features.rs): DOGFOOD_FLAGS, PREVIEW_FLAGS, RELEASE_FLAGS — enabled per-channel at startup.app/Cargo.toml + app/src/lib.rs): Cargo features in [features]. The default = [...] array enables a feature for all builds. enabled_features() in app/src/lib.rs bridges each Cargo feature to its FeatureFlag variant via #[cfg(feature = "...")].Do not remove the flag immediately after promoting to Stable. Keep it for at least 1–2 release cycles so a rollback is a one-line PR (remove the entry from default). Use the remove-feature-flag skill for the cleanup step later.
The per-channel arrays in warp_core/src/features.rs (DOGFOOD_FLAGS/PREVIEW_FLAGS/RELEASE_FLAGS) are shared and drive both the GUI desktop app (app/) and the headless TUI (crates/warp_tui) at runtime. The app/Cargo.toml default + app/src/lib.rs enabled_features() compile-time bridge is GUI-app-only. If a promoted feature should also reach the TUI, make sure it is enabled at runtime for the target channel (the shared arrays already do this) and, if the feature relies on a compile-time Cargo feature, that the TUI binary (crates/warp_tui/Cargo.toml) enables it too.
Add the flag to DOGFOOD_FLAGS in warp_core/src/features.rs:
pub const DOGFOOD_FLAGS: &[FeatureFlag] = &[
// ...
FeatureFlag::YourFeature,
];
No other file changes needed.
PREVIEW_FLAGS in warp_core/src/features.rs.DOGFOOD_FLAGS if present — Preview flags are automatically included in Dogfood builds.pub const PREVIEW_FLAGS: &[FeatureFlag] = &[
// ...
FeatureFlag::YourFeature,
];
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.