feat: propagate conversation_id on all WebSocket events (#1328)

Co-authored-by: Letta Code <noreply@letta.com>
Co-authored-by: cpacker <packercharles@gmail.com>
This commit is contained in:
Shubham Naik
2026-03-10 15:28:05 -07:00
committed by GitHub
parent 95c0d8aefa
commit b12744a408
5 changed files with 238 additions and 4 deletions

View File

@@ -75,6 +75,10 @@ export interface MessageEnvelope {
uuid: string;
/** Monotonic per-session event sequence. Optional for backward compatibility. */
event_seq?: number;
/** Agent that triggered this event. Used with default conversation scoping. */
agent_id?: string;
/** Conversation that triggered this event. Used for conversation-scoped filtering. */
conversation_id?: string;
}
// ═══════════════════════════════════════════════════════════════
@@ -162,6 +166,8 @@ export type MessageWire = {
type: "message";
session_id: string;
uuid: string;
agent_id?: string;
conversation_id?: string;
} & LettaStreamingResponse;
// ═══════════════════════════════════════════════════════════════
@@ -422,6 +428,10 @@ export interface ControlRequest {
type: "control_request";
request_id: string;
request: ControlRequestBody;
/** Agent that triggered this control request. */
agent_id?: string;
/** Conversation that triggered this control request. */
conversation_id?: string;
}
// SDK → CLI request subtypes