mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-27 00:14:22 +00:00
chore
This commit is contained in:
parent
b22fda4d18
commit
0b243a18eb
2 changed files with 6 additions and 5 deletions
|
|
@ -333,14 +333,15 @@ export function TaskCard({
|
|||
if (task.agent) {
|
||||
// Switch to the chatStore that owns this task card (for multi-turn conversations)
|
||||
if (chatId && projectStore.activeProjectId) {
|
||||
const activeProjectId = projectStore.activeProjectId;
|
||||
const activeChatStore = projectStore.getActiveChatStore();
|
||||
const currentChatId = activeChatStore ? Object.keys(projectStore.projects[projectStore.activeProjectId].chatStores).find(
|
||||
id => projectStore.projects[projectStore.activeProjectId].chatStores[id] === activeChatStore
|
||||
const currentChatId = activeChatStore ? Object.keys(projectStore.projects[activeProjectId].chatStores).find(
|
||||
id => projectStore.projects[activeProjectId].chatStores[id] === activeChatStore
|
||||
) : null;
|
||||
|
||||
|
||||
// Only switch if this is a different chat
|
||||
if (currentChatId !== chatId) {
|
||||
projectStore.setActiveChatStore(projectStore.activeProjectId, chatId);
|
||||
projectStore.setActiveChatStore(activeProjectId, chatId);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -272,7 +272,7 @@ export default function Browser() {
|
|||
</Button>
|
||||
{cookieDomains.length > 0 && (
|
||||
<Button
|
||||
variant="destructive"
|
||||
variant="warning"
|
||||
size="sm"
|
||||
onClick={handleDeleteAll}
|
||||
disabled={deletingAll}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue