mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 23:59:45 +00:00
fix: narrow queryTokenHint guard to only auth-specific errors, remove overly broad connect failed check
This commit is contained in:
parent
39c721d382
commit
281ea15550
1 changed files with 1 additions and 4 deletions
|
|
@ -197,10 +197,7 @@ export function renderOverview(props: OverviewProps) {
|
|||
return null;
|
||||
}
|
||||
const lower = props.lastError.toLowerCase();
|
||||
const authFailed =
|
||||
lower.includes("unauthorized") ||
|
||||
lower.includes("connect failed") ||
|
||||
lower.includes("device identity required");
|
||||
const authFailed = lower.includes("unauthorized") || lower.includes("device identity required");
|
||||
if (!authFailed) {
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue