Skip to content

Commit

Permalink
make sure hold a session-long reference to untitled documents (micros…
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken authored Apr 22, 2024
1 parent ba65916 commit 3219381
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -527,10 +527,17 @@ export class InlineChatSessionServiceImpl implements IInlineChatSessionService {
e.request.id,
e.request.response
);

}
}

session.addExchange(new SessionExchange(session.lastInput!, inlineResponse));

if (inlineResponse instanceof ReplyResponse && inlineResponse.untitledTextModel) {
this._textModelService.createModelReference(inlineResponse.untitledTextModel.resource).then(ref => {
store.add(ref);
});
}
});
}));

Expand Down

0 comments on commit 3219381

Please sign in to comment.