Skip to content

Commit 1294b7a

Browse files
authored
Merge branch 'main' into fix/fix-945
2 parents 89ae6ec + 934a32c commit 1294b7a

882 files changed

Lines changed: 27010 additions & 11878 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎apps/android/app/src/main/java/ai/openclaw/app/NodeRuntime.kt‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7809,9 +7809,11 @@ class NodeRuntime private constructor(
78097809
disconnectedSummary = GatewayDreamingSummary(),
78107810
failureText = nativeText("Could not load dreaming."),
78117811
) { gatewayScope ->
7812-
val statusResponse = requestGatewayData(gatewayScope, "doctor.memory.status", "{}")
7812+
val agentId = resolveActiveAgentId().takeIf { it.isNotEmpty() } ?: error("No active agent")
7813+
val paramsJson = buildJsonObject { put("agentId", JsonPrimitive(agentId)) }.toString()
7814+
val statusResponse = requestGatewayData(gatewayScope, "doctor.memory.status", paramsJson)
78137815
val statusRoot = json.parseToJsonElement(statusResponse).asObjectOrNull()
7814-
val diaryResponse = requestGatewayData(gatewayScope, "doctor.memory.dreamDiary", "{}")
7816+
val diaryResponse = requestGatewayData(gatewayScope, "doctor.memory.dreamDiary", paramsJson)
78157817
val diaryRoot = json.parseToJsonElement(diaryResponse).asObjectOrNull()
78167818
parseDreamingSummary(dreaming = statusRoot?.get("dreaming").asObjectOrNull(), diary = diaryRoot)
78177819
}

