You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix: TSL shader detail page crash and language validation
ShaderDetail is now a discriminated union (GlslShaderDetail |
TslShaderDetail), matching the PlaygroundSession pattern. The web
detail page, loadShaderDetail, and registry-backed source loader all
branch on language to read the correct source files and render the
appropriate UI.
Playground session creation now rejects invalid language strings
(anything other than "glsl" or "tsl") with a descriptive error. MCP
tool schemas constrain the language parameter to an enum.
Fixes:
- /shaders/tsl-gradient-wave no longer crashes (was TypeError on
manifest.files.vertex)
- createSession({ language: "foo" }) now throws instead of silently
creating a malformed session
6 new tests cover TSL detail loading and invalid language rejection.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* test: cover registry-backed shader detail branches
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments