Skip to content

Commit 047dc77

Browse files
committed
Merge remote-tracking branch 'origin/main' into fix/doctor-device-identity-quarantine
2 parents 9f4c8dd + db53379 commit 047dc77

175 files changed

Lines changed: 4354 additions & 1592 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.

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ Docs: https://docs.openclaw.ai
6969

7070
### Fixes
7171

72+
- **Onboarding provider hook loading:** scope selected-model hook fallback to the chosen provider so metadata-only setup providers do not load unrelated plugins before configuration completes. Fixes #126408. Thanks @shakkernerd.
7273
- **Plugin setup diagnostics:** stop treating metadata-only provider setup descriptors as missing runtime registrations while retaining undeclared runtime and CLI drift warnings. Fixes #125506. Thanks @shakkernerd.
7374
- **Onboarding model browsing:** keep preferred-provider model discovery scoped to the selected provider, preserve route variants, and avoid loading unrelated provider setup surfaces. Fixes #125363. Thanks @shakkernerd.
7475
- **Codex subagent fan-out:** settle successful terminal yields immediately and preserve requester ownership so completed children reliably resume their parent.

‎docs/gateway/config-agents.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ Periodic heartbeat runs.
576576

577577
### `agents.defaults.systemAgent`
578578

579-
Selects the agent whose model and credentials own ambient OpenClaw system-agent and Custodian consults. It is also the fallback owner when `models.list`, `models.authStatus`, `skills.status`, or `doctor.memory.status` omits `agentId`:
579+
Selects the agent whose model and credentials own ambient OpenClaw system work: system-agent and Custodian consults, and the fallback owner whenever an ambient path omits `agentId`. That includes `models.list`, `models.authStatus`, `skills.status`, and `doctor.memory.status`, the default agent directory and workspace behind auth, model-catalog, and doctor resolution, outbound channel bootstrap and queued-delivery recovery, unscoped main-session routing, Talk relay ownership, and first-run onboarding:
580580

581581
```json5
582582
{
@@ -588,7 +588,7 @@ Selects the agent whose model and credentials own ambient OpenClaw system-agent
588588
}
589589
```
590590

591-
An explicit request `agentId` always wins. Other agent-scoped methods do not use this setting as a general default. Delegated consults with a requesting agent keep that requester as their owner. When `systemAgent.agentId` is absent, a sole configured agent resolves implicitly; the four reads above and ambient consults in a multi-agent fleet fail with an actionable error. Upgrade-only ownership lives at `agents.defaults.authInheritance.agentId` for inherited credentials and `agents.defaults.sessionStore.agentId` for retired `main` session rows or unscoped rows in a fixed `session.store`.
591+
An explicit request `agentId` always wins. Delegated consults with a requesting agent keep that requester as their owner. The four reads above opt in individually; other agent-scoped Gateway methods, such as `tools.*`, `commands.*`, chat history, and session-catalog reads, do not use this setting as a general default. Surfaces that pick one agent's view also keep requiring an explicit choice, because silently adopting this owner would hide the other agents: `openclaw sessions` (add `--agent <id>` or `--all-agents`), `openclaw hooks` status, `openclaw models`, stored session lookup by id, and TUI startup. When `systemAgent.agentId` is absent, a sole configured agent resolves implicitly; ambient work in a multi-agent fleet then fails with an actionable error, except queued-delivery recovery, which records the failing delivery and keeps draining the rest of the queue. Upgrade-only ownership lives at `agents.defaults.authInheritance.agentId` for inherited credentials and `agents.defaults.sessionStore.agentId` for retired `main` session rows or unscoped rows in a fixed `session.store`.
592592

593593
### `agents.defaults.compaction`
594594

‎docs/nodes/index.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -507,9 +507,9 @@ setting, then restart the node host. Update-required hosts must be upgraded and
507507
restarted before selection.
508508

509509
When a known session host disconnects, its paired-device record preserves only
510-
the last accepted current-v5 hosting consent. The offline row remains visible
511-
and disabled with status unavailable. A current disabled or empty v5
512-
publication records false; older v1-v4 and update-required dialects do not
510+
the last accepted current-v6 hosting consent. The offline row remains visible
511+
and disabled with status unavailable. A current disabled or empty v6
512+
publication records false; older v1-v5 and update-required dialects do not
513513
overwrite the last current fact. Connected inventory always wins over stored
514514
history, a missing stored value means false, and exact worker slots are never
515515
persisted or shown as offline capacity.

