mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
fix: properly handle streaming state when api_req_started has no cost
When api_req_started exists without cost or cancelReason fields, the API request is still in progress and should be treated as streaming. Only return false when cost (completed) or cancelReason (cancelled) are present.
This commit is contained in:
parent
4ef796822c
commit
ac57bd0209
1 changed files with 3 additions and 0 deletions
|
|
@ -560,6 +560,9 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
|
|||
if ("cost" in info && info.cost !== undefined) {
|
||||
return false // API request has finished.
|
||||
}
|
||||
|
||||
// If we have api_req_started without cost or cancelReason, streaming is in progress
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue