mirror of
https://github.com/lobehub/lobehub
synced 2026-04-21 09:37:28 +00:00
🐛 fix(task): include config in getTaskDetail response (#13521)
This commit is contained in:
parent
251e12c7d1
commit
3b316e3a4e
2 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue