feat: add task queue sidebar and resume functionality for CLI sessions

- Implemented task queue sidebar for managing active tasks with filtering options.
- Added functionality to close notification sidebar when opening task queue.
- Enhanced CLI history view to support resuming previous sessions with optional prompts.
- Updated CLI executor to handle resuming sessions for Codex, Gemini, and Qwen tools.
- Introduced utility functions for finding CLI history directories recursively.
- Improved task queue data management and rendering logic.
This commit is contained in:
catlog22
2025-12-13 11:51:53 +08:00
parent 335f5e9ec6
commit 93d3df1e08
14 changed files with 2000 additions and 128 deletions

View File

@@ -20,6 +20,7 @@ document.addEventListener('DOMContentLoaded', async () => {
try { initHookManager(); } catch (e) { console.error('Hook Manager init failed:', e); }
try { initCliStatus(); } catch (e) { console.error('CLI Status init failed:', e); }
try { initGlobalNotifications(); } catch (e) { console.error('Global notifications init failed:', e); }
try { initTaskQueueSidebar(); } catch (e) { console.error('Task queue sidebar init failed:', e); }
try { initVersionCheck(); } catch (e) { console.error('Version check init failed:', e); }
// Initialize real-time features (WebSocket + auto-refresh)
@@ -71,6 +72,16 @@ document.addEventListener('DOMContentLoaded', async () => {
if (typeof closeHookCreateModal === 'function') {
closeHookCreateModal();
}
// Close notification sidebar if open
if (isNotificationPanelVisible && typeof toggleNotifSidebar === 'function') {
toggleNotifSidebar();
}
// Close task queue sidebar if open
if (isTaskQueueVisible && typeof toggleTaskQueueSidebar === 'function') {
toggleTaskQueueSidebar();
}
}
});
});