Add explicit logging for route decisions in bind-event

- Log "sx:route server fetch <url>" when falling back to network
- Use console.error for eval errors (not console.warn)
- Restructure bind-event to separate client route check from &&-chain

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 21:44:55 +00:00
parent 3a8ee0dbd6
commit 2a978e6e9f
3 changed files with 33 additions and 21 deletions

View File

@@ -2630,7 +2630,7 @@ PLATFORM_ORCHESTRATION_JS = """
}
return sxRenderWithEnv(source, merged);
} catch (e) {
console.warn("sx:route eval error", e);
console.error("[sx-ref] sx:route eval error for:", source, e);
return NIL;
}
}