mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-24 05:43:51 +00:00
* fix: capture and round-trip thinking signature for Bedrock Claude models Bedrock handler streams reasoning text from Claude's extended thinking but never captures the cryptographic signature. This causes 400 errors on multi-turn conversations with tool use: 'Expected thinking or redacted_thinking, but found tool_use'. Changes: - bedrock.ts: Capture reasoningContent.signature from Converse API stream deltas, implement getThoughtSignature() so Task.ts stores it as a proper thinking content block - bedrock-converse-format.ts: Convert thinking blocks to Bedrock's reasoningContent format with signature, skip reasoning/redacted_thinking/ thoughtSignature blocks that aren't valid for the API * fix: add redacted_thinking round-trip, fix interface types, add tests Address PR review feedback: - Update ContentBlockDeltaEvent interface to include signature and redactedContent fields (removes type assertions) - Add 6 tests for thinking/reasoning block conversions in bedrock-converse-format.ts Also add redacted_thinking round-trip support: - bedrock.ts: Capture redactedContent from stream deltas, base64 encode, expose via getRedactedThinkingBlocks() - Task.ts: Insert redacted_thinking blocks after thinking block in assistant messages - bedrock-converse-format.ts: Convert redacted_thinking blocks back to reasoningContent.redactedContent (base64 → Uint8Array) |
||
|---|---|---|
| .. | ||
| __mocks__ | ||
| __tests__ | ||
| activate | ||
| api | ||
| assets | ||
| core | ||
| extension | ||
| i18n | ||
| integrations | ||
| services | ||
| shared | ||
| types | ||
| utils | ||
| workers | ||
| .gitignore | ||
| .prettierignore | ||
| .vscodeignore | ||
| esbuild.mjs | ||
| eslint.config.mjs | ||
| extension.ts | ||
| package.json | ||
| package.nls.ca.json | ||
| package.nls.de.json | ||
| package.nls.es.json | ||
| package.nls.fr.json | ||
| package.nls.hi.json | ||
| package.nls.id.json | ||
| package.nls.it.json | ||
| package.nls.ja.json | ||
| package.nls.json | ||
| package.nls.ko.json | ||
| package.nls.nl.json | ||
| package.nls.pl.json | ||
| package.nls.pt-BR.json | ||
| package.nls.ru.json | ||
| package.nls.tr.json | ||
| package.nls.vi.json | ||
| package.nls.zh-CN.json | ||
| package.nls.zh-TW.json | ||
| tsconfig.json | ||
| turbo.json | ||
| vitest.config.ts | ||
| vitest.setup.ts | ||