From 6e6c296c30a12cb8f836cb9c51e9d1ed68d3b5bc Mon Sep 17 00:00:00 2001 From: sergiopaniego Date: Tue, 28 Jul 2026 10:39:12 +0200 Subject: [PATCH] fix(cli): use named Space colors in generated README frontmatter Hugging Face Spaces only accepts named colors for colorFrom and colorTo, so the hex values the push command emitted made the upload fail with Invalid metadata in README.md. - "colorFrom" must be one of - "colorTo" must be one of This blocked pushing any environment whose README had no frontmatter of its own. init.py already picks from the valid set; push.py now agrees with it. --- src/openenv/cli/commands/push.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openenv/cli/commands/push.py b/src/openenv/cli/commands/push.py index 413317cd0..cd8ebdab3 100644 --- a/src/openenv/cli/commands/push.py +++ b/src/openenv/cli/commands/push.py @@ -421,8 +421,8 @@ def _prepare_staging_directory( frontmatter = f"""--- title: {env_name.replace("_", " ").title()} Environment Server emoji: 🔊 -colorFrom: '#00C9FF' -colorTo: '#1B2845' +colorFrom: blue +colorTo: indigo sdk: docker pinned: false app_port: 8000