Skip to content

Commit e1d7a15

Browse files
authored
🐛 Agents with no duplicate names will also display the renaming steps #2069
2 parents ae7066f + ac3cdac commit e1d7a15

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

backend/consts/const.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,10 @@ class VectorDatabaseType(str, Enum):
279279
LLM_SLOW_TOKEN_RATE_THRESHOLD = float(
280280
os.getenv("LLM_SLOW_TOKEN_RATE_THRESHOLD", "10.0")) # tokens per second
281281

282-
# APP Version
283-
APP_VERSION = "v1.7.7.1"
284282

285283
DEFAULT_ZH_TITLE = "新对话"
286284
DEFAULT_EN_TITLE = "New Conversation"
285+
286+
287+
# APP Version
288+
APP_VERSION = "v1.7.8"

frontend/components/agent/AgentImportWizard.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,12 @@ export default function AgentImportWizard({
827827
// Filter only required steps for navigation
828828
// Show rename step if name conflict check is complete and there are any agents that had conflicts
829829
// (even if all conflicts are now resolved, we still want to show the step so users can see the success state)
830-
const hasAnyAgentsWithConflicts = !checkingName && Object.keys(agentNameConflicts).length > 0;
830+
const hasAnyAgentsWithConflicts = !checkingName && (
831+
// Check if any agent has a current conflict
832+
Object.values(agentNameConflicts).some(conflict => conflict.hasConflict) ||
833+
// OR if any agent was successfully renamed (meaning it had a conflict that was resolved)
834+
successfullyRenamedAgents.size > 0
835+
);
831836
const steps = [
832837
hasAnyAgentsWithConflicts && {
833838
key: "rename",

0 commit comments

Comments
 (0)