Skip to content

Commit

Permalink
chore(chat): pass pinned agent in frontend chat service
Browse files Browse the repository at this point in the history
  • Loading branch information
planger committed Feb 28, 2025
1 parent b2f4838 commit 3b6c068
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ai-chat/src/browser/frontend-chat-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ export class FrontendChatServiceImpl extends ChatServiceImpl {
return configuredDefaultChatAgent;
}

override createSession(location?: ChatAgentLocation, options?: SessionOptions): ChatSession {
const session = super.createSession(location, options);
override createSession(location?: ChatAgentLocation, options?: SessionOptions, pinnedAgent?: ChatAgent): ChatSession {
const session = super.createSession(location, options, pinnedAgent);
session.model.onDidChange(event => {
const changeSet = (event as { changeSet?: ChangeSet }).changeSet;
if (event.kind === 'removeChangeSet') {
Expand Down

0 comments on commit 3b6c068

Please sign in to comment.