fix(openrouter): restore attribution wrapper in extra params#62677
fix(openrouter): restore attribution wrapper in extra params#62677luoyanglang wants to merge 3 commits intoopenclaw:mainfrom
Conversation
Greptile SummaryRestores Confidence Score: 5/5Safe to merge; the code fix is correct and all remaining findings are P2. The single P2 finding is a test-mock inaccuracy that is harmless for current test cases (no Anthropic model refs exercised). The production wrapper chain is correct after the fix. src/agents/pi-embedded-runner-extraparams-openrouter.test.ts — the wrapProviderStreamFn mock wraps with createOpenRouterSystemCacheWrapper, which the real plugin does not; consider trimming it to just createOpenRouterWrapper.
|
d6f634a to
9a2bb32
Compare
b0963b4 to
010ca1f
Compare
Summary
applyExtraParamsToAgent()post-wrapper chainpi-embedded-runnerregression test green for OpenRouter attribution headers on chat-path modelsValidation
pnpm.cmd exec vitest run src/agents/pi-embedded-runner-extraparams.test.tspnpm.cmd exec oxlint src/agents/pi-embedded-runner/extra-params.ts src/agents/pi-embedded-runner-extraparams.test.ts