fix: propagate document indexing errors to caller

Previously indexing failures were silently logged, returning success
even when the embedding model was not configured or Qdrant was down.
Now the error is returned to the frontend so the user sees it.
This commit is contained in:
Aibo117
2026-05-26 14:33:13 +08:00
parent 6c0944d6f2
commit be91feea63
2 changed files with 3 additions and 3 deletions
@@ -267,7 +267,6 @@ function AgentEditDialogBody({
}
function onFormError(errors: object) {
console.error("Agent form validation errors:", errors)
const firstError = Object.values(errors).find(
(e: unknown) => (e as { message?: string })?.message
) as { message?: string } | undefined