-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
Problem (one or two sentences)
While running orchestration between profiles with different models I get this error:
TypeError: n.replace is not a function
at countMarkdownHeadings (../../../../webview-ui/src/utils/markdown.ts:10:32)
at hasComplexMarkdown (../../../../webview-ui/src/utils/markdown.ts:22:8)
at hasComplexMarkdown (../../../../webview-ui/src/components/chat/OpenMarkdownPreviewButton.tsx:14:6)
at Nh (../../../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.production.min.js:160:136)
at gj (../../../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.production.min.js:196:257)
at bj (../../../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.production.min.js:194:203)
at Fk (../../../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.production.min.js:296:99)
at tj (../../../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.production.min.js:279:388)
at tj (../../../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.production.min.js:279:319)
at tj (../../../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.production.min.js:279:179)
Component stack:
at https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/current_user/.vscode/extensions/rooveterinaryinc.roo-cline-3.49.0/webview-ui/build/assets/index.js:2753:9413
at div
at div
at vTn (../../../../webview-ui/src/components/chat/ChatRow.tsx:169:1)
at div
at https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/current_user/.vscode/extensions/rooveterinaryinc.roo-cline-3.49.0/webview-ui/build/assets/index.js:2753:10333
at div
at div
at https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/current_user/.vscode/extensions/rooveterinaryinc.roo-cline-3.49.0/webview-ui/build/assets/index.js:261:39518
at div
at NXt (../../../../node_modules/.pnpm/react-virtuoso@4.12.7_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-virtuoso/dist/index.mjs:2470:24)
at div
at https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/current_user/.vscode/extensions/rooveterinaryinc.roo-cline-3.49.0/webview-ui/build/assets/index.js:261:42387
at https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/current_user/.vscode/extensions/rooveterinaryinc.roo-cline-3.49.0/webview-ui/build/assets/index.js:261:44538
at https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/current_user/.vscode/extensions/rooveterinaryinc.roo-cline-3.49.0/webview-ui/build/assets/index.js:261:35656
at div
at div
at U2n (../../../../webview-ui/src/components/chat/ChatView.tsx:69:3)
at o4n (../../../../webview-ui/src/App.tsx:69:5)
at d (../../../../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@18.3.23_react@18.3.1/node_modules/@radix-ui/react-context/dist/index.mjs:27:14)
at NNt (../../../../node_modules/.pnpm/@radix-ui+react-tooltip@1.2.6_@types+react-dom@18.3.7_@types+react@18.3.23__@types+reac_99504aa956c623e0884a4e3cb215669a/node_modules/@radix-ui/react-tooltip/dist/index.mjs:29:4)
at H3 (../../../../webview-ui/src/components/ui/tooltip.tsx:8:47708)
at zFt (../../../../node_modules/.pnpm/@TanStack+react-query@5.76.1_react@18.3.1/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js:20:2)
at XHt (../../../../webview-ui/src/i18n/TranslationContext.tsx:16:70)
at HHt (../../../../webview-ui/src/context/ExtensionStateContext.tsx:196:86)
at HNn (../../../../webview-ui/src/components/ErrorBoundary.tsx:18:2)
at i (../../../../node_modules/.pnpm/react-i18next@15.5.1_i18next@25.2.1_typescript@5.8.3__react-dom@18.3.1_react@18.3.1__react@18.3.1_typescript@5.8.3/node_modules/react-i18next/dist/es/withTranslation.js:6:4)
at r4n (../../../../webview-ui/src/App.tsx:319:25)
Context (who is affected and when)
It happens when prompting the agent to do autonomous tasks like running tests and debugging and fixing the errors it finds.
Reproduction steps
- Windows 11
- The error is unrecoverable except restarting VSCode.
- It seems to fail no matter which prompt I give it.
Expected result
Starts task and executes.
Actual result
Fails with the stack mentioned no matter which prompt I give it.
Variations tried (optional)
No response
App Version
3.49.0
API Provider (optional)
OpenAI Compatible
Model Used (optional)
gpt-oss-120b and qwen3-coder-next
Roo Code Task Links (optional)
No response