Skip to content

🀯 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.

πŸ“ docs(device-gateway): remove stale implementation references (#18466)

AmAzing-ed2fb663dc6d
diff --git a/.agents/skills/project-overview/SKILL.md b/.agents/skills/project-overview/SKILL.md
index 9d1720db0ee..b8b8848cdf3 100644
--- a/.agents/skills/project-overview/SKILL.md
+++ b/.agents/skills/project-overview/SKILL.md
@@ -56,7 +56,6 @@ git submodules.
β”œβ”€β”€ apps/
β”‚ β”œβ”€β”€ cli/ # LobeHub CLI
β”‚ β”œβ”€β”€ desktop/ # Electron desktop app
-β”‚ β”œβ”€β”€ device-gateway/ # Device gateway service
β”‚ └── server/ # Next.js-backed server (`@/server/*` alias)
β”‚ └── src/
β”‚ β”œβ”€β”€ router-hono/ # Hono endpoint routers and standalone runtime
diff --git a/packages/database/src/schemas/device.ts b/packages/database/src/schemas/device.ts
index 33864befed4..62b7bfefe24 100644
--- a/packages/database/src/schemas/device.ts
+++ b/packages/database/src/schemas/device.ts
@@ -11,9 +11,9 @@ import { workspaces } from './workspace';
*
* `deviceId` is derived from a machine-level identifier
* (`sha256(machineUUID + userId + salt)`), so it survives LobeHub reinstalls
- * and desktop upgrades. Online status is NOT stored here β€” it lives in the
- * DeviceGatewayDO in-memory WS attachments; this table only records "ever
- * seen" so offline devices stay visible and bindable.
+ * and desktop upgrades. Online status is NOT stored here β€” it belongs to the
+ * device gateway's live connection state; this table only records "ever seen"
+ * so offline devices stay visible and bindable.
*/
export const devices = pgTable(
'devices',
diff --git a/packages/device-gateway-client/src/types.ts b/packages/device-gateway-client/src/types.ts
index 8dba8939192..6afbe9eb865 100644
--- a/packages/device-gateway-client/src/types.ts
+++ b/packages/device-gateway-client/src/types.ts
@@ -240,8 +240,8 @@ export interface AgentRunRequestMessage {
/**
* Full system context used only when native resume fails and the device CLI
* retries with a fresh session. Optional for compatibility with older
- * servers and devices. Self-hosted gateways must forward this optional field;
- * older gateways safely degrade to a fresh retry without recovery history.
+ * servers and devices. The gateway relay must preserve this optional field;
+ * older deployments safely degrade to a fresh retry without recovery history.
*/
resumeFallbackSystemContext?: string;
resumeSessionId?: string;