🤯 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
chore: clean up LOBE-xx comment (2026-05-24) (#15158)
Arvin Xu63d8e07453bd
diff --git a/src/server/modules/AgentRuntime/RuntimeExecutors.ts b/src/server/modules/AgentRuntime/RuntimeExecutors.tsindex fbfb14bc163..68fd2402ca4 100644--- a/src/server/modules/AgentRuntime/RuntimeExecutors.ts+++ b/src/server/modules/AgentRuntime/RuntimeExecutors.ts@@ -277,7 +277,11 @@ export interface RuntimeExecutorContext {* AgentRuntimeService so the trace recorder can pick CE data up* out-of-band, keeping the heavy CE payload (agentDocuments, systemRole, …)* out of the `events` array and therefore out of the Redis state pipeline.- * See LOBE-9110.+ *+ * Context: agent-runtime state blob was hitting Upstash Redis 10MB limit+ * because contextEngine.input (agentDocuments full inline) accounted for+ * ~83% of each step. Routing CE through this callback keeps the heavy+ * payload in trace only, reducing per-step Redis state from ~3.4MB to ~6KB.*/tracingContextEngine?: (input: unknown, output: unknown) => void;userId?: string;diff --git a/src/server/services/agentRuntime/AgentRuntimeService.ts b/src/server/services/agentRuntime/AgentRuntimeService.tsindex 2f288f92caa..8c1c67fc791 100644--- a/src/server/services/agentRuntime/AgentRuntimeService.ts+++ b/src/server/services/agentRuntime/AgentRuntimeService.ts@@ -676,7 +676,10 @@ export class AgentRuntimeService {// consumed by traceRecorder.appendStep below. Routing CE this way keeps// its heavy payload (agentDocuments, systemRole, …) out of// `stepResult.events` and therefore out of the Redis state pipeline.- // See LOBE-9110.+ //+ // Context: contextEngine.input (agentDocuments) was ~2.7MB/step,+ // hitting Upstash Redis 10MB limit. Bypassing events keeps the heavy+ // payload in trace only, reducing per-step Redis state by ~500x.let contextEnginePayload: { input: unknown; output: unknown } | undefined;// Create Agent and Runtime instancesdiff --git a/src/server/services/agentRuntime/OperationTraceRecorder.ts b/src/server/services/agentRuntime/OperationTraceRecorder.tsindex d8e2394b3dc..32b873e883d 100644--- a/src/server/services/agentRuntime/OperationTraceRecorder.ts+++ b/src/server/services/agentRuntime/OperationTraceRecorder.ts@@ -19,7 +19,11 @@ export interface AppendStepParams {* Context engine input/output captured for this step. Delivered via* `RuntimeExecutorContext.tracingContextEngine` rather than through the* `events` array, so CE payloads (agentDocuments, systemRole, …) stay out- * of the Redis state pipeline. See LOBE-9110.+ * of the Redis state pipeline.+ *+ * Context: agent-runtime state blob was hitting Upstash Redis 10MB limit+ * because ~97% of each step payload was tracing-only fields. Routing CE+ * via tracingContextEngine keeps it in trace only, keeping Redis state lean.*/contextEngine?: { input?: unknown; output?: unknown };currentContext?: { payload?: unknown; phase?: string; stepContext?: unknown };