@@ -758,17 +758,12 @@ export class DashboardWebviewProvider extends WebviewBase {
758758 }
759759 }
760760
761- /**
762- * Creates a temporary session that shows in the dashboard with a loading state
763- */
764761 private createTemporarySession ( query : string , type : 'local' | 'remote' ) : string {
765762 const tempId = this . _taskManager . createTemporarySession ( query , type ) ;
766763 // Immediately update the dashboard to show the temporary session
767764 this . updateDashboard ( ) ;
768765 return tempId ;
769- } /**
770- * Removes a temporary session from the dashboard
771- */
766+ }
772767 private removeTemporarySession ( tempId : string ) : void {
773768 this . _taskManager . removeTemporarySession ( tempId ) ;
774769 // Update dashboard to remove the temporary session
@@ -842,47 +837,6 @@ export class DashboardWebviewProvider extends WebviewBase {
842837 }
843838 }
844839
845-
846-
847-
848- private async startCopilotTask ( taskDescription : string , referencedIssues : number [ ] , issueContext : IssueData [ ] ) : Promise < void > {
849- if ( ! taskDescription ) {
850- return ;
851- }
852-
853- try {
854- // Build the enhanced query with issue context
855- let enhancedQuery = `${ taskDescription } ` ;
856-
857- if ( issueContext && issueContext . length > 0 ) {
858- enhancedQuery += `\n\nReferenced Issues: \n` ;
859- for ( const issue of issueContext ) {
860- enhancedQuery += `- Issue #${ issue . number } : ${ issue . title } \n` ;
861- enhancedQuery += ` URL: ${ issue . url } \n` ;
862- if ( issue . assignee ) {
863- enhancedQuery += ` Assignee: ${ issue . assignee } \n` ;
864- }
865- if ( issue . milestone ) {
866- enhancedQuery += ` Milestone: ${ issue . milestone } \n` ;
867- }
868- enhancedQuery += ` State: ${ issue . state } \n` ;
869- enhancedQuery += ` Updated: ${ issue . updatedAt } \n\n` ;
870- }
871- }
872-
873- // Start a new copilot session with the enhanced context
874- await vscode . commands . executeCommand ( 'workbench.action.chat.open' , { query : enhancedQuery } ) ;
875-
876- // Optionally refresh the dashboard to show any new sessions
877- setTimeout ( ( ) => {
878- this . updateDashboard ( ) ;
879- } , 1000 ) ;
880- } catch ( error ) {
881- Logger . error ( `Failed to start copilot task: ${ error } ` , DashboardWebviewProvider . ID ) ;
882- vscode . window . showErrorMessage ( 'Failed to start copilot task. Make sure the Chat extension is available.' ) ;
883- }
884- }
885-
886840 private async checkoutPullRequestBranch ( pullRequest : { number : number ; title : string ; url : string } ) : Promise < void > {
887841 if ( ! pullRequest ) {
888842 return ;
@@ -963,10 +917,6 @@ export class DashboardWebviewProvider extends WebviewBase {
963917 }
964918
965919 private async openSession ( sessionId : string ) : Promise < void > {
966- if ( ! sessionId ) {
967- return ;
968- }
969-
970920 try {
971921 // Open the chat session
972922 await vscode . window . showChatSession ( 'copilot-swe-agent' , sessionId , { } ) ;
@@ -1076,36 +1026,21 @@ export class DashboardWebviewProvider extends WebviewBase {
10761026 }
10771027 }
10781028
1079-
1080- /**
1081- * Determines if a query represents a coding task vs a general question using VS Code's Language Model API
1082- */
10831029 private async isCodingTask ( query : string ) : Promise < boolean > {
10841030 return this . _taskManager . isCodingTask ( query ) ;
10851031 }
10861032
1087- /**
1088- * Fallback keyword-based classification when LM API is unavailable
1089- */
1090- /**
1091- * Shows a quick pick to let user choose between local and remote work
1092- */
10931033 private async showWorkModeQuickPick ( ) : Promise < 'local' | 'remote' | undefined > {
10941034 return this . _taskManager . showWorkModeQuickPick ( ) ;
10951035 }
10961036
1097- /**
1098- * Sets up local workflow: creates branch and opens chat with agent mode
1099- */
11001037 private async setupLocalWorkflow ( query : string ) : Promise < void > {
11011038 await this . _taskManager . setupNewLocalWorkflow ( query ) ;
11021039 }
11031040
1104- /**
1105- * Creates a remote background session using the copilot remote agent
1106- */
11071041 private async createRemoteBackgroundSession ( query : string ) : Promise < void > {
11081042 await this . _taskManager . createRemoteBackgroundSession ( query ) ;
1043+
11091044 // Refresh the dashboard to show the new session
11101045 setTimeout ( ( ) => {
11111046 this . updateDashboard ( ) ;
0 commit comments