Skip to content

feat(tools): batch edits, process-tree kill, abort propagation, image… - #66

Merged
maruakshay merged 1 commit into
mainfrom
feat/tool-parity-batch-edit-image-read
Jul 3, 2026
Merged

feat(tools): batch edits, process-tree kill, abort propagation, image…#66
maruakshay merged 1 commit into
mainfrom
feat/tool-parity-batch-edit-image-read

Conversation

@maruakshay

Copy link
Copy Markdown
Owner

… read

  • edit_file: optional edits[] for atomic multi-edit (resolve on original, reject overlaps, apply right-to-left). Reuses fuzzy match + nearMiss.
  • run_bash: own timeout with process-tree kill (POSIX detached group / Windows taskkill /T) so forked grandchildren can't outlive the call; all:true restores stdout/stderr interleave order.
  • ToolContext threads the turn AbortSignal into handlers; Ctrl-C now kills the running command tree mid-flight.
  • read_file: returns image files (png/jpg/gif/webp/bmp) as base64 attachments for vision models instead of refusing as binary; 8MB cap. Adapter injects a user message carrying the pixels after the tool message (Ollama only honors images on user messages).
  • JsonSchema gains items for array-of-object params.

… read

- edit_file: optional `edits[]` for atomic multi-edit (resolve on original,
  reject overlaps, apply right-to-left). Reuses fuzzy match + nearMiss.
- run_bash: own timeout with process-tree kill (POSIX detached group /
  Windows taskkill /T) so forked grandchildren can't outlive the call;
  `all:true` restores stdout/stderr interleave order.
- ToolContext threads the turn AbortSignal into handlers; Ctrl-C now kills
  the running command tree mid-flight.
- read_file: returns image files (png/jpg/gif/webp/bmp) as base64 attachments
  for vision models instead of refusing as binary; 8MB cap. Adapter injects a
  user message carrying the pixels after the tool message (Ollama only honors
  images on user messages).
- JsonSchema gains `items` for array-of-object params.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@maruakshay
maruakshay merged commit d12e593 into main Jul 3, 2026
2 checks passed
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.

1 participant