Skip to content

fix: close TSL post-merge follow-ups#62

Merged
devallibus merged 2 commits intodevelopmentfrom
fix/tsl-post-merge
Mar 10, 2026
Merged

fix: close TSL post-merge follow-ups#62
devallibus merged 2 commits intodevelopmentfrom
fix/tsl-post-merge

Conversation

@devallibus
Copy link
Owner

Summary\n- fix the TSL shader detail page for both filesystem-backed and registry-backed detail loading\n- reject invalid playground language values and constrain MCP language schemas\n- add coverage for the registry-backed shader detail branches\n\n## Validation\n- bun run test:web\n- bun x tsc -p tsconfig.json --noEmit\n- bun run build:web

devallibus and others added 2 commits March 10, 2026 11:47
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>
@devallibus devallibus merged commit 2831aad into development Mar 10, 2026
4 checks passed
@devallibus devallibus deleted the fix/tsl-post-merge branch March 10, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant