mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-04 07:00:23 +00:00
Implements Jobs API endpoints (/jobs) for cloud distribution to replace history_v2 API, providing 99.998% memory reduction per item. Key changes: - Jobs API types, schemas, and fetchers for list and detail endpoints - Adapter to convert Jobs API format to TaskItem format - Lazy loading for full outputs when loading workflows - hasOnlyPreviewOutputs() detection for preview-only tasks - Feature flag to toggle between Jobs API and history_v2 Implementation details: - List endpoint: Returns preview_output only (100-200 bytes per job) - Detail endpoint: Returns full workflow and outputs on demand - Cloud builds use /jobs?status=completed for history view - Desktop builds unchanged (still use history_v1) - 21 unit and integration tests (all passing) Memory optimization: - Old: 300-600KB per history item (full outputs) - New: 100-200 bytes per history item (preview only) - Reduction: 99.998% Co-Authored-By: Claude <noreply@anthropic.com>