mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 02:48:27 +00:00
fix: preserve inter-session input provenance (thanks @anbecker)
This commit is contained in:
@@ -24,6 +24,9 @@ export async function runAgentStep(params: {
|
||||
timeoutMs: number;
|
||||
channel?: string;
|
||||
lane?: string;
|
||||
sourceSessionKey?: string;
|
||||
sourceChannel?: string;
|
||||
sourceTool?: string;
|
||||
}): Promise<string | undefined> {
|
||||
const stepIdem = crypto.randomUUID();
|
||||
const response = await callGateway<{ runId?: string }>({
|
||||
@@ -36,6 +39,12 @@ export async function runAgentStep(params: {
|
||||
channel: params.channel ?? INTERNAL_MESSAGE_CHANNEL,
|
||||
lane: params.lane ?? AGENT_LANE_NESTED,
|
||||
extraSystemPrompt: params.extraSystemPrompt,
|
||||
inputProvenance: {
|
||||
kind: "inter_session",
|
||||
sourceSessionKey: params.sourceSessionKey,
|
||||
sourceChannel: params.sourceChannel,
|
||||
sourceTool: params.sourceTool ?? "sessions_send",
|
||||
},
|
||||
},
|
||||
timeoutMs: 10_000,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user