Fix component-source calls: use explicit ~name, no magic prefix
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 19m57s

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-12 02:37:07 +00:00
parent 2d3c79d999
commit 0cc2f178a9
2 changed files with 29 additions and 30 deletions

View File

@@ -46,8 +46,7 @@ def _component_source(name: str) -> str:
from shared.sx.types import Component, Island
from shared.sx.ref.sx_ref import build_component_source
key = name if name.startswith("~") else f"~{name}"
comp = get_component_env().get(key)
comp = get_component_env().get(name)
if isinstance(comp, Island):
return build_component_source({
"type": "island", "name": name,