File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
src/services/deep-research
webview-ui/src/features/deep-research Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -171,8 +171,12 @@ export class DeepResearchService {
171171 const queries = await this . generateQueries ( { query, learnings, breadth } )
172172 onGeneratedQueries ( queries )
173173
174- this . progress . expectedQueries = this . progress . expectedQueries - ( this . breadth - queries . length )
175- onProgressUpdated ( )
174+ if ( queries . length < breadth ) {
175+ const delta = breadth - queries . length
176+ this . progress . expectedQueries = this . progress . expectedQueries - delta
177+ console . log ( `[deepResearch] expectedQueries reduced by ${ delta } to ${ this . progress . expectedQueries } ` )
178+ onProgressUpdated ( )
179+ }
176180
177181 const limit = pLimit ( this . concurrency )
178182
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ export const Session = () => {
134134 Done
135135 </ Button >
136136 </ div >
137- ) : progress && progress . progressPercentage < 100 ? (
137+ ) : status === "research" && progress && progress . progressPercentage < 100 ? (
138138 < div className = "border-t border-vscode-editor-background p-4" >
139139 < Progress value = { Math . max ( progress . progressPercentage , 5 ) } />
140140 </ div >
You can’t perform that action at this time.
0 commit comments