We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67e3079 commit d1ee3e2Copy full SHA for d1ee3e2
crates/openshell-server/src/grpc.rs
@@ -1137,7 +1137,10 @@ impl OpenShell for OpenShellService {
1137
})?;
1138
1139
if let Some(ref current) = latest {
1140
- if current.policy_hash == hash {
+ // Only dedup if the latest revision is still active
1141
+ // (loaded). If it was superseded (e.g. after a global
1142
+ // policy delete), always create a new revision.
1143
+ if current.policy_hash == hash && current.status == "loaded" {
1144
// Same policy hash — skip creating a new revision but
1145
// still ensure the settings blob has the policy key
1146
// (it may have been lost to a pod restart while the
0 commit comments