Move synthetic user message (carrying base64 tool images) to after the entire contiguous tool-message block instead of immediately after each tool message. This preserves the assistant→tool→tool ordering required by OpenAI-compatible APIs. Also fix load_image to use generic [image: photo] placeholder so injectPathTags can properly replace it with the actual path. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| edit.go | ||
| edit_test.go | ||
| filesystem.go | ||
| filesystem_test.go | ||
| load_image.go | ||
| load_image_test.go | ||
| send_file.go | ||
| send_file_test.go | ||
| shared.go | ||