Skip to content

Commit 6fe37cc

Browse files
authored
Merge pull request #2013 from ModelEngine-Group/xyq/bugfix
2 parents ef88e11 + b8ee04e commit 6fe37cc

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

backend/consts/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ class VectorDatabaseType(str, Enum):
279279
os.getenv("LLM_SLOW_TOKEN_RATE_THRESHOLD", "10.0")) # tokens per second
280280

281281
# APP Version
282-
APP_VERSION = "v1.7.7"
282+
APP_VERSION = "v1.7.7.1"
283283

284284
DEFAULT_ZH_TITLE = "新对话"
285285
DEFAULT_EN_TITLE = "New Conversation"

frontend/app/[locale]/agents/components/McpConfigModal.tsx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,17 +178,22 @@ export default function McpConfigModal({
178178
if (result.success) {
179179
await loadServerList(); // Reload list
180180

181-
// After successful deletion, refresh tools and agents asynchronously
182-
// This will update MCP tool availability and agent availability status
183-
await refreshToolsAndAgents();
184-
185-
// Show success message after refresh completes to avoid message overlap
181+
// Show success message immediately
186182
message.success(t("mcpService.message.deleteServerSuccess"));
183+
184+
// This will update MCP tool availability and agent availability status
185+
refreshToolsAndAgents().catch((error) => {
186+
log.error("Failed to refresh tools and agents after deletion:", error);
187+
});
187188
} else {
188189
message.error(result.message);
190+
// Throw error to prevent modal from closing
191+
throw new Error(result.message);
189192
}
190193
} catch (error) {
191194
message.error(t("mcpConfig.message.deleteServerFailed"));
195+
// Throw error to prevent modal from closing
196+
throw error;
192197
}
193198
},
194199
});

0 commit comments

Comments
 (0)