mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-14 03:30:19 +00:00
2461709de4
🐛 fix(desktop): market OAuth expiry no longer triggers LobeHub re-login modal When sandbox tools (Document Writing, Agent Browser) encountered a Market OAuth token expiry on desktop, the server threw UNAUTHORIZED which caused responseMeta to set X-Auth-Required: true, triggering the LobeHub cloud re-login modal instead of the Market OAuth dialog. - Add MARKET_AUTH_REQUIRED_MESSAGE sentinel to desktop-bridge - market.ts uses this message for Market auth TRPCErrors - responseMeta skips X-Auth-Required for Market auth errors - MarketAuthProvider on desktop now calls handleUnauthorized() when silent token refresh fails, correctly opening the Market OAuth flow Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>