Skip to content

fix(serve): silent WASM fallback — no console error spam#49

Merged
avrabe merged 1 commit intomainfrom
fix/wasm-silent-fallback
Mar 19, 2026
Merged

fix(serve): silent WASM fallback — no console error spam#49
avrabe merged 1 commit intomainfrom
fix/wasm-silent-fallback

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented Mar 19, 2026

Summary

One HEAD probe, inline fallback text, no per-container error spam.

Before: 5x AADL render error + 1x HEAD 404 in console per page load.
After: 1x quiet HEAD, user sees "AADL diagram requires spar WASM" in the diagram area.

Test plan

  • 9/9 asset-loading regression tests pass
  • CI Playwright

🤖 Generated with Claude Code

AADL diagram init now checks WASM availability once before iterating
containers. When unavailable, shows inline fallback text and returns
immediately — no per-container throws, no console.error calls, just
one quiet HEAD request.

Fixes: FEAT-001

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@avrabe avrabe merged commit fd6075b into main Mar 19, 2026
@avrabe avrabe deleted the fix/wasm-silent-fallback branch March 19, 2026 20:27
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Rivet Criterion Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20.

Benchmark suite Current: 5dc0122 Previous: fd6075b Ratio
validate/100 40627 ns/iter (± 178) 33135 ns/iter (± 153) 1.23

This comment was automatically generated by workflow using github-action-benchmark.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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