mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 03:34:33 +00:00
fix(agent): forward resolved outbound session context for delivery
This commit is contained in:
@@ -59,6 +59,7 @@ import {
|
||||
emitAgentEvent,
|
||||
registerAgentRunContext,
|
||||
} from "../infra/agent-events.js";
|
||||
import { buildOutboundSessionContext } from "../infra/outbound/session-context.js";
|
||||
import { getRemoteSkillEligibility } from "../infra/skills-remote.js";
|
||||
import { normalizeAgentId } from "../routing/session-key.js";
|
||||
import { defaultRuntime, type RuntimeEnv } from "../runtime.js";
|
||||
@@ -316,6 +317,11 @@ export async function agentCommand(
|
||||
sessionKey: sessionKey ?? opts.sessionKey?.trim(),
|
||||
config: cfg,
|
||||
});
|
||||
const outboundSession = buildOutboundSessionContext({
|
||||
cfg,
|
||||
agentId: sessionAgentId,
|
||||
sessionKey,
|
||||
});
|
||||
const workspaceDirRaw = resolveAgentWorkspaceDir(cfg, sessionAgentId);
|
||||
const agentDir = resolveAgentDir(cfg, sessionAgentId);
|
||||
const workspace = await ensureAgentWorkspace({
|
||||
@@ -461,6 +467,7 @@ export async function agentCommand(
|
||||
deps,
|
||||
runtime,
|
||||
opts,
|
||||
outboundSession,
|
||||
sessionEntry,
|
||||
result,
|
||||
payloads,
|
||||
@@ -809,6 +816,7 @@ export async function agentCommand(
|
||||
deps,
|
||||
runtime,
|
||||
opts,
|
||||
outboundSession,
|
||||
sessionEntry,
|
||||
result,
|
||||
payloads,
|
||||
|
||||
Reference in New Issue
Block a user