Files
cline-multi-mirror/sdk/apps/examples/desktop-app/webview/lib/session-history.ts
T
HybridTalentComputing 8d519391b1 Sync with upstream v3.83.0
Replace all files with clean upstream Cline v3.83.0 content.
ShengSuanYun provider code automatically removed.
2026-05-15 13:02:01 +08:00

34 lines
668 B
TypeScript

export type SessionHistoryStatus =
| "running"
| "completed"
| "failed"
| "cancelled"
| "idle";
export type SessionMetadata = {
title?: string;
[key: string]: unknown;
};
export interface SessionHistoryItem {
sessionId: string;
status: SessionHistoryStatus;
provider: string;
model: string;
cwd: string;
workspaceRoot: string;
parentSessionId?: string;
isSubagent?: boolean;
prompt?: string;
startedAt: string;
endedAt?: string;
metadata?: SessionMetadata;
}
export function getSessionMetadataTitle(metadata?: SessionMetadata): string {
if (!metadata) {
return "";
}
return typeof metadata.title === "string" ? metadata.title.trim() : "";
}