mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
Fixes #10468 The error "Q.text.startsWith is not a function" occurred because lastMessage.text could potentially change between the type check (typeof lastMessage.text === "string") and the startsWith call. This fix captures lastMessage.text in a local variable before performing any operations on it, preventing the TOCTOU (time-of-check-time-of-use) vulnerability. |
||
|---|---|---|
| .. | ||
| audio | ||
| public | ||
| src | ||
| .gitignore | ||
| browser-panel.html | ||
| components.json | ||
| eslint.config.mjs | ||
| index.html | ||
| package.json | ||
| tsconfig.json | ||
| turbo.json | ||
| vite.config.ts | ||
| vitest.config.ts | ||
| vitest.setup.ts | ||