Fix wording, docs and style inconsistencies per audit of 0139564

This commit is contained in:
Ian Gulliver
2026-10-23 18:36:11 -07:00
parent 5a21396775
commit 681cc2b090
42 changed files with 469 additions and 453 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ package agents
import (
"context"
"encoding/json"
"errors"
"fmt"
"log/slog"
"os"
@@ -239,7 +240,7 @@ func codexToolResult(item codex.ThreadItem) (any, bool, error) {
}
mime, data, ok := strings.Cut(strings.TrimPrefix(c.ImageURL, "data:"), ";base64,")
if !ok {
return nil, false, fmt.Errorf("dynamic tool image is not a base64 data url")
return nil, false, errors.New("dynamic tool image is not a base64 data url")
}
blocks = append(blocks, imageBlock(mime, data))
}