‎apps/ios/Sources/Design/AgentProTab+GatewayData.swift‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,14 @@ extension AgentProTab {
133133
async let presence = self.requestOptional([PresenceEntry].self, method: "system-presence")
134134
async let cronStatus = self.requestOptional(CronStatusLite.self, method: "cron.status")
135135
async let cronJobs = self.requestAllCronJobs()
136-
async let dreaming = self.requestOptional(DreamingStatusEnvelope.self, method: "doctor.memory.status")
137-
async let dreamDiary = self.requestOptional(DreamDiaryLite.self, method: "doctor.memory.dreamDiary")
136+
async let dreaming = self.requestOptional(
137+
DreamingStatusEnvelope.self,
138+
method: "doctor.memory.status",
139+
paramsJSON: skillsParams)
140+
async let dreamDiary = self.requestOptional(
141+
DreamDiaryLite.self,
142+
method: "doctor.memory.dreamDiary",
143+
paramsJSON: skillsParams)
138144
async let usage = self.requestOptional(
139145
CostUsageSummaryLite.self,
140146
method: "usage.cost",

‎apps/macos/Sources/OpenClaw/NodesStore.swift‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Observation
33
import OpenClawKit
44
import OSLog
55

6-
struct NodeInfo: Identifiable, Codable {
6+
struct NodeInfo: Identifiable, Decodable {
77
let nodeId: String
88
let displayName: String?
99
let platform: String?
@@ -32,7 +32,7 @@ struct NodeInfo: Identifiable, Codable {
3232
}
3333
}
3434

35-
private struct NodeListResponse: Codable {
35+
private struct NodeListResponse: Decodable {
3636
let ts: Double?
3737
let nodes: [NodeInfo]
3838
}

‎apps/macos/Tests/OpenClawIPCTests/LowCoverageHelperTests.swift‎

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -91,29 +91,6 @@ struct LowCoverageHelperTests {
9191
#expect(ContinuousClock.now - startedAt < .seconds(2))
9292
}
9393

94-
@Test func `node info codable round trip`() throws {
95-
let info = NodeInfo(
96-
nodeId: "node-1",
97-
displayName: "Node One",
98-
platform: "macOS",
99-
version: "1.0",
100-
coreVersion: "1.0-core",
101-
uiVersion: "1.0-ui",
102-
deviceFamily: "Mac",
103-
modelIdentifier: "MacBookPro",
104-
remoteIp: "192.168.1.2",
105-
caps: ["chat"],
106-
commands: ["send"],
107-
permissions: ["send": true],
108-
paired: true,
109-
connected: false)
110-
let data = try JSONEncoder().encode(info)
111-
let decoded = try JSONDecoder().decode(NodeInfo.self, from: data)
112-
#expect(decoded.nodeId == "node-1")
113-
#expect(decoded.isPaired == true)
114-
#expect(decoded.isConnected == false)
115-
}
116-
11794
@Test @MainActor func `presence reporter summary and privacy parameters`() {
11895
let summary = PresenceReporter._testComposePresenceSummary(mode: "local", reason: "test")
11996
#expect(summary.contains("mode local"))

‎apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift‎

Lines changed: 37 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ public struct BoardWidget: Codable, Sendable {
359359
public let sandboxurl: String?
360360
public let sandboxport: Int?
361361
public let sandboxorigin: String?
362+
public let kindlabel: String?
362363

363364
public init(
364365
name: String,
@@ -383,7 +384,8 @@ public struct BoardWidget: Codable, Sendable {
383384
viewgeneration: String? = nil,
384385
sandboxurl: String? = nil,
385386
sandboxport: Int? = nil,
386-
sandboxorigin: String? = nil)
387+
sandboxorigin: String? = nil,
388+
kindlabel: String? = nil)
387389
{
388390
self.name = name
389391
self.tabid = tabid
@@ -408,6 +410,7 @@ public struct BoardWidget: Codable, Sendable {
408410
self.sandboxurl = sandboxurl
409411
self.sandboxport = sandboxport
410412
self.sandboxorigin = sandboxorigin
413+
self.kindlabel = kindlabel
411414
}
412415

413416
private enum CodingKeys: String, CodingKey {
@@ -434,6 +437,7 @@ public struct BoardWidget: Codable, Sendable {
434437
case sandboxurl = "sandboxUrl"
435438
case sandboxport = "sandboxPort"
436439
case sandboxorigin = "sandboxOrigin"
440+
case kindlabel = "kindLabel"
437441
}
438442
}
439443

@@ -753,6 +757,28 @@ public struct BoardWidgetPluginContent: Codable, Sendable {
753757
}
754758
}
755759

760+
public struct BoardWidgetRegisteredContent: Codable, Sendable {
761+
public let kind: String
762+
public let contentkind: String
763+
public let source: String
764+
765+
public init(
766+
kind: String,
767+
contentkind: String,
768+
source: String)
769+
{
770+
self.kind = kind
771+
self.contentkind = contentkind
772+
self.source = source
773+
}
774+
775+
private enum CodingKeys: String, CodingKey {
776+
case kind
777+
case contentkind = "contentKind"
778+
case source
779+
}
780+
}
781+
756782
public struct BoardCanvasDocumentSource: Codable, Sendable {
757783
public let kind: String
758784
public let docid: String
@@ -6304,6 +6330,7 @@ public struct SessionRow: Codable, Sendable {
63046330
public let kind: AnyCodable
63056331
public let label: String?
63066332
public let icon: String?
6333+
public let channelavatarurl: String?
63076334
public let boardface: AnyCodable?
63086335
public let displayname: String?
63096336
public let derivedtitle: String?
@@ -6373,6 +6400,7 @@ public struct SessionRow: Codable, Sendable {
63736400
kind: AnyCodable,
63746401
label: String? = nil,
63756402
icon: String? = nil,
6403+
channelavatarurl: String? = nil,
63766404
boardface: AnyCodable? = nil,
63776405
displayname: String? = nil,
63786406
derivedtitle: String? = nil,
@@ -6441,6 +6469,7 @@ public struct SessionRow: Codable, Sendable {
64416469
self.kind = kind
64426470
self.label = label
64436471
self.icon = icon
6472+
self.channelavatarurl = channelavatarurl
64446473
self.boardface = boardface
64456474
self.displayname = displayname
64466475
self.derivedtitle = derivedtitle
@@ -6511,6 +6540,7 @@ public struct SessionRow: Codable, Sendable {
65116540
case kind
65126541
case label
65136542
case icon
6543+
case channelavatarurl = "channelAvatarUrl"
65146544
case boardface = "boardFace"
65156545
case displayname = "displayName"
65166546
case derivedtitle = "derivedTitle"
@@ -19823,7 +19853,6 @@ public struct ChatSendParams: Codable, Sendable {
1982319853
public let systemprovenancereceipt: String?
1982419854
public let suppresscommandinterpretation: Bool?
1982519855
public let expectedleafentryid: AnyCodable?
19826-
public let expectedrunid: String?
1982719856
public let expectedsessionroutingcontract: String?
1982819857
public let idempotencykey: String
1982919858

@@ -19849,7 +19878,6 @@ public struct ChatSendParams: Codable, Sendable {
1984919878
systemprovenancereceipt: String? = nil,
1985019879
suppresscommandinterpretation: Bool? = nil,
1985119880
expectedleafentryid: AnyCodable? = nil,
19852-
expectedrunid: String? = nil,
1985319881
expectedsessionroutingcontract: String? = nil,
1985419882
idempotencykey: String)
1985519883
{
@@ -19874,7 +19902,6 @@ public struct ChatSendParams: Codable, Sendable {
1987419902
self.systemprovenancereceipt = systemprovenancereceipt
1987519903
self.suppresscommandinterpretation = suppresscommandinterpretation
1987619904
self.expectedleafentryid = expectedleafentryid
19877-
self.expectedrunid = expectedrunid
1987819905
self.expectedsessionroutingcontract = expectedsessionroutingcontract
1987919906
self.idempotencykey = idempotencykey
1988019907
}
@@ -19900,7 +19927,6 @@ public struct ChatSendParams: Codable, Sendable {
1990019927
systemprovenancereceipt: String? = nil,
1990119928
suppresscommandinterpretation: Bool? = nil,
1990219929
expectedleafentryid: AnyCodable? = nil,
19903-
expectedrunid: String? = nil,
1990419930
expectedsessionroutingcontract: String? = nil,
1990519931
idempotencykey: String)
1990619932
{
@@ -19926,7 +19952,6 @@ public struct ChatSendParams: Codable, Sendable {
1992619952
systemprovenancereceipt: systemprovenancereceipt,
1992719953
suppresscommandinterpretation: suppresscommandinterpretation,
1992819954
expectedleafentryid: expectedleafentryid,
19929-
expectedrunid: expectedrunid,
1993019955
expectedsessionroutingcontract: expectedsessionroutingcontract,
1993119956
idempotencykey: idempotencykey)
1993219957
}
@@ -19953,7 +19978,6 @@ public struct ChatSendParams: Codable, Sendable {
1995319978
case systemprovenancereceipt = "systemProvenanceReceipt"
1995419979
case suppresscommandinterpretation = "suppressCommandInterpretation"
1995519980
case expectedleafentryid = "expectedLeafEntryId"
19956-
case expectedrunid = "expectedRunId"
1995719981
case expectedsessionroutingcontract = "expectedSessionRoutingContract"
1995819982
case idempotencykey = "idempotencyKey"
1995919983
}
@@ -20681,6 +20705,7 @@ public enum BoardWidgetContent: Codable, Sendable {
2068120705
case html(BoardWidgetHtmlContent)
2068220706
case mcpApp(BoardWidgetMcpAppContent)
2068320707
case plugin(BoardWidgetPluginContent)
20708+
case registered(BoardWidgetRegisteredContent)
2068420709

2068520710
private enum CodingKeys: String, CodingKey {
2068620711
case discriminator = "kind"
@@ -20693,6 +20718,7 @@ public enum BoardWidgetContent: Codable, Sendable {
2069320718
case "html": self = try .html(BoardWidgetHtmlContent(from: decoder))
2069420719
case "mcp-app": self = try .mcpApp(BoardWidgetMcpAppContent(from: decoder))
2069520720
case "plugin": self = try .plugin(BoardWidgetPluginContent(from: decoder))
20721+
case "registered": self = try .registered(BoardWidgetRegisteredContent(from: decoder))
2069620722
default:
2069720723
throw DecodingError.dataCorruptedError(
2069820724
forKey: .discriminator,
@@ -20707,6 +20733,7 @@ public enum BoardWidgetContent: Codable, Sendable {
2070720733
case .html(let value): try value.encode(to: encoder)
2070820734
case .mcpApp(let value): try value.encode(to: encoder)
2070920735
case .plugin(let value): try value.encode(to: encoder)
20736+
case .registered(let value): try value.encode(to: encoder)
2071020737
}
2071120738
}
2071220739
}
@@ -20715,6 +20742,7 @@ public enum BoardWidgetPutContent: Codable, Sendable {
2071520742
case html(BoardWidgetHtmlContent)
2071620743
case mcpApp(BoardWidgetMcpAppPutContent)
2071720744
case plugin(BoardWidgetPluginContent)
20745+
case registered(BoardWidgetRegisteredContent)
2071820746
case canvasDoc(BoardCanvasDocumentSource)
2071920747

2072020748
private enum CodingKeys: String, CodingKey {
@@ -20728,6 +20756,7 @@ public enum BoardWidgetPutContent: Codable, Sendable {
2072820756
case "html": self = try .html(BoardWidgetHtmlContent(from: decoder))
2072920757
case "mcp-app": self = try .mcpApp(BoardWidgetMcpAppPutContent(from: decoder))
2073020758
case "plugin": self = try .plugin(BoardWidgetPluginContent(from: decoder))
20759+
case "registered": self = try .registered(BoardWidgetRegisteredContent(from: decoder))
2073120760
case "canvas-doc": self = try .canvasDoc(BoardCanvasDocumentSource(from: decoder))
2073220761
default:
2073320762
throw DecodingError.dataCorruptedError(
@@ -20743,6 +20772,7 @@ public enum BoardWidgetPutContent: Codable, Sendable {
2074320772
case .html(let value): try value.encode(to: encoder)
2074420773
case .mcpApp(let value): try value.encode(to: encoder)
2074520774
case .plugin(let value): try value.encode(to: encoder)
20775+
case .registered(let value): try value.encode(to: encoder)
2074620776
case .canvasDoc(let value): try value.encode(to: encoder)
2074720777
}
2074820778
}

‎config/assertion-safety-baseline.txt‎

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ extensions/browser/src/browser-proxy-envelope.ts 8
5252
extensions/browser/src/browser-proxy-upload.ts 2
5353
extensions/browser/src/browser-tool-binding.ts 3
5454
extensions/browser/src/browser-tool-session-tabs.ts 3
55-
extensions/browser/src/browser-tool.actions.ts 17
55+
extensions/browser/src/browser-tool.actions.ts 14
5656
extensions/browser/src/browser-tool.snapshot.ts 2
5757
extensions/browser/src/browser-tool.ts 18
5858
extensions/browser/src/browser/bridge-server.ts 3
@@ -219,7 +219,7 @@ extensions/codex/src/app-server/remote-workspace-media.ts 6
219219
extensions/codex/src/app-server/request.ts 2
220220
extensions/codex/src/app-server/run-attempt-context.ts 2
221221
extensions/codex/src/app-server/run-attempt-prompt.ts 2
222-
extensions/codex/src/app-server/run-attempt-resources.ts 14
222+
extensions/codex/src/app-server/run-attempt-resources.ts 13
223223
extensions/codex/src/app-server/run-attempt-runtime.ts 1
224224
extensions/codex/src/app-server/run-attempt-server-requests.ts 2
225225
extensions/codex/src/app-server/run-attempt-tool-setup.ts 1
@@ -2012,7 +2012,6 @@ src/agents/run-timeout-attribution.ts 1
20122012
src/agents/run-wait.ts 8
20132013
src/agents/runtime-plan/build.ts 4
20142014
src/agents/runtime-plan/tools.ts 5
2015-
src/agents/runtime-plugins.ts 1
20162015
src/agents/runtime/proxy.ts 7
20172016
src/agents/sandbox-paths.ts 1
20182017
src/agents/sandbox-tool-policy.ts 1
@@ -2292,8 +2291,8 @@ src/auto-reply/tokens.ts 1
22922291
src/auto-reply/usage-bar/template.ts 1
22932292
src/auto-reply/usage-bar/translator.ts 4
22942293
src/boards/board-store.ts 1
2295-
src/boards/sqlite-board-codec.ts 9
2296-
src/boards/sqlite-board-store.ts 5
2294+
src/boards/sqlite-board-codec.ts 7
2295+
src/boards/sqlite-board-store.ts 3
22972296
src/bootstrap/node-extra-ca-certs.ts 2
22982297
src/bootstrap/node-startup-env.ts 1
22992298
src/canvas/documents.ts 2
@@ -2965,7 +2964,7 @@ src/gateway/server-broadcast.ts 2
29652964
src/gateway/server-channels.ts 1
29662965
src/gateway/server-chat-state.ts 1
29672966
src/gateway/server-chat.ts 5
2968-
src/gateway/server-close.ts 2
2967+
src/gateway/server-close.ts 1
29692968
src/gateway/server-core-runtime.ts 2
29702969
src/gateway/server-cron-reconciled.ts 1
29712970
src/gateway/server-cron.ts 5
@@ -3047,7 +3046,6 @@ src/gateway/server-methods/sessions-abort.ts 3
30473046
src/gateway/server-methods/sessions-archive-lifecycle.ts 3
30483047
src/gateway/server-methods/sessions-compact.ts 1
30493048
src/gateway/server-methods/sessions-create.ts 1
3050-
src/gateway/server-methods/sessions-dispatch.ts 1
30513049
src/gateway/server-methods/sessions-messaging.ts 11
30523050
src/gateway/server-methods/sessions-patch-engine.ts 1
30533051
src/gateway/server-methods/sessions-read.ts 2
@@ -4178,7 +4176,6 @@ ui/src/pages/chat/chat-progress.ts 2
41784176
ui/src/pages/chat/chat-queue.ts 1
41794177
ui/src/pages/chat/chat-realtime.ts 1
41804178
ui/src/pages/chat/chat-send-ack.ts 2
4181-
ui/src/pages/chat/chat-send-actions.ts 2
41824179
ui/src/pages/chat/chat-send-composer.ts 1
41834180
ui/src/pages/chat/chat-send-request.ts 1
41844181
ui/src/pages/chat/chat-send-timing.ts 6
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"startupJsGzipBytes": 344395,
3-
"reason": "Absorb accumulated startup creep from landed PRs to current main CI bytes (main red at 344395 B vs 343289 B baseline; run 32131816085)",
2+
"startupJsGzipBytes": 344429,
3+
"reason": "Channel conversation avatars (PR #125668): lead-slot render branch + row plumbing on top of the 344395 B main baseline; avatar element itself is code-split out of startup",
44
"updatedAt": "2026-08-18"
55
}

‎config/knip.config.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,7 @@ const config = {
708708
// Rolldown consumes this config and its browser bootstrap entry.
709709
"src/host/a2ui-app/rolldown.config.mjs!",
710710
"src/host/a2ui-app/bootstrap.js!",
711+
"src/host/a2ui-app/bootstrap-v0.9.js!",
711712
]),
712713
[`${BUNDLED_PLUGIN_ROOT_DIR}/cloudflare-ai-gateway`]: bundledPluginWorkspace(),
713714
[`${BUNDLED_PLUGIN_ROOT_DIR}/chutes`]: bundledPluginWorkspace(),

‎docs/automation/cron-jobs.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ Query-string tokens are rejected.
578578
Target agent. When supplied, it must name a configured agent. It is required when the configured agent fleet has no implicit or retained legacy owner.
579579
</ParamField>
580580
<ParamField path="sessionKey" type="string">
581-
Target session. Requires `hooks.allowRequestSessionKey: true` and must match `hooks.allowedSessionKeyPrefixes` when configured. Both wake modes can target an explicit session.
581+
Target session. Requires `mode: "now"` and `hooks.allowRequestSessionKey: true`, and must match `hooks.allowedSessionKeyPrefixes` when configured. Deferred `next-heartbeat` wakes use the agent's main session.
582582
</ParamField>
583583

584584
</Accordion>

‎docs/cli/agents.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ Options: `--json`, `--bindings` (include full routing rules, not only per-agent
4141

4242
Options: `--workspace <dir>`, `--model <id>`, `--agent-dir <dir>`, `--bind <channel[:accountId]>` (repeatable), `--non-interactive`, `--json`.
4343

44-
- Passing any explicit add flag switches the command into the non-interactive path.
45-
- Non-interactive mode requires both an agent name and `--workspace`.
46-
- `main` is reserved and cannot be used as the new agent id.
44+
- The automation flags `--workspace`, `--model`, `--agent-dir`, `--bind`, and `--non-interactive` select the non-interactive path. Non-interactive mode requires both an agent name and `--workspace`.
45+
- `--json` alone keeps the guided wizard interactive. Prompts and status are written to stderr, and stdout contains one JSON summary after setup completes.
46+
- `main` is an ordinary agent id. Recreating it after another agent owns the installation can require `openclaw doctor --fix` to repair legacy session or shared-auth ownership first.
4747
- Interactive mode seeds auth by copying only portable static credentials (`api_key` and static `token` profiles) unless a credential opts out with `copyToAgents: false`; OAuth refresh-token profiles are not copied unless a provider opts in with `copyToAgents: true`. Without a copy, OAuth stays available through the shared auth base. If the configured default agent has its own local OAuth profile, sign in separately for the new agent.
4848

4949
### `agents bindings`

0 commit comments

Comments
 (0)