@@ -17,7 +17,6 @@ import { GitHubRemote } from '../common/remote';
1717import { CODING_AGENT , CODING_AGENT_AUTO_COMMIT_AND_PUSH } from '../common/settingKeys' ;
1818import { ITelemetry } from '../common/telemetry' ;
1919import { toOpenPullRequestWebviewUri } from '../common/uri' ;
20- import { dateFromNow } from '../common/utils' ;
2120import { copilotEventToSessionStatus , copilotPRStatusToSessionStatus , IAPISessionLogs , ICopilotRemoteAgentCommandArgs , ICopilotRemoteAgentCommandResponse , OctokitCommon , RemoteAgentResult , RepoInfo } from './common' ;
2221import { ChatSessionWithPR , CopilotApi , getCopilotApi , RemoteAgentJobPayload , SessionInfo , SessionSetupStep } from './copilotApi' ;
2322import { CopilotPRWatcher , CopilotStateModel } from './copilotPrWatcher' ;
@@ -750,14 +749,17 @@ export class CopilotRemoteAgentManager extends Disposable {
750749 const timeline = await session . getCopilotTimelineEvents ( session ) ;
751750 const status = copilotEventToSessionStatus ( mostRecentCopilotEvent ( timeline ) ) ;
752751 const tooltip = await issueMarkdown ( session , this . context , this . repositoriesManager ) ;
752+ const timestampNumber = new Date ( session . createdAt ) . getTime ( ) ;
753753 return {
754754 id : `${ session . number } ` ,
755755 label : session . title || `Session ${ session . number } ` ,
756756 iconPath : this . getIconForSession ( status ) ,
757- description : `${ dateFromNow ( session . createdAt ) } ` ,
758757 pullRequest : session ,
759758 tooltip,
760759 status,
760+ timing : {
761+ startTime : timestampNumber
762+ }
761763 } ;
762764 }
763765
@@ -777,17 +779,20 @@ export class CopilotRemoteAgentManager extends Disposable {
777779
778780 const codingAgentPRs = this . _stateModel . all ;
779781 return await Promise . all ( codingAgentPRs . map ( async prAndStatus => {
782+ const timestampNumber = new Date ( prAndStatus . item . createdAt ) . getTime ( ) ;
780783 const status = copilotPRStatusToSessionStatus ( prAndStatus . status ) ;
781784 const pullRequest = prAndStatus . item ;
782785 const tooltip = await issueMarkdown ( pullRequest , this . context , this . repositoriesManager ) ;
783786 return {
784787 id : `${ pullRequest . number } ` ,
785788 label : pullRequest . title || `Session ${ pullRequest . number } ` ,
786789 iconPath : this . getIconForSession ( status ) ,
787- description : `${ dateFromNow ( pullRequest . createdAt ) } ` ,
788790 pullRequest : pullRequest ,
789791 tooltip,
790792 status,
793+ timing : {
794+ startTime : timestampNumber
795+ }
791796 } ;
792797 } ) ) ;
793798 } catch ( error ) {
0 commit comments