Fix Podman sandbox CI checks

This commit is contained in:
Mrunal Patel
2026-07-07 15:44:07 -07:00
committed by sallyom
parent 903276c798
commit 99a87cd822
4 changed files with 18 additions and 2 deletions
+4
View File
@@ -99,6 +99,10 @@
"source": "OpenAI provider",
"target": "OpenAI provider"
},
{
"source": "Podman plugin",
"target": "Podman 插件"
},
{
"source": "Mantis",
"target": "Mantis"
+10
View File
@@ -4041,6 +4041,7 @@ Do not edit it by hand; run `pnpm docs:map:gen`.
- H2: Supported capability matrix
- H2: Docker backend
- H3: Sandboxed browser
- H2: Podman backend
- H2: SSH backend
- H2: OpenShell backend
- H2: Workspace access
@@ -4856,6 +4857,7 @@ Do not edit it by hand; run `pnpm docs:map:gen`.
- Headings:
- H2: Prerequisites
- H2: Quick start
- H2: Agent sandbox backend
- H2: Podman and Tailscale
- H2: Systemd (Quadlet, optional)
- H2: Config, env, and storage
@@ -7221,6 +7223,14 @@ Do not edit it by hand; run `pnpm docs:map:gen`.
- H2: Surface
- H2: Related docs
## plugins/reference/podman.md
- Route: /plugins/reference/podman
- Headings:
- H1: Podman plugin
- H2: Distribution
- H2: Surface
## plugins/reference/policy.md
- Route: /plugins/reference/policy
+3 -1
View File
@@ -1,6 +1,8 @@
import type { CreateSandboxBackendParams, SandboxConfig } from "openclaw/plugin-sdk/sandbox";
import type { CreateSandboxBackendParams } from "openclaw/plugin-sdk/sandbox";
import { beforeEach, describe, expect, it, vi } from "vitest";
type SandboxConfig = CreateSandboxBackendParams["cfg"];
const podmanMocks = vi.hoisted(() => ({
execPodman: vi.fn(),
execPodmanRaw: vi.fn(),
+1 -1
View File
@@ -180,7 +180,7 @@ async function ensurePodmanContainer(params: {
const expectedHash = computePodmanConfigHash(params.createParams);
const state = await podmanContainerState(params.pluginConfig, containerName);
let hasContainer = state.exists;
let running = state.running;
const running = state.running;
if (hasContainer) {
const currentHash = await readPodmanContainerLabel(
params.pluginConfig,