Skip to content

Commit b156e90

Browse files
author
Eric Wheeler
committed
feat: granular workspace selection in task history
Allows you to filter tasks not just by all and current, but also by any historic workspace directory that exists in existing HistoryItem metadata - Added persistent workspace index with metadata (path, name, missing status, timestamp) - Created a rich workspace selector UI with filtering and grouping capabilities - Added visual indicators for missing workspaces (strikethrough) - Improved loading states and feedback during workspace changes and searches - Added special workspace paths handling ("all", "current", "unknown") - Standardized empty/undefined workspace paths to "unknown" for legacy items that do not have workspace stored in their metadata - Optimized batch processing for better performance This enhancement provides users with a more intuitive and powerful way to navigate their task history across multiple workspaces. Signed-off-by: Eric Wheeler <[email protected]>
1 parent 4629682 commit b156e90

File tree

5 files changed

+395
-89
lines changed

5 files changed

+395
-89
lines changed

packages/types/src/history.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,5 @@ export interface HistorySearchOptions {
7070
limit?: number
7171
workspacePath?: string
7272
sortOption?: HistorySortOption
73-
showAllWorkspaces?: boolean
7473
dateRange?: { fromTs?: number; toTs?: number }
7574
}

src/core/webview/webviewMessageHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ export const webviewMessageHandler = async (
453453
const historyResults = await getHistoryItemsForSearch(message.historySearchOptions || {})
454454
provider.postMessageToWebview({
455455
type: "historyItems",
456-
items: historyResults.items,
456+
...historyResults,
457457
requestId: message.requestId, // Pass the requestId back in the response
458458
})
459459
break

0 commit comments

Comments
 (0)