fix: add encrypted placeholder constant (#8354)

This commit is contained in:
cthomas
2026-01-06 15:19:29 -08:00
committed by Caren Thomas
parent a40bacd9c6
commit f87c607115
2 changed files with 6 additions and 2 deletions

View File

@@ -1491,7 +1491,9 @@ async def decrypt_agent_secrets(agents: list) -> list:
"""
async def decrypt_env_var(env_var):
if env_var.value_enc and (env_var.value is None or env_var.value == ""):
from letta.orm.agent import ENCRYPTED_PLACEHOLDER
if env_var.value_enc and (env_var.value is None or env_var.value == "" or env_var.value == ENCRYPTED_PLACEHOLDER):
env_var.value = await env_var.value_enc.get_plaintext_async()
# Collect all env vars that need decryption