π€― LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
id_prefix: compat verify: true skip_when: no UI theming/routing, no API contract, no deployment config, no data-scoping/permission logic, no runtime-branching code touched
Compatibility
The same change must work across every surface this product ships to. Authors (and reviewers) habitually validate only their own dev setup β typically cloud edition + web desktop + light mode + latest client + personal workspace β and every other cell of the matrix is where regressions hide.
The compatibility matrix
| Axis | Variants to hold in mind |
|---|---|
| Theme | light / dark (cssVar.* tokens handle both; hardcoded colors break one) |
| Platform | desktop app (Electron) / web desktop / web mobile / React Native |
| Client version | released desktop/mobile clients keep calling old endpoints after the server deploys |
| Agent runtime | client-side runtime vs server runtime (gateway enabled or not) |
| Deployment | Vercel (serverless: no local fs persistence, execution time limits) vs Docker (long-lived process) |
| Edition | open-source self-hosted (business slots return safe no-op defaults) vs cloud (commercial overrides active) |
| Tenancy | personal context (workspaceId === null) vs workspace context (workspace-scoped data, permissions, member sharing) |
| Tool mode | agent / chat / custom (pinned tools) / exclusive-tool or goal turns / legacy client tool engine / share visitor |
Quick checklist
- Hardcoded colors or light-only assets β break dark mode; use theme tokens
- New route/page registered in
src/spa/router/desktopRouter.config.tsxbut notdesktopRouter.config.desktop.tsx(or vice versa) β causes blank screens;desktopRouter.sync.test.tsxmust stay green - Mobile variant missing: page/feature added to desktop routes with no
(mobile)counterpart or responsive handling - Deleted/renamed TRPC procedure or webapi route still called by released clients β keep a compatibility alias; for deprecated write paths a side-effect-free noop is acceptable only when the old client treats that success shape as "nothing to do" and no user-visible state, billing, permission, or deletion is falsely reported complete; for meaningful operations return a stable business error (
PRECONDITION_FAILED/410 Gone) instead of blind success - Changed API input/output shape without versioning or optional-field fallback for older callers
- Logic assuming the agent runtime location (client vs server/gateway) β must branch or stay runtime-agnostic
- Serverless-hostile code: local file writes, in-memory state expected to survive requests, long-running work beyond function limits
- Workspace-blind logic: new data reads/writes, permission checks, or list scoping that silently assume the personal context β must respect the active workspace scope (
useActiveWorkspaceId/workspaceSlug) or be explicitly personal-only by design - Cloud-only assumption: logic that only works when a business slot has its cloud override β must still function against the slot's open-source no-op default (feature hidden or gracefully degraded, not broken)
- Renamed backend route paths (
src/app/(backend)/webapi/...) or auth surfaces (src/app/spa-auth/...,src/routes/auth/...), or changed@lobechat/business-*exports β downstream deployments override/extend these paths; flag so they can adapt - Prompt text that promises a tool ("call readX to continue", "use tool Y") decided apart from the final tool set β the tool may be missing in custom mode, exclusive-tool / goal turns, the legacy client tool engine, share-visitor allowlists, or models without function calling. Gate the promise on the final enabled tool ids that reach the model (e.g.
toolsConfig.toolsinMessagesEngine), not on the signal that enabled the tool, and require tests for both the tool-present and tool-absent prompt - Dependency major bumps (
next,drizzle-orm, ...) β downstream lockstep required; call out in the PR description
Rule sources (deep mode: read before reviewing)
.agents/skills/spa-routes/SKILL.mdβ router pair invariant, mobile/desktop variants.agents/skills/react/SKILL.mdβ theming/token rules- Git history of the old endpoint (
git log -pon the deleted route) before trusting that a procedure is unused β inspect what removed the caller and whether released clients predate it
How to check
- For each removed/renamed export, route, or procedure: search current code for callers, then check whether a released client (desktop/mobile/RN) could still call it β current-code absence is not proof.
- For UI changes: read the styles for hardcoded colors; check both router configs when routes change; look for the mobile counterpart.
- For server changes: scan for fs writes, timers, in-memory caches that assume process longevity.
- For data/permission logic: trace what happens when
workspaceIdisnull(personal / self-hosted) and when the involved business slots return their open-source defaults β both paths must stay sound.
Violations
- Any matrix axis where the change demonstrably breaks or silently degrades, introduced by this diff.
Not violations
- Axes the changed surface genuinely cannot reach (a server-only refactor does not need a dark-mode check).
- Breaking changes explicitly coordinated in the PR description (migration window, paired client release) β verify the coordination is stated, then leave a note-level finding at most.