@@ -45,7 +45,7 @@ import { applyingChatEditsFailedContextKey, decidedChatEditingResourceContextKey
45
45
import { ChatPauseState , IChatModel , IChatResponseModel } from '../common/chatModel.js' ;
46
46
import { chatAgentLeader , ChatRequestAgentPart , ChatRequestDynamicVariablePart , ChatRequestSlashPromptPart , ChatRequestToolPart , ChatRequestToolSetPart , chatSubcommandLeader , formatChatQuestion , IParsedChatRequest } from '../common/chatParserTypes.js' ;
47
47
import { ChatRequestParser } from '../common/chatRequestParser.js' ;
48
- import { IChatLocationData , IChatSendRequestOptions , IChatService , IChatTasksContent } from '../common/chatService.js' ;
48
+ import { IChatLocationData , IChatSendRequestOptions , IChatService } from '../common/chatService.js' ;
49
49
import { IChatSlashCommandService } from '../common/chatSlashCommands.js' ;
50
50
import { ChatViewModel , IChatRequestViewModel , IChatResponseViewModel , isRequestVM , isResponseVM } from '../common/chatViewModel.js' ;
51
51
import { IChatInputState } from '../common/chatWidgetHistoryService.js' ;
@@ -68,13 +68,13 @@ import { ChatViewWelcomePart, IChatSuggestedPrompts, IChatViewWelcomeContent } f
68
68
import { MicrotaskDelay } from '../../../../base/common/symbols.js' ;
69
69
import { IChatRequestVariableEntry , ChatRequestVariableSet as ChatRequestVariableSet , isPromptFileVariableEntry , toPromptFileVariableEntry , PromptFileVariableKind , isPromptTextVariableEntry } from '../common/chatVariableEntries.js' ;
70
70
import { ChatStickyTaskWidget } from './chatContentParts/chatStickyTaskWidget.js' ;
71
- import { ManageToolSettingId } from '../common/tools/manageTasksTool.js' ;
72
71
import { PromptsConfig } from '../common/promptSyntax/config/config.js' ;
73
72
import { CancellationToken } from '../../../../base/common/cancellation.js' ;
74
73
import { ComputeAutomaticInstructions } from '../common/promptSyntax/computeAutomaticInstructions.js' ;
75
74
import { startupExpContext , StartupExperimentGroup } from '../../../services/coreExperimentation/common/coreExperimentationService.js' ;
76
75
import { IWorkspaceContextService , WorkbenchState } from '../../../../platform/workspace/common/workspace.js' ;
77
76
import { IMouseWheelEvent } from '../../../../base/browser/mouseEvent.js' ;
77
+ import { ManageToolSettingId } from '../common/tools/manageTasksTool.js' ;
78
78
79
79
const $ = dom . $ ;
80
80
@@ -829,27 +829,9 @@ export class ChatWidget extends Disposable implements IChatWidget {
829
829
830
830
private renderStickyTaskWidget ( ) : void {
831
831
const isManageTasksToolEnabled = this . configurationService . getValue < boolean > ( ManageToolSettingId ) === true ;
832
- if ( ! this . viewModel || ! isManageTasksToolEnabled ) {
833
- this . stickyTaskWidget . updateTaskData ( undefined ) ;
834
- return ;
835
- }
836
-
837
- let latestTaskData : IChatTasksContent | undefined ;
838
- for ( const item of this . viewModel . getItems ( ) . slice ( ) . reverse ( ) ) {
839
- if ( isResponseVM ( item ) ) {
840
- for ( const content of item . response . value ) {
841
- if ( content . kind === 'toolInvocation' &&
842
- content . toolSpecificData ?. kind === 'tasks' ) {
843
- latestTaskData = content . toolSpecificData ;
844
- break ;
845
- }
846
- }
847
- if ( latestTaskData ) {
848
- break ;
849
- }
850
- }
832
+ if ( isManageTasksToolEnabled ) {
833
+ this . stickyTaskWidget . updateSessionId ( this . viewModel ?. sessionId ) ;
851
834
}
852
- this . stickyTaskWidget . updateTaskData ( latestTaskData ) ;
853
835
}
854
836
855
837
private getWelcomeViewContent ( additionalMessage : string | IMarkdownString | undefined , expEmptyState ?: boolean ) : IChatViewWelcomeContent {
0 commit comments