mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
fix(agents): keep async media starts nonterminal
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -331,7 +331,6 @@ export function buildMediaGenerationStartedToolResult(params: {
|
||||
: {}),
|
||||
...params.detailExtras,
|
||||
},
|
||||
terminate: true,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user