X_SECRETS_EDITOR_MISSING
Means
no $EDITOR to open the decrypted secrets in
Typical cause
neither VISUAL nor EDITOR is set. No editor is guessed — opening a decrypted file in a surprise program is the last place a default belongs
Fix
EDITOR=nano x secrets edit, or write one value without an editor: printf %s "$TOKEN" \| x secrets set STRIPE_KEY