Skip to content

Commit bf533f8

Browse files
joshp123codex
andcommitted
Merge origin/main into nix-store plugin hardlinks
Co-authored-by: Codex <[email protected]>
2 parents 7a8c089 + 7c31a9a commit bf533f8

30 files changed

Lines changed: 187 additions & 43 deletions

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,7 @@ Docs: https://docs.openclaw.ai
654654
- Agents/current-time: split UTC into a separate `Reference UTC:` prompt line so local `Current time:` stays anchored to the user's timezone. (#42654) Thanks @chencheng-li.
655655
- Agents/reasoning: keep embedded reasoning deltas raw for correct same-line streaming while preserving formatted Telegram, Feishu, Discord, and heartbeat delivery at the channel edge. (#78397) Thanks @medns.
656656
- Agents/failover: rotate auth profiles before deferred cooldown marking on rate-limit failures, so file-lock contention cannot stall profile failover. Fixes #57281. (#57283) Thanks @jeremyknows.
657+
- Gateway/sessions: when `session.dmScope: "main"` is configured, route a bare webchat `/new` against the agent's main session (`sessions.create` with `emitCommandHooks=true`) to an in-place reset instead of creating a parallel `dashboard:` child, matching `/new` behavior on Telegram/Discord. Fixes #77434. (#71170) Thanks @statxc.
657658

658659
## 2026.5.3-1
659660

‎docs/tools/slash-commands.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Current source-of-truth:
125125
<AccordionGroup>
126126
<Accordion title="Sessions and runs">
127127
- `/new [model]` starts a new session; `/reset` is the reset alias.
128-
- Control UI intercepts typed `/new` to create and switch to a fresh dashboard session; typed `/reset` still runs the Gateway's in-place reset.
128+
- Control UI intercepts typed `/new` to create and switch to a fresh dashboard session, except when `session.dmScope: "main"` is configured and the current parent is the agent's main session; in that case `/new` resets the main session in place. Typed `/reset` still runs the Gateway's in-place reset.
129129
- `/reset soft [message]` keeps the current transcript, drops reused CLI backend session ids, and reruns startup/system-prompt loading in-place.
130130
- `/compact [instructions]` compacts the session context. See [Compaction](/concepts/compaction).
131131
- `/stop` aborts the current run.

‎docs/web/control-ui.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Imported themes are stored only in the current browser profile. They are not wri
165165
- Consecutive duplicate text-only messages render as one bubble with a count badge. Messages that carry images, attachments, tool output, or canvas previews are left uncollapsed.
166166
- The chat header model and thinking pickers patch the active session immediately through `sessions.patch`; they are persistent session overrides, not one-turn-only send options.
167167
- If you send a message while a model picker change for the same session is still saving, the composer waits for that session patch before calling `chat.send` so the send uses the selected model.
168-
- Typing `/new` in the Control UI creates and switches to the same fresh dashboard session as New Chat. Typing `/reset` keeps the Gateway's explicit in-place reset for the current session.
168+
- Typing `/new` in the Control UI creates and switches to the same fresh dashboard session as New Chat, except when `session.dmScope: "main"` is configured and the current parent is the agent's main session; in that case it resets the main session in place. Typing `/reset` keeps the Gateway's explicit in-place reset for the current session.
169169
- The chat model picker requests the Gateway's configured model view. If `agents.defaults.models` is present, that allowlist drives the picker. Otherwise the picker shows explicit `models.providers.*.models` entries plus providers with usable auth. The full catalog stays available through the debug `models.list` RPC with `view: "all"`.
170170
- When fresh Gateway session usage reports include current context tokens, the chat composer area shows a compact context usage indicator. It switches to warning styling at high context pressure and, at recommended compaction levels, shows a compact button that runs the normal session compaction path. Stale token snapshots are hidden until the Gateway reports fresh usage again.
171171

‎extensions/browser/src/browser/pw-session.browserless.live.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ describeLive("browser (live): remote CDP tab persistence", () => {
1818
await pw.closePlaywrightBrowserConnection().catch(() => {});
1919

2020
const created = await pw.createPageViaPlaywright({ cdpUrl: CDP_URL, url: "about:blank" });
21-
expect(created.targetId).toEqual(expect.any(String));
21+
expect(created.targetId).toBeTypeOf("string");
22+
expect(created.targetId).not.toBe("");
2223
try {
2324
await waitFor(
2425
async () => {

‎extensions/memory-wiki/src/tool.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import type { ResolvedMemoryWikiConfig } from "./config.js";
33
import { createWikiApplyTool } from "./tool.js";
44

55
function asSchemaObject(value: unknown): Record<string, unknown> {
6-
expect(value).toBeTypeOf("object");
6+
expect(typeof value).toBe("object");
77
expect(value).not.toBeNull();
8+
expect(Array.isArray(value)).toBe(false);
89
return value as Record<string, unknown>;
910
}
1011

‎extensions/slack/src/monitor/slash.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,8 @@ describe("slack slash command session metadata", () => {
12261226
};
12271227
expect(call.ctx?.OriginatingChannel).toBe("slack");
12281228
expect(call.ctx?.GroupSpace).toBe("T1");
1229-
expect(call.sessionKey).toEqual(expect.any(String));
1229+
expect(call.sessionKey).toBeTypeOf("string");
1230+
expect(call.sessionKey).not.toBe("");
12301231
});
12311232

12321233
it("awaits session metadata persistence before dispatch", async () => {

‎src/agents/models-config.uses-first-github-copilot-profile-env-tokens.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ function expectCopilotProviderFromPlan(
271271
plan.action === "write"
272272
? (JSON.parse(plan.contents) as { providers?: Record<string, unknown> })
273273
: {};
274-
expect(parsed.providers?.["github-copilot"]).toEqual(expect.any(Object));
274+
expect(parsed.providers?.["github-copilot"]).toBeDefined();
275+
expect(parsed.providers?.["github-copilot"]).not.toBeNull();
275276
return expect(parsed.providers?.["github-copilot"]);
276277
}

‎src/agents/pi-embedded-runner-extraparams.live.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ describeLive("pi embedded extra params (live)", () => {
5959
}
6060
}
6161

62-
expect(stopReason).toEqual(expect.any(String));
63-
expect(outputTokens).toEqual(expect.any(Number));
62+
expect(stopReason).toBeTypeOf("string");
63+
expect(outputTokens).toBeTypeOf("number");
6464
// Should respect maxTokens from config (16) — allow a small buffer for provider rounding.
6565
expect(outputTokens ?? 0).toBeLessThanOrEqual(20);
6666
}, 30_000);

‎src/agents/pi-embedded-runner/context-engine-maintenance.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ describe("buildContextEngineMaintenanceRuntimeContext", () => {
201201
{ entryId: "entry-1", message: { role: "user", content: "hi", timestamp: 1 } },
202202
],
203203
});
204-
expect(rewritePromise).toEqual(expect.any(Promise));
204+
expect(rewritePromise).toBeDefined();
205+
expect(rewritePromise?.then).toBeTypeOf("function");
205206

206207
await flushAsyncWork();
207208
expect(rewriteTranscriptEntriesInSessionFileMock).not.toHaveBeenCalled();

‎src/agents/runtime-plan/build.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ describe("AgentRuntimePlan", () => {
156156

157157
expect(normalized).toHaveLength(1);
158158
expect(normalized[0]?.name).toBe("ping");
159-
expect(normalized[0]?.parameters).toBeTypeOf("object");
159+
expect(normalized[0]?.parameters).toStrictEqual({});
160160
});
161161

162162
it("does not forward OpenAI API-key profiles into the Codex harness auth slot", () => {

0 commit comments

Comments
 (0)