fix(providers): surface friendly auth error messages (#3198)

This commit is contained in:
LC authored and GitHub committed 2026-06-30 17:42:07 +08:00
1 parent 52320f4875
commit 2cf030d2fd
8 files changed
+482 -15

No files matched your search

+1 -2
View File
@@ -6,7 +6,6 @@ import (
"context"
"encoding/json"
"errors"
"fmt"
"strings"
"time"
@@ -21,7 +20,7 @@ func (al *AgentLoop) maybePublishError(ctx context.Context, channel, chatID, ses
if errors.Is(err, context.Canceled) {
return false
}
al.PublishResponseIfNeeded(ctx, channel, chatID, sessionKey, fmt.Sprintf("Error processing message: %v", err))
al.PublishResponseIfNeeded(ctx, channel, chatID, sessionKey, formatProcessingError(err))
return true
}