Commit 4443719
committed
fix: use safeRenderValue consistently for all content types
The isJsonObject branch was bypassing safeRenderValue and calling
JSON.stringify directly, which displayed raw JSON for structured
objects like { text, type } instead of extracting the text field.
Now all content goes through safeRenderValue which extracts .text
from content blocks and falls back to JSON.stringify only when
no text field is found.
Addresses review feedback from Greptile and Cursor bots.
AI Disclosure: This commit was authored by Claude Opus 4.6 (Anthropic),
an AI agent operated by Maxwell Calkin (@MaxwellCalkin).1 parent e0dd596 commit 4443719
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
0 commit comments