picoclaw/pkg/providers/anthropic
maxiaoyang cd4372368e feat(providers/anthropic): prefix user content with sender name
Sibling change to the anthropic_messages adapter, this time for the
SDK-based path that talks to the official Anthropic endpoint via
anthropic-sdk-go. The Messages API there is the same shape, so the
fix is identical: wrap user content with messageutil.ApplyUserNamePrefix
when the message carries Name attribution; tool result blocks pass
through unchanged.

The prefix is applied at marshal time only; the persisted message is
not mutated. Existing single-user / direct-channel flows are
unaffected because Name is empty there.

Existing provider tests continue to pass; behavior is exercised by
the messageutil unit tests (which cover ApplyUserNamePrefix
exhaustively) and the agent-level integration tests added earlier.

Refs #2702.
2026-04-29 21:04:37 +08:00
..
provider.go feat(providers/anthropic): prefix user content with sender name 2026-04-29 21:04:37 +08:00
provider_test.go feat(auth): add Anthropic OAuth setup-token login (#926) 2026-03-06 19:58:23 +08:00
thinking_test.go feat: add extended thinking support for Anthropic models (#1076) 2026-03-05 09:51:18 +08:00