chore: update our fork of fantasy/anthropic-sdk-go to fix MarshalJSON over-allocations (#24390)

Updates go.mod to reference our internal fork of anthropic-sdk-go.

See: https://github.com/coder/anthropic-sdk-go/pull/7

Relates to CODAGT-167

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Cian Johnston
2026-04-15 19:47:09 +01:00
committed by GitHub
parent dd73ea54bd
commit 2b68a1f4bd
2 changed files with 9 additions and 8 deletions
+5 -4
View File
@@ -81,13 +81,14 @@ replace github.com/spf13/afero => github.com/aslilac/afero v0.0.0-20250403163713
// 2) Go 1.25 downgrade for Windows CI compat
// 3) ibetitsmike/fantasy#4 — skip ephemeral replay items when store=false
// 4) (anthropic-sdk-go) dannykopping's appendCompact performance fixes
// See: https://github.com/coder/fantasy/commits/7aaf56df81f9
replace charm.land/fantasy => github.com/coder/fantasy v0.0.0-20260409111551-7aaf56df81f9
// 5) (anthropic-sdk-go) DirectEncoder to eliminate nested MarshalJSON allocation chain
// See: https://github.com/coder/fantasy/commits/190272ce52f0
replace charm.land/fantasy => github.com/coder/fantasy v0.0.0-20260415162245-190272ce52f0
// coder/coder uses a fork of charmbracelet's fork of the Anthropic Go SDK with some
// additional performance improvements.
// See: https://github.com/coder/anthropic-sdk-go/commits/5711db120546
replace github.com/charmbracelet/anthropic-sdk-go => github.com/coder/anthropic-sdk-go v0.0.0-20260409105508-5711db120546
// See: https://github.com/coder/anthropic-sdk-go/commits/a31d7d0e7067
replace github.com/charmbracelet/anthropic-sdk-go => github.com/coder/anthropic-sdk-go v0.0.0-20260415160422-a31d7d0e7067
// Replace sdks with our own optimized forks until relevant upstream PRs are merged.
// https://github.com/anthropics/anthropic-sdk-go/pull/262