mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-13 19:20:04 +00:00
🐛 fix(task): include config in getTaskDetail response (#13521)
This commit is contained in:
@@ -77,6 +77,7 @@ export interface TaskDetailData {
|
||||
activities?: TaskDetailActivity[];
|
||||
agentId?: string | null;
|
||||
checkpoint?: CheckpointConfig;
|
||||
config?: Record<string, unknown>;
|
||||
createdAt?: string;
|
||||
dependencies?: Array<{ dependsOn: string; type: string }>;
|
||||
description?: string | null;
|
||||
|
||||
@@ -125,6 +125,7 @@ export class TaskService {
|
||||
return {
|
||||
agentId: task.assigneeAgentId,
|
||||
checkpoint: this.taskModel.getCheckpointConfig(task),
|
||||
config: task.config ? (task.config as Record<string, unknown>) : undefined,
|
||||
createdAt: task.createdAt ? new Date(task.createdAt).toISOString() : undefined,
|
||||
dependencies: dependencies.map((d) => {
|
||||
const info = depIdToInfo.get(d.dependsOnId);
|
||||
|
||||
Reference in New Issue
Block a user