feat: update A2UIButton and translations for navigation; enhance session detail fetching and task handling

This commit is contained in:
catlog22
2026-02-17 10:39:13 +08:00
parent b23e822a35
commit 8665ea73a4
7 changed files with 21 additions and 10 deletions

View File

@@ -1759,8 +1759,15 @@ export async function fetchSessionDetail(sessionId: string, projectPath?: string
// Backend returns raw context-package.json content, frontend expects it nested under 'context' field
const transformedContext = detailData.context ? { context: detailData.context } : undefined;
// Step 5: Merge tasks from detailData into session object
// Backend returns tasks at root level, frontend expects them on session object
const sessionWithTasks = {
...session,
tasks: detailData.tasks || session.tasks || [],
};
return {
session,
session: sessionWithTasks,
context: transformedContext,
summary: finalSummary,
summaries: detailData.summaries,