🐛 fix: show plan limit upgrade UI on desktop builds#15628
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d91d65796f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## canary #15628 +/- ##
==========================================
+ Coverage 67.60% 67.63% +0.02%
==========================================
Files 3354 3360 +6
Lines 338490 339000 +510
Branches 29467 35357 +5890
==========================================
+ Hits 228846 229290 +444
- Misses 109453 109519 +66
Partials 191 191
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
@codex review latest code |
|
Codex Review: Didn't find any major issues. Delightful! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Desktop builds ship without the business override, so cloud billing errors (FreePlanLimit / SubscriptionPlanLimit / InsufficientBudgetForModel) fell through to the raw JSON error fallback. Add a lightweight PlanLimitCard that only reads the budget snapshot from the error body and links to the web plans page, plus migrate the small self-contained error views (DeprecatedModelError, QuotaLimitError, TraceIdError) so they render on desktop too. All gated behind enableBusinessFeatures; the business hook still takes precedence when installed.
- Deduplicate the retry-parent-message logic shared by QuotaLimitError, TraceIdError and ExceededContextWindowError into useRetryParentMessage, with a disabled state when no parent message exists. - Use the Plans enum from @lobechat/types instead of string literals in PlanLimitCard. - Replace hardcoded copy in TraceIdError with locale keys and use copyToClipboard from @lobehub/ui.
Every stream error gets a traceId injected by the chat executor, so the fallback previously swallowed the localized message of known errors like LocationNotSupportError. Gate it on error types without a dedicated localized message (runtime spec table + legacy response map).
ac7a300 to
15b8386
Compare
# 🚀 LobeHub Release (20260610) **Release Date:** June 10, 2026 **Since v2.2.2:** 131 merged PRs · 13 contributors > This weekly release strengthens agent collaboration across cloud, desktop, CLI, and workspace flows, with steadier runtime behavior and a broader foundation for workspace-scoped data. --- ## ✨ Highlights - **Agent execution across devices** — Unifies per-device working directories, project skill discovery, and sub-agent suspend/resume behavior across server, QStash, and device RPC flows. (#15543, #15566, #15481, #15620, #15591) - **Connector and sandbox platform** — Expands connector permissions, custom OAuth MCP connector onboarding, sandbox provider support, and user-uploaded file sync into cloud sandbox runs. (#15463, #15546, #15184, #15550) - **Desktop and CLI reliability** — Fixes desktop cold-start, auto-update, Windows build, CLI skill discovery, and `lh connect` agent dispatch paths. (#15547, #15525, #15527, #15562, #15632, #15634) - **Pages and sharing** — Refreshes topic sharing, improves Page Editor layout behavior, and routes Page Agent tool execution through the server-side editor path. (#15581, #15556, #15588, #15023, #15610) - **Model availability and provider updates** — Adds user-scoped LobeHub model availability, Claude Fable 5, Qwen thinking preservation, and MiniMax M3 updates. (#15590, #15639, #13494, #15376) --- ## 🏗️ Core Product & Architecture ### Agent Runtime & Heterogeneous Agents - Improves sub-agent lifecycle handling, including async suspend/resume, queue-mode QStash resume delivery, and blocking nested sub-agent calls. (#15481, #15620, #15575) - Stabilizes heterogeneous agent ingestion and streaming with raw stream dumps, per-turn usage, image forwarding on regenerate, and duplicate-text fixes. (#15602, #15577, #15592, #15585) - Adds execution-device and working-directory controls across device RPC, legacy defaults, and remote-spawned Claude Code sessions. (#15543, #15566, #15591, #15572) - Improves runtime diagnostics and compatibility, including Gemini multimodal output capture, abort stream semantics, and trace quality analysis. (#15535, #13677, #15508) --- ## 📱 Platforms, Integrations & UX ### Connectors, Sandbox & Tools - Ships API-level connector tool permissions, custom OAuth MCP connector onboarding, and connector-first runtime execution. (#15463, #15546) - Adds sandbox provider support, cloud sandbox file sync, and safer external URL file input handling with SSRF validation. (#15184, #15550, #12657) - Improves tool visibility and execution with pinned app-fixed tools, ANSI output rendering, gateway-tunneled MCP calls, and automatic headless tool runs. (#15509, #15516, #15469, #15492) ### Desktop, CLI & Web UX - Restores desktop startup and reload behavior, preserves IPC error causes, and keeps the tab bar new-tab action visible across routes. (#15547, #15597, #15638) - Fixes desktop update and build stability for browser quit guards, macOS update signing, and Windows Visual Studio detection. (#15525, #15527, #15562) - Shows the plan-limit upgrade UI on desktop builds. (#15628) - Adds the Agent Run delivery checker and fixes CLI device dispatch plus skill list/search output. (#15489, #15634, #15632) - Refreshes onboarding, auth source preservation, topic UI states, referral/Fable campaign copy, and chat-input control bar behavior. (#15629, #15544, #15573, #15614, #15616, #15617, #15622, #15643) --- ## 🔒 Security, Reliability & Rollout Notes - External URL file input now includes SSRF validation for safer Google file handling. (#12657) - Database workspace-scope migrations are part of this release; self-hosted operators should run the normal migration path before serving the updated app. (#15446, #15465, #15468, #15472) - The release branch was re-cut from `canary` and includes the latest `main` release-version commit so `v2.2.2` is the verified compare base. --- ## 👥 Contributors @ONLY-yours, @sxjeru, @hardy-one, @xujingli, @hezhijie0327, @Coooolfan, @arvinxx, @tjx666, @Innei, @rivertwilight, @rdmclin2, @cy948, @AmAzing129 **Full Changelog**: v2.2.2...release/weekly-20260610-recut-3
💻 Change Type
🔗 Related Issue
N/A
🔀 Description of Change
Desktop builds ship without the business override, so cloud billing errors (
FreePlanLimit/SubscriptionPlanLimit/InsufficientBudgetForModel) fell through to the raw JSON error fallback in the conversation view.PlanLimitCardthat only reads the budget snapshot from the error body (no live subscription state) and links to the web plans page viaBRANDING_URL.subscription, with a retry action.DeprecatedModelError,QuotaLimitError,TraceIdError) into the open-source tree and wire them intoErrorMessageExtra, including a trace-id fallback for unknown traceable errors.enableBusinessFeatures; theuseRenderBusinessChatErrorMessageExtrabusiness hook still takes precedence when installed, so web behavior is unchanged.All locale keys used already exist (
subscription/errornamespaces); no i18n additions needed.🧪 How to Test
Trigger a plan-limit error (e.g. exhaust free plan credits with the LobeHub provider) in a build without the business override (desktop): the conversation should show the upgrade card instead of the raw JSON error body.
📸 Screenshots / Videos