Fix structured IPC envelope leakage

Normalize EJClaw structured send_message envelopes, preserve attachments, unwrap stored room payloads, and add regression tests.
This commit is contained in:
Eyejoker
2026-04-28 01:35:26 +09:00
committed by GitHub
parent 20e1a1e5e1
commit 8bb77ffaa3
11 changed files with 291 additions and 14 deletions

View File

@@ -3,6 +3,7 @@ import type { AssignRoomInput } from './db.js';
import type {
AgentType,
MessageSourceKind,
OutboundAttachment,
PairedTask,
RegisteredGroup,
RoomMode,
@@ -67,6 +68,7 @@ export interface IpcDeps {
text: string,
senderRole?: string,
runId?: string,
attachments?: OutboundAttachment[],
) => Promise<void>;
nudgeScheduler?: () => void;
roomBindings: () => Record<string, RegisteredGroup>;
@@ -100,6 +102,7 @@ export interface IpcMessagePayload {
timestamp?: string;
treatAsHuman?: boolean;
sourceKind?: MessageSourceKind;
attachments?: OutboundAttachment[];
}
export interface IpcMessageForwardResult {