‎docs/plan/runners.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,9 @@ speak. Additions:
390390
…", and the legacy/unclean-exit fallback "Last seen …". Connected rows stay
391391
silent. This adds no config, event, or SQLite schema-version surface.
392392
- **Offline host identity is producer-owned.** After accepting the current
393-
generation's current v5 runner inventory, the paired-node transaction
393+
generation's current v6 runner inventory, the paired-node transaction
394394
records its exact `workerHost.enabled` consent. An explicit disabled or
395-
empty current publication records false; legacy v1-v4 and update-required
395+
empty current publication records false; legacy v1-v5 and update-required
396396
dialects never overwrite the last current fact. Live inventory remains
397397
authoritative while connected. Offline catalog rows use the stored boolean,
398398
missing means false, and exact worker slots are never persisted. This adds

‎extensions/codex/src/app-server/transcript-mirror.test.ts‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,23 @@ async function makeRoot(prefix: string): Promise<string> {
7676
}
7777

7878
describe("buildCodexUserPromptMessage", () => {
79+
it("uses transcriptPrompt when an embedded caller does not provide a recorder", () => {
80+
const message = buildCodexUserPromptMessage({
81+
prompt:
82+
"[Audible call-opening context]\nAssistant: Welcome.\n[End audible call-opening context]\n\nCurrent caller message:\nHello",
83+
transcriptPrompt: "Hello",
84+
messageProvider: "voice",
85+
inputProvenance: { kind: "external_user", sourceChannel: "voice" },
86+
} as unknown as Parameters<typeof buildCodexUserPromptMessage>[0]);
87+
88+
expect(message).toMatchObject({
89+
role: "user",
90+
content: "Hello",
91+
sourceChannel: "voice",
92+
provenance: { kind: "external_user", sourceChannel: "voice" },
93+
});
94+
});
95+
7996
it("uses the prepared user transcript message for app-server prompt mirrors", () => {
8097
const message = buildCodexUserPromptMessage({
8198
prompt: "[Mon 2026-05-25 19:14 GMT+1] What is in this image?",

‎extensions/codex/src/app-server/user-prompt-message.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function buildFromPrepared(
4747
return {
4848
role: "user",
4949
...metadata,
50-
...(preparedUserMessage ?? { content: params.prompt }),
50+
...(preparedUserMessage ?? { content: params.transcriptPrompt ?? params.prompt }),
5151
} as AgentMessage;
5252
}
5353

‎extensions/qa-lab/src/character-eval.test.ts‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ async function makeSuiteResult(params: {
9797
resultStatus?: "pass" | "fail";
9898
summaryStatus?: "pass" | "fail";
9999
summaryFailedCount?: number;
100+
runStatus?: "running" | "completed";
100101
}) {
101102
const resultStatus = params.resultStatus ?? "pass";
102103
const summaryStatus = params.summaryStatus ?? resultStatus;
@@ -107,6 +108,7 @@ async function makeSuiteResult(params: {
107108
summaryPath,
108109
`${JSON.stringify(
109110
{
111+
run: { status: params.runStatus ?? "completed" },
110112
counts: {
111113
total: 1,
112114
passed: summaryFailedCount > 0 ? 0 : 1,
@@ -614,6 +616,30 @@ describe("runQaCharacterEval", () => {
614616
expect(result.runs[0]?.error).toBeUndefined();
615617
});
616618

619+
it("rejects a candidate whose suite summary is still running", async () => {
620+
const model = "openai/gpt-5.6-luna";
621+
const result = await runQaCharacterEval({
622+
repoRoot: tempRoot,
623+
outputDir: path.join(tempRoot, "character"),
624+
models: [model],
625+
judgeModels: [model],
626+
runSuite: async (params) =>
627+
makeSuiteResult({
628+
outputDir: params.outputDir,
629+
model,
630+
transcript: "USER Alice: hi\n\nASSISTANT openclaw: partial reply",
631+
runStatus: "running",
632+
}),
633+
runJudge: makeRunJudge([{ model, rank: 1, score: 0.5, summary: "failed" }]),
634+
});
635+
636+
expect(result.runs[0]).toMatchObject({
637+
model,
638+
status: "fail",
639+
error: expect.stringContaining("still running"),
640+
});
641+
});
642+
617643
it.each([
618644
{ description: "user-only conversation", transcript: "USER Alice: hello?" },
619645
{ description: "report-only fallback", transcript: "# Character scenario report" },

0 commit comments

Comments
 (0)