Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ RUN set -eu; \
RUN node /usr/local/lib/nemoclaw/patch-openclaw-chat-send.js \
/usr/local/lib/node_modules/openclaw/dist

# Patch OpenClaw's pinned 2026.5.18 compiled selection runtime to expose a
# Patch OpenClaw's pinned 2026.5.22 compiled selection runtime to expose a
# compact searchable tool catalog to the model while preserving the full
# effective tool set behind tool_call. NEMOCLAW_TOOL_CATALOG=0 disables this
# wrapper if an emergency rollback is needed. The script fails closed if the
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ RUN printf '%s\n' \
# OpenClaw version: change the OPENCLAW_VERSION ARG default so CI rebuilds
# the base image on push to main, or use workflow_dispatch on base-image.yaml
# with the openclaw_version input for a one-off build without editing this file.
ARG OPENCLAW_VERSION=2026.5.18
ARG OPENCLAW_VERSION=2026.5.22

SHELL ["/bin/bash", "-o", "pipefail", "-c"]

Expand Down
2 changes: 1 addition & 1 deletion agents/openclaw/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ homepage: "https://openclaw.ai"
install_method: npm # npm install -g openclaw@<version>
binary_path: /usr/local/bin/openclaw
version_command: "openclaw --version"
expected_version: "2026.5.18"
expected_version: "2026.5.22"
gateway_command: "openclaw gateway run"

# ── Health probe ────────────────────────────────────────────────
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/commands.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ Existing sandboxes do not auto-upgrade when a newer NemoClaw release ships a new
```console
$ nemoclaw my-assistant status
...
Agent: OpenClaw v2026.5.18
Agent: OpenClaw v2026.5.22
...
```

