# 0.2.51 ## Breaking Changes - **`grok mcp add`** now accepts positional arguments (e.g. `grok mcp add filesystem -- npx ...`), supports --scope project, and adds -e/-H flags for env/headers. ## Features - **Mermaid flowcharts** now render subgraph blocks as titled frames with correct internal and cross-boundary edges. - **Class diagrams** in Mermaid now render as proper UML boxes with attributes, methods and inheritance arrows instead of raw source. - **Permission prompts** now accept a double-click on an option to submit it, matching the existing Enter and number-key shortcuts. - **New /code-review slash command** now ships with the CLI and is always available. ## Bug Fixes - **Plan mode exit reminders** no longer appear after the model has already started implementing the plan. - **Expanded thinking blocks** in scrollback now remain expanded when the agent finishes them. - **`grok update`** no longer downloads the same binary twice when multiple updaters or leader checks run concurrently. - **Background task IDs** after /compact are now shown verbatim so the model can reference them correctly in later tool calls. - **Typing /** while scrollback is focused now focuses the prompt and opens the slash-command dropdown. - **Dashboard empty state** is now a single hint line; dispatch and peek placeholders appear only when unfocused. - **Fixed memory leaks** that could cause the CLI to use tens of gigabytes during long sessions with many tool calls. - **Login on SSH or headless machines** now tells you when the browser cannot be opened automatically and shows the URL to visit manually. - **Fixed git clone failures** on Windows when the CLI tries to clone marketplace plugins into ~/.grok. ## Performance - **Large code blocks** inside lists no longer cause multi-second UI stalls while streaming responses.