mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 17:53:39 +00:00
Copilot routes Claude over api.*.githubcopilot.com/v1/messages, a real
Anthropic Messages endpoint, but its replay policy returned only
`{ dropThinkingBlocks: true }`. resolveTranscriptPolicy skips the core
transport-family fallback entirely once a provider registers
buildReplayPolicy, so validateAnthropicTurns stayed false and core never
stripped a trailing assistant prefill turn. The next request after
auto-compaction was rejected with 400 "This model does not support
assistant message prefill".
Dispatch on ctx.modelApi and reuse buildStrictAnthropicReplayPolicy for
the Anthropic transport. dropThinkingBlocks stays unconditional so the
#81520 fix holds, and tool-call ids stay owned by wrapCopilotAnthropicStream
so the persisted transcript is not rewritten.
|
||
|---|---|---|
| .. | ||
| auth.test.ts | ||
| auth.ts | ||
| connection-bound-ids.live.test.ts | ||
| connection-bound-ids.test.ts | ||
| connection-bound-ids.ts | ||
| domain.test.ts | ||
| domain.ts | ||
| dynamic-models.ts | ||
| embeddings.test.ts | ||
| embeddings.transport.test.ts | ||
| embeddings.ts | ||
| index.test.ts | ||
| index.ts | ||
| login.test.ts | ||
| login.ts | ||
| model-metadata.ts | ||
| models.test.ts | ||
| models.ts | ||
| oauth.test.ts | ||
| oauth.ts | ||
| openclaw.plugin.json | ||
| package.json | ||
| provider-auth.contract.test.ts | ||
| provider-discovery.contract.test.ts | ||
| provider-policy-api.test.ts | ||
| provider-policy-api.ts | ||
| provider-runtime.contract.test.ts | ||
| register.runtime.ts | ||
| replay-policy.test.ts | ||
| replay-policy.ts | ||
| runtime-auth-error.ts | ||
| runtime-auth.ts | ||
| runtime-identity.ts | ||
| starter-model.ts | ||
| stream.test.ts | ||
| stream.ts | ||
| tsconfig.json | ||
| usage.ts | ||