Expand Down
2 changes: 1 addition & 1 deletion nemoclaw-blueprint/blueprint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
version: "0.1.0"
min_openshell_version: "0.0.44"
max_openshell_version: "0.0.44"
min_openclaw_version: "2026.5.18"
min_openclaw_version: "2026.5.22"
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
# Mirrors the components.sandbox.image manifest digest below. Lets a
# downstream consumer (or release tooling) verify the blueprint declares
# a specific sandbox image without parsing the components tree, and
Expand Down
2 changes: 1 addition & 1 deletion scripts/patch-openclaw-chat-send.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function patchFollowupRunnerFile(file) {

if (!source.includes("preserve chat.send run ids in followup queue")) {
const next = source.replace(
/(replyOperation = createReplyOperation\(\{\n\s*sessionId: run\.sessionId,\n\s*sessionKey: replySessionKey \?\? "",\n\s*resetTriggered: false,\n\s*upstreamAbortSignal: queued\.abortSignal \?\? opts\?\.abortSignal\n\s*\}\);\n\s*)const runId = crypto\.randomUUID\(\);/,
/(replyOperation = createReplyOperation\(\{\n\s*sessionId: run\.sessionId,\n\s*sessionKey: replySessionKey \?\? "",\n\s*resetTriggered: false,\n\s*upstreamAbortSignal: queued\.abortSignal(?: \?\? opts\?\.abortSignal)?\n\s*\}\);\n\s*)const runId = crypto\.randomUUID\(\);/,
(_match, prefix) =>
`${prefix}const runId = queued.runId ?? opts?.runId ?? crypto.randomUUID(); ` +
`// nemoclaw: preserve chat.send run ids in followup queue (#2603, #3145)`,
Expand Down
22 changes: 11 additions & 11 deletions src/lib/sandbox/version.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ vi.mock("../agent/defs.js", () => ({
name,
displayName: name === "openclaw" ? "OpenClaw" : "Hermes Agent",
versionCommand: name === "openclaw" ? "openclaw --version" : "hermes --version",
expectedVersion: name === "openclaw" ? "2026.5.18" : "2026.5.16",
expectedVersion: name === "openclaw" ? "2026.5.22" : "2026.5.16",
stateDirs: [],
configPaths: { dir: "/sandbox/.openclaw" },
})),
Expand Down Expand Up @@ -77,12 +77,12 @@ describe("checkAgentVersion", () => {
registry.registerSandbox({
name: "test-sb",
agent: null,
agentVersion: "2026.5.18",
agentVersion: "2026.5.22",
});

const result = checkAgentVersion("test-sb");
expect(result.detectionMethod).toBe("registry");
expect(result.sandboxVersion).toBe("2026.5.18");
expect(result.sandboxVersion).toBe("2026.5.22");
expect(result.isStale).toBe(false);
});

Expand All @@ -103,7 +103,7 @@ describe("checkAgentVersion", () => {
registry.registerSandbox({
name: "test-sb",
agent: null,
agentVersion: "2026.5.18",
agentVersion: "2026.5.22",
});

const result = checkAgentVersion("test-sb");
Expand All @@ -120,7 +120,7 @@ describe("checkAgentVersion", () => {

vi.mocked(spawnSync).mockReturnValue({
status: 0,
stdout: "OpenClaw 2026.5.18 (abc123)\n",
stdout: "OpenClaw 2026.5.22 (abc123)\n",
stderr: "",
pid: 1234,
output: [],
Expand All @@ -129,7 +129,7 @@ describe("checkAgentVersion", () => {

const result = checkAgentVersion("test-sb");
expect(result.detectionMethod).toBe("ssh-exec");
expect(result.sandboxVersion).toBe("2026.5.18");
expect(result.sandboxVersion).toBe("2026.5.22");
expect(result.isStale).toBe(false);
expect(captureSandboxSshConfigCommand).toHaveBeenCalledWith(
"/usr/local/bin/openshell",
Expand All @@ -139,7 +139,7 @@ describe("checkAgentVersion", () => {

// Should have cached the version in registry
const updated = registry.getSandbox("test-sb");
expect(updated?.agentVersion).toBe("2026.5.18");
expect(updated?.agentVersion).toBe("2026.5.22");
});

it("returns unavailable when SSH config fails", () => {
Expand Down Expand Up @@ -183,7 +183,7 @@ describe("checkAgentVersion", () => {

vi.mocked(spawnSync).mockReturnValue({
status: 0,
stdout: "OpenClaw 2026.5.18 (abc123)\n",
stdout: "OpenClaw 2026.5.22 (abc123)\n",
stderr: "",
pid: 1234,
output: [],
Expand All @@ -192,7 +192,7 @@ describe("checkAgentVersion", () => {

const result = checkAgentVersion("test-sb", { forceProbe: true });
expect(result.detectionMethod).toBe("ssh-exec");
expect(result.sandboxVersion).toBe("2026.5.18");
expect(result.sandboxVersion).toBe("2026.5.22");
});
});

Expand All @@ -219,14 +219,14 @@ describe("formatStalenessWarning", () => {
it("includes sandbox name, versions, and rebuild hint", () => {
const lines = formatStalenessWarning("my-sb", {
sandboxVersion: "2026.3.11",
expectedVersion: "2026.5.18",
expectedVersion: "2026.5.22",
isStale: true,
detectionMethod: "registry",
});
const joined = lines.join("\n");
expect(joined).toContain("my-sb");
expect(joined).toContain("2026.3.11");
expect(joined).toContain("2026.5.18");
expect(joined).toContain("2026.5.22");
expect(joined).toContain("rebuild");
});
});
10 changes: 5 additions & 5 deletions src/lib/verify-deployment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ describe("verifyDeployment", () => {
const deps = makeDeps({
executeSandboxCommand: (_name: string, script: string) => {
if (script.includes("openclaw --version")) {
return { status: 0, stdout: "2026.5.18", stderr: "" };
return { status: 0, stdout: "2026.5.22", stderr: "" };
}
return { status: 0, stdout: "200", stderr: "" };
},
});
const result = await verifyDeployment("my-sandbox", chain, deps, NO_RETRY);
expect(result.verification.gatewayVersion).toBe("2026.5.18");
expect(result.verification.gatewayVersion).toBe("2026.5.22");
});

it("reports null version when gateway is down (skips version probe)", async () => {
Expand Down Expand Up @@ -179,7 +179,7 @@ describe("verifyDeployment", () => {
const deps = makeDeps({
executeSandboxCommand: (_name: string, script: string) => {
if (script.includes("openclaw --version")) {
return { status: 0, stdout: "2026.5.18", stderr: "" };
return { status: 0, stdout: "2026.5.22", stderr: "" };
}
if (script.includes("inference.local")) {
return { status: 0, stdout: "200", stderr: "" };
Expand Down Expand Up @@ -240,14 +240,14 @@ describe("formatVerificationDiagnostics", () => {
const result = await verifyDeployment("my-sandbox", chain, makeDeps({
executeSandboxCommand: (_name: string, script: string) => {
if (script.includes("openclaw --version")) {
return { status: 0, stdout: "2026.5.18", stderr: "" };
return { status: 0, stdout: "2026.5.22", stderr: "" };
}
return { status: 0, stdout: "200", stderr: "" };
},
}), NO_RETRY);
const lines = formatVerificationDiagnostics(result);
expect(lines.some((l) => l.includes("verified"))).toBe(true);
expect(lines.some((l) => l.includes("2026.5.18"))).toBe(true);
expect(lines.some((l) => l.includes("2026.5.22"))).toBe(true);
});

it("prints failure diagnostics with hints when unhealthy", async () => {
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/test-openclaw-tui-chat-correlation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ openclaw_version="$(
openshell sandbox exec --name "$SANDBOX_NAME" -- openclaw --version 2>&1 || true
)"
echo "Sandbox OpenClaw version: ${openclaw_version}"
if ! grep -q "2026.5.18" <<<"$openclaw_version"; then
echo "Expected fresh sandbox to run OpenClaw 2026.5.18" >&2
if ! grep -q "2026.5.22" <<<"$openclaw_version"; then
echo "Expected fresh sandbox to run OpenClaw 2026.5.22" >&2
exit 1
fi

Expand Down
20 changes: 12 additions & 8 deletions test/fetch-guard-patch-regression.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ import { describe, expect, it } from "vitest";
const DOCKERFILE = path.join(import.meta.dirname, "..", "Dockerfile");
const DOCKERFILE_BASE = path.join(import.meta.dirname, "..", "Dockerfile.base");
const BLUEPRINT = path.join(import.meta.dirname, "..", "nemoclaw-blueprint", "blueprint.yaml");
const REVIEWED_OPENCLAW_PATCH_CLASSIFIER_VERSIONS = ["2026.4.24", "2026.5.18"] as const;
const CURRENT_REVIEWED_OPENCLAW_PATCH_CLASSIFIER_VERSION = "2026.5.18";
const REVIEWED_OPENCLAW_PATCH_CLASSIFIER_VERSIONS = [
"2026.4.24",
"2026.5.18",
"2026.5.22",
] as const;
const CURRENT_REVIEWED_OPENCLAW_PATCH_CLASSIFIER_VERSION = "2026.5.22";

function readRequiredMatch(file: string, pattern: RegExp, description: string): string {
const match = fs.readFileSync(file, "utf-8").match(pattern);
Expand Down Expand Up @@ -130,7 +134,7 @@ function runDockerfilePatchBlock(
dist: string,
tmp: string,
endMarker: string,
version = "2026.5.18",
version = "2026.5.22",
) {
const command = dockerRunCommandBetween(
"# Patch OpenClaw media fetch for proxy-only sandbox",
Expand All @@ -154,7 +158,7 @@ function runDockerfilePatchBlock(
});
}

function runFetchGuardPatchBlock(dist: string, tmp: string, version = "2026.5.18") {
function runFetchGuardPatchBlock(dist: string, tmp: string, version = "2026.5.22") {
return runDockerfilePatchBlock(
dist,
tmp,
Expand Down Expand Up @@ -387,7 +391,7 @@ if (globalThis.proxyChecks.length !== 0) throw new Error('sandbox proxy validati
);

try {
const patch = runFetchGuardPatchBlock(dist, tmp, "2026.5.18");
const patch = runFetchGuardPatchBlock(dist, tmp, "2026.5.22");
expect(patch.status, `${patch.stdout}${patch.stderr}`).toBe(0);
expect(patch.stdout).toContain("Patch 1 applied");
expect(patch.stdout).toContain("Patch 2 applied");
Expand Down Expand Up @@ -633,7 +637,7 @@ if (globalThis.proxyChecks.length !== 0) throw new Error('sandbox proxy validati
);

try {
const patch = runFetchGuardPatchBlock(dist, tmp, "2026.5.18");
const patch = runFetchGuardPatchBlock(dist, tmp, "2026.5.22");
expect(patch.status, `${patch.stdout}${patch.stderr}`).toBe(0);
expect(patch.stdout).toContain("Patch 2 applied");
const patched = fs.readFileSync(modulePath, "utf-8");
Expand Down Expand Up @@ -667,7 +671,7 @@ if (globalThis.proxyChecks.length !== 0) throw new Error('sandbox proxy validati
);

try {
const patch = runFetchGuardPatchBlock(dist, tmp, "2026.5.18");
const patch = runFetchGuardPatchBlock(dist, tmp, "2026.5.22");
expect(patch.status, `${patch.stdout}${patch.stderr}`).toBe(0);
expect(patch.stdout).toContain("Patch 2 applied");
const patched = fs.readFileSync(modulePath, "utf-8");
Expand Down Expand Up @@ -710,7 +714,7 @@ if (globalThis.proxyChecks.length !== 0) throw new Error('sandbox proxy validati
);

try {
const patch = runFetchGuardPatchBlock(dist, tmp, "2026.5.18");
const patch = runFetchGuardPatchBlock(dist, tmp, "2026.5.22");
expect(patch.status, `${patch.stdout}${patch.stderr}`).toBe(0);
expect(patch.stdout).toContain("Patch 2 applied");
const patched = fs.readFileSync(modulePath, "utf-8");
Expand Down
50 changes: 50 additions & 0 deletions test/openclaw-chat-send-patch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,36 @@ function writeFollowupRunnerFixture(dist: string): string {
return fixture;
}

function writeFollowupRunner20260522Fixture(dist: string): string {
const fixture = path.join(dist, "agent-runner.fixture.js");
fs.writeFileSync(
fixture,
[
"function createFollowupRunner(params) {",
" const { opts } = params;",
" return async (queued) => {",
" let replyOperation;",
" let run = queued.run;",
" replyOperation = createReplyOperation({",
" sessionId: run.sessionId,",
' sessionKey: replySessionKey ?? "",',
" resetTriggered: false,",
" upstreamAbortSignal: queued.abortSignal",
" });",
" const runId = crypto.randomUUID();",
" if (run.sessionKey) registerAgentRunContext(runId, {",
" sessionKey: run.sessionKey,",
" verboseLevel: run.verboseLevel",
" });",
" return runId;",
" }",
"}",
"",
].join("\n"),
);
return fixture;
}

function writeGetReplyFixture(dist: string): string {
const fixture = path.join(dist, "get-reply.fixture.js");
fs.writeFileSync(
Expand Down Expand Up @@ -193,6 +223,26 @@ describe("OpenClaw chat.send compatibility patch", () => {
}
});

it("recognizes the 2026.5.22 followup runner abort-signal shape", () => {
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), "nemoclaw-openclaw-chat-send-522-"));
const dist = path.join(tmp, "dist");
fs.mkdirSync(dist);
writeChatSendFixture(dist);
const followupFixture = writeFollowupRunner20260522Fixture(dist);
writeGetReplyFixture(dist);

try {
const patch = runPatch(dist);
expect(patch.status, `${patch.stdout}${patch.stderr}`).toBe(0);
const patchedFollowup = fs.readFileSync(followupFixture, "utf-8");
expect(patchedFollowup).toContain(
"const runId = queued.runId ?? opts?.runId ?? crypto.randomUUID(); // nemoclaw: preserve chat.send run ids in followup queue (#2603, #3145)",
);
} finally {
fs.rmSync(tmp, { recursive: true, force: true });
}
});

it("fails closed when the OpenClaw chat.send source shape changes", () => {
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), "nemoclaw-openclaw-chat-send-missing-"));
const dist = path.join(tmp, "dist");
Expand Down
Loading