Roo-Code/src
Roo Code 3da18c7712 fix: process queued user messages during endless loop recovery (Issue #10814)
When the model gets stuck in a repetitive loop (repeating the same tool call
or not using tools), user messages sent during this time are queued but never
processed because the model keeps receiving the same error feedback.

This fix adds queue processing at two critical points:

1. In Task.ts when consecutiveNoToolUseCount >= 2: Check for queued messages
   and inject them as user feedback to break the loop.

2. In presentAssistantMessage.ts when tool repetition is detected: Check for
   queued messages before asking the user, allowing previously queued messages
   to provide the intervention needed.

Both fixes reset the mistake counters when user guidance is received, giving
the model a fresh start with the user-provided direction.

Fixes #10814
2026-01-18 02:54:30 +00:00
..
__mocks__ Add timeout to OpenAI Compatible Provider Client (#9898) 2025-12-08 17:36:53 -08:00
__tests__ feat: add optional mode field to slash command front matter (#10344) 2025-12-26 17:17:54 -08:00
activate chore: remove human-relay provider (#10388) 2025-12-30 15:38:46 -07:00
api fix(litellm): detect Gemini models with space-separated names for thought signature injection (#10787) 2026-01-16 17:43:51 -05:00
assets Show the Roo provider on the welcome screen (#8317) 2025-09-25 16:13:04 -04:00
core fix: process queued user messages during endless loop recovery (Issue #10814) 2026-01-18 02:54:30 +00:00
extension feat: streaming tool stats + token usage throttling (#9926) 2025-12-08 19:40:12 -08:00
i18n feat: add OpenAI Codex provider with OAuth subscription authentication (#10736) 2026-01-14 23:48:51 -05:00
integrations feat: add OpenAI Codex provider with OAuth subscription authentication (#10736) 2026-01-14 23:48:51 -05:00
services Add some functionality to @roo-code/core for the cli (#10584) 2026-01-09 13:05:15 -08:00
shared fix: add openai-codex to providers that don't require API key (#10786) 2026-01-16 17:13:50 -05:00
types feat(proxy): add debug-mode proxy routing (#10467) 2026-01-06 13:17:50 -07:00
utils fix: truncate call_id to 64 chars for OpenAI Responses API (#10763) 2026-01-15 23:09:54 -05:00
workers Count tokens worker (#3037) 2025-04-29 12:29:25 -07:00
.gitignore PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
.prettierignore PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
.vscodeignore debug: Add ErrorBoundary component for better error handling (#5085) 2025-07-23 08:45:35 -04:00
esbuild.mjs feat(proxy): add debug-mode proxy routing (#10467) 2026-01-06 13:17:50 -07:00
eslint.config.mjs Fix linter errors (#3821) 2025-05-21 23:16:43 -07:00
extension.ts feat: add OpenAI Codex provider with OAuth subscription authentication (#10736) 2026-01-14 23:48:51 -05:00
package.json Changeset version bump (#10790) 2026-01-16 18:03:24 -05:00
package.nls.ca.json feat(proxy): add debug-mode proxy routing (#10467) 2026-01-06 13:17:50 -07:00
package.nls.de.json feat(proxy): add debug-mode proxy routing (#10467) 2026-01-06 13:17:50 -07:00
package.nls.es.json feat(proxy): add debug-mode proxy routing (#10467) 2026-01-06 13:17:50 -07:00
package.nls.fr.json feat(proxy): add debug-mode proxy routing (#10467) 2026-01-06 13:17:50 -07:00
package.nls.hi.json feat(proxy): add debug-mode proxy routing (#10467) 2026-01-06 13:17:50 -07:00
package.nls.id.json feat(proxy): add debug-mode proxy routing (#10467) 2026-01-06 13:17:50 -07:00
package.nls.it.json feat(proxy): add debug-mode proxy routing (#10467) 2026-01-06 13:17:50 -07:00
package.nls.ja.json feat(proxy): add debug-mode proxy routing (#10467) 2026-01-06 13:17:50 -07:00
package.nls.json feat(proxy): add debug-mode proxy routing (#10467) 2026-01-06 13:17:50 -07:00
package.nls.ko.json feat(proxy): add debug-mode proxy routing (#10467) 2026-01-06 13:17:50 -07:00
package.nls.nl.json feat(proxy): add debug-mode proxy routing (#10467) 2026-01-06 13:17:50 -07:00
package.nls.pl.json feat(proxy): add debug-mode proxy routing (#10467) 2026-01-06 13:17:50 -07:00
package.nls.pt-BR.json feat(proxy): add debug-mode proxy routing (#10467) 2026-01-06 13:17:50 -07:00
package.nls.ru.json feat(proxy): add debug-mode proxy routing (#10467) 2026-01-06 13:17:50 -07:00
package.nls.tr.json feat(proxy): add debug-mode proxy routing (#10467) 2026-01-06 13:17:50 -07:00
package.nls.vi.json feat(proxy): add debug-mode proxy routing (#10467) 2026-01-06 13:17:50 -07:00
package.nls.zh-CN.json feat(proxy): add debug-mode proxy routing (#10467) 2026-01-06 13:17:50 -07:00
package.nls.zh-TW.json feat(proxy): add debug-mode proxy routing (#10467) 2026-01-06 13:17:50 -07:00
tsconfig.json Move @roo-code/cloud to the Roo-Code repo (#7503) 2025-08-28 11:18:45 -07:00
turbo.json Improve turbo task dependency declarations (#4323) 2025-06-04 09:32:27 -07:00
vitest.config.ts Show console logging in vitests when the --no-silent flag is set (#7467) 2025-08-28 12:51:21 -04:00
vitest.setup.ts Show console logging in vitests when the --no-silent flag is set (#7467) 2025-08-28 12:51:21 -04:00