@@ -663,6 +663,7 @@ export interface ISerializableChatRequestData {
663
663
isHidden : boolean ;
664
664
responseId ?: string ;
665
665
agent ?: ISerializableChatAgentData ;
666
+ workingSet ?: UriComponents [ ] ;
666
667
slashCommand ?: IChatAgentCommand ;
667
668
// responseErrorDetails: IChatResponseErrorDetails | undefined;
668
669
result ?: IChatAgentResult ; // Optional for backcompat
@@ -1004,7 +1005,7 @@ export class ChatModel extends Disposable implements IChatModel {
1004
1005
1005
1006
// Old messages don't have variableData, or have it in the wrong (non-array) shape
1006
1007
const variableData : IChatRequestVariableData = this . reviveVariableData ( raw . variableData ) ;
1007
- const request = new ChatRequestModel ( this , parsedRequest , variableData , raw . timestamp ?? - 1 , undefined , undefined , undefined , undefined , undefined , undefined , raw . requestId ) ;
1008
+ const request = new ChatRequestModel ( this , parsedRequest , variableData , raw . timestamp ?? - 1 , undefined , undefined , undefined , undefined , raw . workingSet ?. map ( ( uri ) => URI . revive ( uri ) ) , undefined , raw . requestId ) ;
1008
1009
request . isHidden = ! ! raw . isHidden ;
1009
1010
if ( raw . response || raw . result || ( raw as any ) . responseErrorDetails ) {
1010
1011
const agent = ( raw . agent && 'metadata' in raw . agent ) ? // Check for the new format, ignore entries in the old format
@@ -1292,6 +1293,7 @@ export class ChatModel extends Disposable implements IChatModel {
1292
1293
vote : r . response ?. vote ,
1293
1294
voteDownReason : r . response ?. voteDownReason ,
1294
1295
agent : agentJson ,
1296
+ workingSet : r . workingSet ,
1295
1297
slashCommand : r . response ?. slashCommand ,
1296
1298
usedContext : r . response ?. usedContext ,
1297
1299
contentReferences : r . response ?. contentReferences ,
0 commit comments