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

推荐订阅源

量子位
博客园_首页
罗磊的独立博客
云风的 BLOG
云风的 BLOG
J
Java Code Geeks
Last Week in AI
Last Week in AI
D
DataBreaches.Net
Jina AI
Jina AI
博客园 - Franky
大猫的无限游戏
大猫的无限游戏
Apple Machine Learning Research
Apple Machine Learning Research
V
V2EX
D
Docker
MongoDB | Blog
MongoDB | Blog
B
Blog RSS Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
宝玉的分享
宝玉的分享
Engineering at Meta
Engineering at Meta
The Cloudflare Blog
博客园 - 三生石上(FineUI控件)
有赞技术团队
有赞技术团队
人人都是产品经理
人人都是产品经理
H
Help Net Security
T
The Blog of Author Tim Ferriss

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
[Feat] surface spawnedBy in chat and agent broadcast payl...
samzong · 2026-04-29 · via Recent Commits to openclaw:main

File tree

  • apps

    • macos/Sources/OpenClawProtocol

    • shared/OpenClawKit/Sources/OpenClawProtocol

  • src/gateway

    • protocol/schema

Original file line numberDiff line numberDiff line change

@@ -15,6 +15,7 @@ Docs: https://docs.openclaw.ai

1515

- Active Memory: return bounded partial recall summaries when the hidden memory sub-agent times out, including the default temporary-transcript path, so useful recovered context is not discarded. (#73219) Thanks @joeykrug.

1616

- Docker setup: add `OPENCLAW_SKIP_ONBOARDING` so automated Docker installs can skip the interactive onboarding step while still applying gateway defaults. (#55518) Thanks @jinjimz.

1717

- Gateway/memory: add a read-only `doctor.memory.remHarness` RPC so operator clients can preview bounded REM dreaming output without running mutation paths. (#66673) Thanks @samzong.

18+

- Gateway/events: surface `spawnedBy` on subagent chat and agent broadcast payloads so clients can route child session events without an extra session lookup. (#63244) Thanks @samzong.

1819
1920

### Fixes

2021
Original file line numberDiff line numberDiff line change

@@ -385,19 +385,22 @@ public struct AgentEvent: Codable, Sendable {

385385

public let seq: Int

386386

public let stream: String

387387

public let ts: Int

388+

public let spawnedby: String?

388389

public let data: [String: AnyCodable]

389390
390391

public init(

391392

runid: String,

392393

seq: Int,

393394

stream: String,

394395

ts: Int,

396+

spawnedby: String?,

395397

data: [String: AnyCodable])

396398

{

397399

self.runid = runid

398400

self.seq = seq

399401

self.stream = stream

400402

self.ts = ts

403+

self.spawnedby = spawnedby

401404

self.data = data

402405

}

403406

@@ -406,6 +409,7 @@ public struct AgentEvent: Codable, Sendable {

406409

case seq

407410

case stream

408411

case ts

412+

case spawnedby = "spawnedBy"

409413

case data

410414

}

411415

}

@@ -4753,6 +4757,7 @@ public struct ChatInjectParams: Codable, Sendable {

47534757

public struct ChatEvent: Codable, Sendable {

47544758

public let runid: String

47554759

public let sessionkey: String

4760+

public let spawnedby: String?

47564761

public let seq: Int

47574762

public let state: AnyCodable

47584763

public let message: AnyCodable?

@@ -4764,6 +4769,7 @@ public struct ChatEvent: Codable, Sendable {

47644769

public init(

47654770

runid: String,

47664771

sessionkey: String,

4772+

spawnedby: String?,

47674773

seq: Int,

47684774

state: AnyCodable,

47694775

message: AnyCodable?,

@@ -4774,6 +4780,7 @@ public struct ChatEvent: Codable, Sendable {

47744780

{

47754781

self.runid = runid

47764782

self.sessionkey = sessionkey

4783+

self.spawnedby = spawnedby

47774784

self.seq = seq

47784785

self.state = state

47794786

self.message = message

@@ -4786,6 +4793,7 @@ public struct ChatEvent: Codable, Sendable {

47864793

private enum CodingKeys: String, CodingKey {

47874794

case runid = "runId"

47884795

case sessionkey = "sessionKey"

4796+

case spawnedby = "spawnedBy"

47894797

case seq

47904798

case state

47914799

case message

Original file line numberDiff line numberDiff line change

@@ -385,19 +385,22 @@ public struct AgentEvent: Codable, Sendable {

385385

public let seq: Int

386386

public let stream: String

387387

public let ts: Int

388+

public let spawnedby: String?

388389

public let data: [String: AnyCodable]

389390
390391

public init(

391392

runid: String,

392393

seq: Int,

393394

stream: String,

394395

ts: Int,

396+

spawnedby: String?,

395397

data: [String: AnyCodable])

396398

{

397399

self.runid = runid

398400

self.seq = seq

399401

self.stream = stream

400402

self.ts = ts

403+

self.spawnedby = spawnedby

401404

self.data = data

402405

}

403406

@@ -406,6 +409,7 @@ public struct AgentEvent: Codable, Sendable {

406409

case seq

407410

case stream

408411

case ts

412+

case spawnedby = "spawnedBy"

409413

case data

410414

}

411415

}

@@ -4753,6 +4757,7 @@ public struct ChatInjectParams: Codable, Sendable {

47534757

public struct ChatEvent: Codable, Sendable {

47544758

public let runid: String

47554759

public let sessionkey: String

4760+

public let spawnedby: String?

47564761

public let seq: Int

47574762

public let state: AnyCodable

47584763

public let message: AnyCodable?

@@ -4764,6 +4769,7 @@ public struct ChatEvent: Codable, Sendable {

47644769

public init(

47654770

runid: String,

47664771

sessionkey: String,

4772+

spawnedby: String?,

47674773

seq: Int,

47684774

state: AnyCodable,

47694775

message: AnyCodable?,

@@ -4774,6 +4780,7 @@ public struct ChatEvent: Codable, Sendable {

47744780

{

47754781

self.runid = runid

47764782

self.sessionkey = sessionkey

4783+

self.spawnedby = spawnedby

47774784

self.seq = seq

47784785

self.state = state

47794786

self.message = message

@@ -4786,6 +4793,7 @@ public struct ChatEvent: Codable, Sendable {

47864793

private enum CodingKeys: String, CodingKey {

47874794

case runid = "runId"

47884795

case sessionkey = "sessionKey"

4796+

case spawnedby = "spawnedBy"

47894797

case seq

47904798

case state

47914799

case message

Original file line numberDiff line numberDiff line change

@@ -30,6 +30,7 @@ export const AgentEventSchema = Type.Object(

3030

seq: Type.Integer({ minimum: 0 }),

3131

stream: NonEmptyString,

3232

ts: Type.Integer({ minimum: 0 }),

33+

spawnedBy: Type.Optional(NonEmptyString),

3334

data: Type.Record(Type.String(), Type.Unknown()),

3435

},

3536

{ additionalProperties: false },

Original file line numberDiff line numberDiff line change

@@ -72,6 +72,7 @@ export const ChatEventSchema = Type.Object(

7272

{

7373

runId: NonEmptyString,

7474

sessionKey: NonEmptyString,

75+

spawnedBy: Type.Optional(NonEmptyString),

7576

seq: Type.Integer({ minimum: 0 }),

7677

state: Type.Union([

7778

Type.Literal("delta"),