mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-11 22:51:26 +00:00
fix: add hasReasoningContent to second content gate in Task.ts
The first content gate (line 3416) was updated to include hasReasoningContent, but the second gate (line 3567) was not. This caused reasoning-only responses to save an assistant message to history but then fall through to the "no assistant messages" error path, incrementing the retry counter and leaving an orphaned assistant message in conversation history. Both gates now consistently check: if (hasTextContent || hasToolUses || hasReasoningContent) Addresses review feedback from @roomote. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c51cf58c61
commit
0760818025
1 changed files with 1 additions and 1 deletions
|
|
@ -3564,7 +3564,7 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
|
|||
presentAssistantMessage(this)
|
||||
}
|
||||
|
||||
if (hasTextContent || hasToolUses) {
|
||||
if (hasTextContent || hasToolUses || hasReasoningContent) {
|
||||
// NOTE: This comment is here for future reference - this was a
|
||||
// workaround for `userMessageContent` not getting set to true.
|
||||
// It was due to it not recursively calling for partial blocks
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue