Skip to content

Commit fe19d4d

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 cbe0c9c commit fe19d4d

File tree

5 files changed

+396
-90
lines changed

5 files changed

+396
-90
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
@@ -495,7 +495,7 @@ export const webviewMessageHandler = async (
495495
const historyResults = await getHistoryItemsForSearch(message.historySearchOptions || {})
496496
provider.postMessageToWebview({
497497
type: "historyItems",
498-
items: historyResults.items,
498+
...historyResults,
499499
requestId: message.requestId, // Pass the requestId back in the response
500500
})
501501
break

0 commit comments

Comments
 (0)