Skip to content

Commit 226b479

Browse files
Update .changeset/good-pigs-beam.md
Co-authored-by: Copilot <[email protected]>
1 parent 6e155bc commit 226b479

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.changeset/good-pigs-beam.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This PR improves the display of MCP tool requests and responses in the CLI, addr
1414
Created new `SayMcpServerResponseMessage` component for MCP responses and refactored `AskUseMcpServerMessage` to share formatting logic. Both will make use of newly added utility functions for JSON detection, formatting, and metadata display.
1515
`formatContentWithMetadata()` - Detects JSON, formats it, handles preview logic (>20 lines → show 5)
1616
`formatJson()` - Pretty-prints JSON with configurable indentation
17-
`calculateByteSize()` - Chunked processing for large strings (>10KB) to avoid memory spikes
17+
`approximateByteSize()` - Estimates byte size using `str.length * 3`
1818
`formatByteSize()`, `buildMetadataString()` - Display helpers
1919

2020
| before | after |

0 commit comments

Comments
 (0)