feat(explorer): async task execution, CLI selector fix, WebSocket frame handling

- Task queue now executes tasks in parallel using Promise.all
- addFolderToQueue uses selected CLI tool instead of hardcoded 'gemini'
- Added CSS styles for queue-cli-selector toolbar
- Force refresh notification list after all tasks complete
- Fixed WebSocket frame parsing to handle Ping/Pong control frames
- Respond to Ping with Pong, ignore other control frames
- Eliminates garbled characters in WebSocket logs
This commit is contained in:
catlog22
2025-12-08 23:21:47 +08:00
parent b0bc53646e
commit a7b8ffc716
2 changed files with 40 additions and 4 deletions

View File

@@ -836,6 +836,12 @@ async function startTaskQueue() {
'Explorer'
);
// Force refresh notification list to ensure all notifications are displayed
if (typeof renderGlobalNotifications === 'function') {
renderGlobalNotifications();
updateGlobalNotifBadge();
}
// Re-enable start button if there are pending tasks
const hasPending = updateTaskQueue.some(t => t.status === 'pending');
document.getElementById('startQueueBtn').disabled = !hasPending;