From dc8fdc2dc8f2cd78300683cea75574833489af4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Den=20Delimarsky=20=F0=9F=8C=BA?= <53200638+localden@users.noreply.github.com> Date: Sat, 20 Sep 2025 09:13:34 -0700 Subject: [PATCH] Update __init__.py --- src/specify_cli/__init__.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/specify_cli/__init__.py b/src/specify_cli/__init__.py index b898f38..8610ec0 100644 --- a/src/specify_cli/__init__.py +++ b/src/specify_cli/__init__.py @@ -461,7 +461,7 @@ def download_template_from_github(ai_assistant: str, download_dir: Path, *, scri console.print(Panel(str(e), title="Fetch Error", border_style="red")) raise typer.Exit(1) - # Find the template asset for the specified AI assistant (with fallback for Codex) + # Find the template asset for the specified AI assistant assets = release_data.get("assets", []) pattern = f"spec-kit-template-{ai_assistant}-{script_type}" matching_assets = [ @@ -471,17 +471,6 @@ def download_template_from_github(ai_assistant: str, download_dir: Path, *, scri asset = matching_assets[0] if matching_assets else None - if asset is None and ai_assistant == "codex": - fallback_pattern = f"spec-kit-template-copilot-{script_type}" - fallback_assets = [ - asset for asset in assets - if fallback_pattern in asset["name"] and asset["name"].endswith(".zip") - ] - if fallback_assets: - asset = fallback_assets[0] - if verbose: - console.print("[yellow]No Codex-specific template found; falling back to GitHub Copilot template.[/yellow]") - if asset is None: console.print( f"[red]No matching release asset found[/red] for AI assistant "