惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
U
Unit 42
IT之家
IT之家
Y
Y Combinator Blog
T
Tailwind CSS Blog
B
Blog
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
Jina AI
Jina AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
I
InfoQ
J
Java Code Geeks
F
Fortinet All Blogs
T
The Blog of Author Tim Ferriss
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
H
Hackread – Cybersecurity News, Data Breaches, AI and More
人人都是产品经理
人人都是产品经理
腾讯CDC
Hugging Face - Blog
Hugging Face - Blog
GbyAI
GbyAI
博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
L
LangChain Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(tasks): preserve requester agent attribution · opencl...
steipete · 2026-06-15 · via Recent Commits to openclaw:main

@@ -162,6 +162,7 @@ function toGatewayImageAttachments(

162162163163

export type SpawnAcpContext = {

164164

agentSessionKey?: string;

165+

requesterAgentIdOverride?: string;

165166

agentChannel?: string;

166167

agentAccountId?: string;

167168

agentTo?: string;

@@ -766,6 +767,7 @@ function prepareAcpThreadBinding(params: {

766767

function resolveAcpSpawnRequesterState(params: {

767768

cfg: OpenClawConfig;

768769

parentSessionKey?: string;

770+

requesterAgentId: string;

769771

targetAgentId: string;

770772

ctx: SpawnAcpContext;

771773

subagentStore?: SessionCapabilityStore;

@@ -784,8 +786,6 @@ function resolveAcpSpawnRequesterState(params: {

784786

typeof params.ctx.agentThreadId === "string"

785787

? Boolean(normalizeOptionalString(params.ctx.agentThreadId))

786788

: params.ctx.agentThreadId != null;

787-

const requesterAgentId = requesterParsedSession?.agentId;

788-789789

return {

790790

parentSessionKey: params.parentSessionKey,

791791

isSubagentSession,

@@ -796,17 +796,17 @@ function resolveAcpSpawnRequesterState(params: {

796796

sessionKey: params.parentSessionKey,

797797

}),

798798

heartbeatRelayRouteUsable:

799-

params.parentSessionKey && requesterAgentId

799+

params.parentSessionKey && params.requesterAgentId

800800

? hasSessionLocalHeartbeatRelayRoute({

801801

cfg: params.cfg,

802802

parentSessionKey: params.parentSessionKey,

803-

requesterAgentId,

803+

requesterAgentId: params.requesterAgentId,

804804

})

805805

: false,

806806

origin: resolveRequesterOriginForChild({

807807

cfg: params.cfg,

808808

targetAgentId: params.targetAgentId,

809-

requesterAgentId: normalizeAgentId(requesterAgentId),

809+

requesterAgentId: params.requesterAgentId,

810810

requesterChannel: params.ctx.agentChannel,

811811

requesterAccountId: params.ctx.agentAccountId,

812812

requesterTo: params.ctx.agentTo,

@@ -820,6 +820,7 @@ function resolveAcpSpawnRequesterState(params: {

820820

function resolveAcpSubagentEnvelopeState(params: {

821821

cfg: OpenClawConfig;

822822

requesterSessionKey?: string;

823+

requesterAgentId: string;

823824

targetAgentId: string;

824825

requestedAgentId?: string;

825826

subagentStore?: SessionCapabilityStore;

@@ -860,9 +861,8 @@ function resolveAcpSubagentEnvelopeState(params: {

860861

};

861862

}

862863863-

const requesterAgentId = normalizeAgentId(parseAgentSessionKey(requesterSessionKey)?.agentId);

864864

const requireAgentId =

865-

resolveAgentConfig(params.cfg, requesterAgentId)?.subagents?.requireAgentId ??

865+

resolveAgentConfig(params.cfg, params.requesterAgentId)?.subagents?.requireAgentId ??

866866

params.cfg.agents?.defaults?.subagents?.requireAgentId ??

867867

false;

868868

if (requireAgentId && !params.requestedAgentId?.trim()) {

@@ -873,11 +873,11 @@ function resolveAcpSubagentEnvelopeState(params: {

873873

}

874874875875

const targetPolicy = resolveSubagentTargetPolicy({

876-

requesterAgentId,

876+

requesterAgentId: params.requesterAgentId,

877877

targetAgentId: params.targetAgentId,

878878

requestedAgentId: params.requestedAgentId,

879879

allowAgents:

880-

resolveAgentConfig(params.cfg, requesterAgentId)?.subagents?.allowAgents ??

880+

resolveAgentConfig(params.cfg, params.requesterAgentId)?.subagents?.allowAgents ??

881881

params.cfg.agents?.defaults?.subagents?.allowAgents,

882882

configuredAgentIds: resolveConfiguredAcpSubagentTargetIds(params.cfg),

883883

});

@@ -1275,6 +1275,9 @@ export async function spawnAcpDirect(

12751275

cfg,

12761276

requesterSessionKey: ctx.agentSessionKey,

12771277

});

1278+

const requesterAgentId = normalizeAgentId(

1279+

ctx.requesterAgentIdOverride ?? parseAgentSessionKey(requesterInternalKey)?.agentId,

1280+

);

12781281

if (!isAcpEnabledByPolicy(cfg)) {

12791282

return createAcpSpawnFailure({

12801283

status: "forbidden",

@@ -1370,13 +1373,15 @@ export async function spawnAcpDirect(

13701373

const requesterState = resolveAcpSpawnRequesterState({

13711374

cfg,

13721375

parentSessionKey,

1376+

requesterAgentId,

13731377

targetAgentId,

13741378

ctx,

13751379

subagentStore,

13761380

});

13771381

const subagentEnvelopeState = resolveAcpSubagentEnvelopeState({

13781382

cfg,

13791383

requesterSessionKey: requesterInternalKey,

1384+

requesterAgentId,

13801385

targetAgentId,

13811386

requestedAgentId: params.agentId,

13821387

subagentStore,

@@ -1636,6 +1641,8 @@ export async function spawnAcpDirect(

16361641

scopeKind: "session",

16371642

requesterOrigin: requesterState.origin,

16381643

childSessionKey: sessionKey,

1644+

agentId: targetAgentId,

1645+

requesterAgentId,

16391646

runId: childRunId,

16401647

label: params.label,

16411648

task: params.task,

@@ -1675,6 +1682,8 @@ export async function spawnAcpDirect(

16751682

scopeKind: "session",

16761683

requesterOrigin: requesterState.origin,

16771684

childSessionKey: sessionKey,

1685+

agentId: targetAgentId,

1686+

requesterAgentId,

16781687

runId: childRunId,

16791688

label: params.label,

16801689

task: params.task,