mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-10 23:50:00 +00:00
- Restore proper task queue implementation with generated types - Fix manager button visibility based on server feature flags - Add task completion tracking with taskIdToPackId mapping - Fix log separation with task-specific filtering - Implement failed tab functionality with proper task partitioning - Fix task progress status detection using actual queue state - Add missing locale entries for all manager operations - Remove legacy manager menu items, keep only 'Manage Extensions' - Fix task panel expansion state and count display issues - All TypeScript and ESLint checks pass 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
3.4 KiB
3.4 KiB
Task Queue Restoration Plan
Problem Statement
An accidental revert occurred in commit range 730b278f..8075db41f that removed critical task queue and client_id-aware changes from the manager system. Since then, months of additional features have been built on top of the reverted (broken) state.
What We CANNOT Do
- ❌ Simple git revert - would lose months of subsequent work
- ❌ Cherry-pick entire files - would overwrite newer features
- ❌ Restore entire files to previous state - would break new functionality
What We MUST Do
Manual analysis and selective restoration for each affected file:
-
Compare each file between:
730b278f(correct task queue implementation)8075db41f(after accidental revert)current state(months of features built on broken foundation)
-
Identify specific changes that were lost in the revert:
- Task queue API usage (
QUEUE_TASK = 'v2/manager/queue/task') - Generated types migration (
componentsfromgeneratedManagerTypesONLY, stop usingcomfyManagerTypes.ts) - Client ID awareness (
client_idparameters in all API calls) - UUID generation for task tracking (
ui_idwithuuidv4()) - Task history features (
getTaskHistory,TASK_HISTORYroutes) - Proper task queueing logic (
queueTaskfunction that createsQueueTaskItem)
- Task queue API usage (
-
Selectively restore only the task queue changes while preserving:
- All feature flag logic added since the revert
- All UI enhancements added since the revert
- All new components and functionality added since the revert
- All bug fixes and improvements added since the revert
Key Migration Pattern
CRITICAL: Switch from comfyManagerTypes.ts to generatedManagerTypes.ts:
// OLD (reverted state):
import { type InstallPackParams } from '@/types/comfyManagerTypes'
// NEW (correct task queue state):
import { components } from '@/types/generatedManagerTypes'
type InstallPackParams = components['schemas']['InstallPackParams']
Files Requiring Analysis
src/services/comfyManagerService.ts✅ COMPLETEDsrc/stores/comfyManagerStore.tssrc/types/comfyManagerTypes.ts(check if it should be deprecated)src/composables/useManagerQueue.tssrc/components/dialog/content/manager/ManagerDialogContent.vuesrc/components/dialog/content/ManagerProgressDialogContent.vuesrc/components/dialog/footer/ManagerProgressFooter.vue- Manager button components (PackInstallButton, PackUpdateButton, etc.)
- Manager pack card components
- Related test files
Analysis Process for Each File
For each file:
- Extract the correct implementation:
git show 730b278f:path/to/file.ts - Extract the reverted implementation:
git show 8075db41f:path/to/file.ts - Compare with current state: What we have now
- Identify lost task queue features: What specific functionality was removed
- Manually merge: Add back only the task queue features to current code
- Preserve new features: Keep all functionality added since the revert
Expected Outcome
- Manager operations use proper task queue API (
/v2/manager/queue/task) - All operations include
client_idandui_idfor tracking - Task history is properly implemented
- Generated types are used exclusively instead of manual
comfyManagerTypes.ts - UUID generation works for task identification
- ALL existing features and enhancements since the revert are preserved