Skip to content

Render write() tool content as readable file text - #1024

Merged
agegr merged 3 commits into
agegr:mainfrom
draxxris:pr/write-tool-readable-content
Oct 7, 2026
Merged

agegr merged 3 commits into
agegr:mainfrom
draxxris:pr/write-tool-readable-content

Conversation

@draxxris

Copy link
Copy Markdown
Contributor

Instead of the raw json arguments with literal "\n", render write() results similar to edit()

draxxris and others added 3 commits September 30, 2026 11:22
(cherry picked from commit 8476b85b6579054a61a7da97592deb0eb7646dd0)
…ents

Show the file text only for a write whose input is just path/file_path and
content, so another argument (a mode, a title) stays visible. Streamed input,
which is still incomplete JSON, and an empty file keep the generic view too.
Drop the duplicate tool-call-expansion import the merge with main left in the
test file, which stopped MessageView.test.mjs from loading.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants