Skip to content

Fix the VS Code event model board crashing on view options, and keep them for the user - #325

Merged
einari merged 4 commits into
mainfrom
claude/focused-allen-u3y1wy
Oct 1, 2026
Merged

einari merged 4 commits into
mainfrom
claude/focused-allen-u3y1wy

Conversation

@einari

@einari einari commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Changed

  • The event model board in VS Code keeps your view options - detail level, properties and arrows or lines - for you: every board, and every later session, opens with your last choice, and changing them on one open board changes the others.
  • The event model board in VS Code is watermarked with the full Cratis logo.

Fixed

  • Changing a view option no longer crashes the event model board in VS Code.
  • A board that fails to draw now says what failed while the view options stay usable: choosing another one, or the default view, draws the board again.

claude added 4 commits October 1, 2026 11:03
The watermark showed only the Cratis mark, taken from Studio's logo. It
now shows the full Cratis logo, white, in the upper left of the board.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MrnFQW3Zx9PqPJgwE4b7Kc
A failure while drawing the board took the whole webview down with no
trace of what went wrong. The board now says what failed, logs it to the
webview console, and offers to go back to the default view - which also
gets past a view option VS Code has kept for the editor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MrnFQW3Zx9PqPJgwE4b7Kc
Changing a view option crashed the board in VS Code: the presentation was
kept with an effect that returned what the webview's setState returned,
which React then called as the effect's cleanup. The extension now keeps
the view options in VS Code's storage for the user instead - every board
and every later session opens with the last choice, and a change on one
open board is shown on the others.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MrnFQW3Zx9PqPJgwE4b7Kc
The error boundary sits around the board alone, so the view options stay
usable when the board fails to draw; choosing another one now draws the
board again instead of leaving the failure in place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MrnFQW3Zx9PqPJgwE4b7Kc
@einari einari changed the title Show the full Cratis logo and report board failures in the VS Code event model board Fix the VS Code event model board crashing on view options, and keep them for the user Oct 1, 2026
@einari
einari marked this pull request as ready for review October 1, 2026 11:15
@einari einari added the patch Bug fixes, docs, refactoring label Oct 1, 2026 — with Claude
@einari
einari merged commit a6fb01d into main Oct 1, 2026
4 of 7 checks passed
@cratis-direct
cratis-direct Bot deleted the claude/focused-allen-u3y1wy branch October 1, 2026 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Bug fixes, docs, refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants