mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
fix: track currentRequestResponseId in SSE fallback path for background mode resume
This commit is contained in:
parent
f138361e87
commit
8f5e2ed304
1 changed files with 4 additions and 0 deletions
|
|
@ -705,6 +705,8 @@ export class OpenAiNativeHandler extends BaseProvider implements SingleCompletio
|
|||
// Capture top-level response id
|
||||
if (parsed.response?.id) {
|
||||
this.lastResponseId = parsed.response.id as string
|
||||
// Also track for per-request resume capability
|
||||
this.currentRequestResponseId = parsed.response.id as string
|
||||
}
|
||||
|
||||
// Delegate standard event types to the shared processor to avoid duplication
|
||||
|
|
@ -1412,6 +1414,8 @@ export class OpenAiNativeHandler extends BaseProvider implements SingleCompletio
|
|||
// Capture top-level response id
|
||||
if (event?.response?.id) {
|
||||
this.lastResponseId = event.response.id as string
|
||||
// Also track for per-request resume capability
|
||||
this.currentRequestResponseId = event.response.id as string
|
||||
}
|
||||
// Record sequence number for cursor tracking
|
||||
if (typeof event?.sequence_number === "number") {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue