Skip to content

Commit 7d23c93

Browse files
committed
Full implementation
1 parent d70a703 commit 7d23c93

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/vs/workbench/contrib/chat/browser/actions/chatActions.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ export function registerChatActions() {
501501
}
502502

503503
interface ICodingAgentPickerItem extends IChatPickerItem {
504-
handle: number;
504+
uri?: URI;
505505
}
506506

507507
const getPicks = async (showAllChats: boolean = false, showAllAgents: boolean = false) => {
@@ -574,11 +574,11 @@ export function registerChatActions() {
574574
lastMessageDate: 0,
575575
},
576576
buttons: [],
577-
handle: 0 // Default handle
577+
uri: sessionContent.uri
578578
};
579579

580580
// Check if this agent already exists (update existing or add new)
581-
const existingIndex = agentPicks.findIndex(pick => pick.chat.sessionId === sessionContent.uri.toString());
581+
const existingIndex = agentPicks.findIndex(pick => pick.chat.sessionId === sessionContent.uri.path);
582582
if (existingIndex >= 0) {
583583
agentPicks[existingIndex] = agentPick;
584584
} else {
@@ -613,7 +613,7 @@ export function registerChatActions() {
613613
lastMessageDate: 0,
614614
},
615615
buttons: [],
616-
handle: -1 // Special handle for "show more" option
616+
uri: undefined,
617617
});
618618
}
619619
}
@@ -755,7 +755,7 @@ export function registerChatActions() {
755755
true
756756
);
757757
return;
758-
} else if ((item as ICodingAgentPickerItem).handle !== undefined) {
758+
} else if ((item as ICodingAgentPickerItem).uri !== undefined) {
759759
// TODO: handle click
760760
return;
761761
}

0 commit comments

Comments
 (0)