openclaw/extensions/github-copilot
Xiaoyu b4de5fdd3a
fix(copilot): apply Anthropic replay policy to Copilot Claude (#125015)
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.
2026-08-25 22:59:39 -07:00
..
auth.test.ts fix(secrets): fail closed for configured references (#127669) 2026-08-21 18:00:28 -07:00
auth.ts fix(secrets): fail closed for configured references (#127669) 2026-08-21 18:00:28 -07:00
connection-bound-ids.live.test.ts
connection-bound-ids.test.ts
connection-bound-ids.ts
domain.test.ts refactor(plugin-sdk): remove retired Copilot login chain (#122988) 2026-08-12 22:07:33 -07:00
domain.ts refactor(plugin-sdk): remove retired Copilot login chain (#122988) 2026-08-12 22:07:33 -07:00
dynamic-models.ts
embeddings.test.ts fix(secrets): fail closed for configured references (#127669) 2026-08-21 18:00:28 -07:00
embeddings.transport.test.ts
embeddings.ts
index.test.ts fix(copilot): apply Anthropic replay policy to Copilot Claude (#125015) 2026-08-25 22:59:39 -07:00
index.ts fix(copilot): apply Anthropic replay policy to Copilot Claude (#125015) 2026-08-25 22:59:39 -07:00
login.test.ts fix(github-copilot): preserve cumulative poll backoff (#103434) 2026-08-09 04:50:18 -07:00
login.ts refactor(plugin-sdk): remove retired Copilot login chain (#122988) 2026-08-12 22:07:33 -07:00
model-metadata.ts
models.test.ts
models.ts refactor(config): consolidate context budget to one per-model knob (#124665) 2026-08-16 10:05:01 -07:00
oauth.test.ts refactor(auth): move Copilot OAuth ownership to plugin (#118063) 2026-08-02 10:59:28 -07:00
oauth.ts refactor(auth): move Copilot OAuth ownership to plugin (#118063) 2026-08-02 10:59:28 -07:00
openclaw.plugin.json refactor: retire August compat windows (embedding API, pi aliases, target parser, spawning hook, setup exports, WhatsApp inbound aliases) (#124416) 2026-08-15 22:43:47 -07:00
package.json refactor(plugin-sdk): remove retired Copilot login chain (#122988) 2026-08-12 22:07:33 -07:00
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 refactor(github-copilot): narrow runtime facade (#120544) 2026-08-08 02:56:12 -07:00
replay-policy.test.ts fix(copilot): apply Anthropic replay policy to Copilot Claude (#125015) 2026-08-25 22:59:39 -07:00
replay-policy.ts fix(copilot): apply Anthropic replay policy to Copilot Claude (#125015) 2026-08-25 22:59:39 -07:00
runtime-auth-error.ts
runtime-auth.ts
runtime-identity.ts
starter-model.ts
stream.test.ts
stream.ts refactor(providers): shared generated-media download guard and binary-response adoption (#120351) 2026-08-07 15:45:53 -07:00
tsconfig.json
usage.ts