fix(agents): keep async media starts nonterminal

This commit is contained in:
Peter Steinberger
2026-05-31 14:29:31 +01:00
parent f62a22ce56
commit 3ebbf9a0c1
5 changed files with 4 additions and 4 deletions

View File

@@ -31,6 +31,7 @@ Docs: https://docs.openclaw.ai
### Fixes
- Agents/media: keep async image, music, and video generation starts from ending the Codex turn, so mixed requests can continue with summaries or other work while media renders in the background.
- Agents/Codex: keep public OpenAI API-key profiles from being treated as native Codex app-server auth while preserving persisted Codex OAuth sessions.
- Control UI: keep collapsed tool cards labeled with the tool name and action instead of generic output text. Thanks @shakkernerd.
- Agents/Codex: surface Skill Workshop guidance in Codex app-server prompts when `skill_workshop` is available. Thanks @shakkernerd.

View File

@@ -758,7 +758,7 @@ describe("createImageGenerateTool", () => {
expect(details.async).toBe(true);
expect(details.status).toBe("started");
expect(details.taskId).toBe("task-image-123");
expect((result as { terminate?: boolean }).terminate).toBe(true);
expect((result as { terminate?: boolean }).terminate).toBeUndefined();
expect(taskRuntimeMocks.createRunningTaskRun).toHaveBeenCalledWith(
expect.objectContaining({
taskKind: "image_generation",

View File

@@ -331,7 +331,6 @@ export function buildMediaGenerationStartedToolResult(params: {
: {}),
...params.detailExtras,
},
terminate: true,
};
}

View File

@@ -629,7 +629,7 @@ describe("createMusicGenerateTool", () => {
applied: 120_000,
minimum: 120_000,
});
expect((result as { terminate?: boolean }).terminate).toBe(true);
expect((result as { terminate?: boolean }).terminate).toBeUndefined();
if (!scheduledWork) {
throw new Error("expected scheduled music generation work");
}

View File

@@ -933,7 +933,7 @@ describe("createVideoGenerateTool", () => {
expect(details.async).toBe(true);
expect(details.status).toBe("started");
expect((details.task as { taskId?: string }).taskId).toBe("task-123");
expect((result as { terminate?: boolean }).terminate).toBe(true);
expect((result as { terminate?: boolean }).terminate).toBeUndefined();
if (!scheduledWork) {
throw new Error("expected scheduled video generation work");
}