修复agents历史记录跳转
This commit is contained in:
@@ -82,7 +82,7 @@ export const useTabState = (): UseTabStateReturn => {
|
||||
return existingTab.id;
|
||||
}
|
||||
|
||||
return addTab({
|
||||
const newTabId = addTab({
|
||||
type: 'agent',
|
||||
title: agentName,
|
||||
agentRunId,
|
||||
@@ -90,6 +90,7 @@ export const useTabState = (): UseTabStateReturn => {
|
||||
hasUnsavedChanges: false,
|
||||
icon: 'bot'
|
||||
});
|
||||
return newTabId;
|
||||
}, [addTab, tabs, setActiveTab]);
|
||||
|
||||
const createProjectsTab = useCallback((): string | null => {
|
||||
@@ -346,4 +347,4 @@ export const useTabState = (): UseTabStateReturn => {
|
||||
findTabByType,
|
||||
canAddTab
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user