+
+
+ {t("history:recentTasks")}
-
- {item.task}
-
-
-
- {t("history:tokens", {
- in: formatLargeNumber(item.tokensIn || 0),
- out: formatLargeNumber(item.tokensOut || 0),
- })}
-
- {!!item.cacheWrites && (
- <>
- {" • "}
-
- {t("history:cache", {
- writes: formatLargeNumber(item.cacheWrites || 0),
- reads: formatLargeNumber(item.cacheReads || 0),
- })}
-
- >
- )}
- {!!item.totalCost && (
- <>
- {" • "}
- {t("history:apiCost", { cost: item.totalCost?.toFixed(4) })}
- >
+
+
+ )}
+ {tasks.length === 0 && (
+ <>
+
+
+ the docs
+
+ ),
+ }}
+ />
+
+
+
+ >
+ )}
+ {tasks.slice(0, 3).map((item) => (
+
vscode.postMessage({ type: "showTaskWithId", text: item.id })}>
+
+
+
+ {formatDate(item.ts)}
+
+
+
+
+ {item.task}
+
+
+
+ {t("history:tokens", {
+ in: formatLargeNumber(item.tokensIn || 0),
+ out: formatLargeNumber(item.tokensOut || 0),
+ })}
+
+ {!!item.cacheWrites && (
+ <>
+ {" • "}
+
+ {t("history:cache", {
+ writes: formatLargeNumber(item.cacheWrites || 0),
+ reads: formatLargeNumber(item.cacheReads || 0),
+ })}
+
+ >
+ )}
+ {!!item.totalCost && (
+ <>
+ {" • "}
+ {t("history:apiCost", { cost: item.totalCost?.toFixed(4) })}
+ >
+ )}
+
+ {showAllWorkspaces && item.workspace && (
+
+
+ {item.workspace}
+
)}
- {showAllWorkspaces && item.workspace && (
-
-
- {item.workspace}
-
- )}
-