Repository navigation
What's Changed
Excalidraw
```excalidraw fences, *.excalidraw and *.excalidraw.json files now render as drawings, in Excalidraw's own fonts and hand-drawn style, with a Diagram / Source toggle. Click an element to comment on the JSON lines that define it. crit <file.excalidraw> opens the scene as an infinite canvas (pan, zoom, grid) where you can pin comments to individual elements, and sharing that review gives crit.md readers the same canvas.
- feat(web): Excalidraw renderer, canvas preview, and shareable canvas by @ashi-2107 in #1165 - Thank you!
Choose a file's language
The new languages config maps file patterns to a Shiki grammar, to markdown (Document view) or to text (no highlighting). For example, {"languages": {"*.qmd": "markdown", "nginx/*.conf": "nginx"}}. Global and project rules merge, the most specific pattern wins, and an unknown grammar name fails at startup instead of silently falling back. Shared reviews keep the overrides. Template files such as main.py.tmpl and config.yaml.j2 are now highlighted as the language under the suffix, and Ember .gjs/.gts files use the Glimmer grammars.
- fix(web): highlight template files by the language under their suffix (#1196) by @florentdestremau in #1196 - Thank you!
- feat(web): highlight Ember .gjs/.gts files with the Glimmer grammars (#1204) by @SwiftEngineer in #1204 - Thank you!
- feat: derive bundled grammars from Pierre and add a languages config (#1206) by @tomasz-tomczyk in #1206 - Thank you @dgutson for suggesting!
Remote images
Reviewed content can be written by an agent, so the review page no longer fetches images from other hosts on its own. A remote image shows as a placeholder with its host, and clicking it loads the image in a sandboxed frame. To load images from hosts you trust automatically, add them to remote_images in ~/.crit.config.json (for example ["img.shields.io", "*.githubusercontent.com"]). This setting is global-only.
- fix(security): block remote images in review UI via CSP + click-to-load (#1192) by @tomasz-tomczyk in #1192
Finish prompts
A finish prompt template that fails to load or render used to fall back without warning, and could drop the unresolved comments from what the agent received. Crit now checks prompts when a review starts, warns in the terminal, and shows a banner on the review page with a Recheck button. If a prompt is still broken at Finish, Crit shows the error and keeps the review open.
- fix(prompt): validate finish prompts and report missing-key errors (#1187) by @zerone0x in #1187 - Thank you! Thank you @kado-ta for reporting!
CLI and sessions
- feat(cli): infer PR/MR from current branch for crit pr, crit mr, --pr and --mr (#1178) by @iamralch in #1178 - Thank you!
- fix(cli): record --range in cli_args so crit --session restores it (#1191) by @shu-chen-dot-ca in #1191 - Thank you! Thank you @sethfitz for reporting!
- fix(session): honour --no-open when --session restarts a stopped daemon (#1190) by @shu-chen-dot-ca in #1190 - Thank you! Thank you @sethfitz for reporting!
- fix(session): diff a pinned commit that adds a file against that commit (#1205) by @hnwg in #1205 - Thank you! Thank you @codethief for reporting!
- fix(install): correct --author in pi and github-copilot crit-cli skills (#1209) by @tomasz-tomczyk in #1209 - Thank you @mantzas for reporting!
Review page
- fix(web): render a multi-paragraph blockquote as one continuous quote (#1177) by @stnguyen90 in #1177 - Thank you!
- fix(viewed): reset viewed marks on lazy files when content changes (#1194) by @ruilopesm in #1194 - Thank you!
- fix(web): expand a collapsed story file group when jumping to its comment (#1164) by @shu-chen-dot-ca in #1164 - Thank you! Thank you @RDeluxe for suggesting!
- fix(web): keep a jumped-to comment centered while files around it measure (#1193) by @tomasz-tomczyk in #1193
- fix(web): release-audit frontend fixes (#1211) by @tomasz-tomczyk in #1211
Internal refactors
- fix: release-audit cleanups and carry language hints into shares (#1210) by @tomasz-tomczyk in #1210
- test: stabilize virtualized comment chip e2e (#1179) by @hermes-tomczyk in #1179
New Contributors
- @iamralch made their first contribution in #1178
- @stnguyen90 made their first contribution in #1177
- @zerone0x made their first contribution in #1187
- @ruilopesm made their first contribution in #1194
- @florentdestremau made their first contribution in #1196
- @SwiftEngineer made their first contribution in #1204
- @hnwg made their first contribution in #1205
Full Changelog: v0.23.3...v0.24.0