mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 21:40:43 +00:00
fix: scope nested agent lanes per target session (#67785) (thanks @stainlu)
* fix(agents): scope nested lane per target session to stop cross-agent blocking * docs(agents): note per-session nested-lane lifecycle parity with session:* lanes * refactor(agents): distill nested lane helpers * fix: scope nested agent lanes per target session (#67785) (thanks @stainlu) --------- Co-authored-by: Ayaan Zaidi <hi@obviy.us>
This commit is contained in:
@@ -25,7 +25,7 @@ import {
|
||||
import type { OutboundSessionContext } from "../../infra/outbound/session-context.js";
|
||||
import type { RuntimeEnv } from "../../runtime.js";
|
||||
import { isInternalMessageChannel } from "../../utils/message-channel.js";
|
||||
import { AGENT_LANE_NESTED } from "../lanes.js";
|
||||
import { isNestedAgentLane } from "../lanes.js";
|
||||
import type { AgentCommandOpts } from "./types.js";
|
||||
|
||||
type RunResult = Awaited<ReturnType<(typeof import("../pi-embedded.js"))["runEmbeddedPiAgent"]>>;
|
||||
@@ -351,7 +351,7 @@ export async function deliverAgentCommandResult(params: {
|
||||
if (!output) {
|
||||
return;
|
||||
}
|
||||
if (opts.lane === AGENT_LANE_NESTED) {
|
||||
if (isNestedAgentLane(opts.lane)) {
|
||||
logNestedOutput(runtime, opts, output, effectiveSessionKey);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user