mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-01 10:33:25 +08:00
feat: add CliStreamMonitor and related components for CLI output streaming
- Implemented CliStreamMonitor component for real-time CLI output monitoring with multi-execution support. - Created JsonFormatter component for displaying JSON content in various formats (text, card, inline). - Added utility functions for JSON detection and formatting in jsonUtils.ts. - Introduced LogBlock utility functions for styling CLI output lines. - Developed a new Collapsible component for better UI interactions. - Created IssueHubPage for managing issues, queue, and discovery with tab navigation.
This commit is contained in:
@@ -1033,6 +1033,7 @@ export interface SessionDetailResponse {
|
||||
session: SessionMetadata;
|
||||
context?: SessionDetailContext;
|
||||
summary?: string;
|
||||
summaries?: Array<{ name: string; content: string }>;
|
||||
implPlan?: unknown;
|
||||
conflicts?: unknown[];
|
||||
review?: unknown;
|
||||
@@ -1061,10 +1062,17 @@ export async function fetchSessionDetail(sessionId: string, projectPath?: string
|
||||
const detailData = await fetchApi<any>(`/api/session-detail?path=${encodeURIComponent(pathParam)}&type=all`);
|
||||
|
||||
// Step 3: Transform the response to match SessionDetailResponse interface
|
||||
// Also check for summaries array and extract first one if summary is empty
|
||||
let finalSummary = detailData.summary;
|
||||
if (!finalSummary && detailData.summaries && detailData.summaries.length > 0) {
|
||||
finalSummary = detailData.summaries[0].content || detailData.summaries[0].name || '';
|
||||
}
|
||||
|
||||
return {
|
||||
session,
|
||||
context: detailData.context,
|
||||
summary: detailData.summary,
|
||||
summary: finalSummary,
|
||||
summaries: detailData.summaries,
|
||||
implPlan: detailData.implPlan,
|
||||
conflicts: detailData.conflicts,
|
||||
review: detailData.review,
|
||||
|
||||
Reference in New Issue
Block a user