Repository navigation
Conversation
… jobs API-dispatched jobs don't populate extra_pnginfo.workflow, so 'Open as workflow in new tab' silently failed. Now falls back to loading the API-format prompt data via loadApiJson, which auto-arranges nodes.
🎨 Storybook: ✅ Built — View Storybook |
🎭 Playwright: ✅ 951 passed, 0 failed · 6 flaky📊 Browser Reports
|
📦 Bundle: 5.12 MB gzip 🟢 -145 BDetailsSummary
Category Glance App Entry Points — 22.3 kB (baseline 22.3 kB) • ⚪ 0 BMain entry bundles and manifests
Status: 1 added / 1 removed Graph Workspace — 1.2 MB (baseline 1.2 MB) • 🔴 +1 BGraph editor runtime, canvas, workflow orchestration
Status: 1 added / 1 removed Views & Navigation — 76.6 kB (baseline 76.6 kB) • ⚪ 0 BTop-level views, pages, and routed surfaces
Status: 9 added / 9 removed / 2 unchanged Panels & Settings — 484 kB (baseline 484 kB) • ⚪ 0 BConfiguration panels, inspectors, and settings screens
Status: 10 added / 10 removed / 12 unchanged User & Accounts — 17.1 kB (baseline 17.1 kB) • ⚪ 0 BAuthentication, profile, and account management bundles
Status: 5 added / 5 removed / 2 unchanged Editors & Dialogs — 109 kB (baseline 109 kB) • ⚪ 0 BModals, dialogs, drawers, and in-app editors
Status: 2 added / 2 removed UI Components — 60.3 kB (baseline 60.3 kB) • ⚪ 0 BReusable component library chunks
Status: 5 added / 5 removed / 8 unchanged Data & Services — 2.98 MB (baseline 2.98 MB) • 🔴 +727 BStores, services, APIs, and repositories
Status: 13 added / 13 removed / 4 unchanged Utilities & Hooks — 338 kB (baseline 338 kB) • ⚪ 0 BHelpers, composables, and utility bundles
Status: 13 added / 13 removed / 13 unchanged Vendor & Third-Party — 9.8 MB (baseline 9.8 MB) • ⚪ 0 BExternal libraries and shared vendor chunks Status: 16 unchanged Other — 8.53 MB (baseline 8.53 MB) • ⚪ 0 BBundles that do not match a named category
Status: 55 added / 55 removed / 79 unchanged ⚡ Performance Report
All metrics
Historical variance (last 15 runs)
Trend (last 15 commits on main)
Raw data{
"timestamp": "2026-04-07T01:19:28.196Z",
"gitSha": "f36f3aef10acc7e327032a4cefcfa50a74bcbb9e",
"branch": "glary/fix-open-workflow-api-jobs",
"measurements": [
{
"name": "canvas-idle",
"durationMs": 2013.8809999999978,
"styleRecalcs": 11,
"styleRecalcDurationMs": 10.518999999999998,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 357.02900000000005,
"heapDeltaBytes": 11123972,
"heapUsedBytes": 64207940,
"domNodes": 22,
"jsHeapTotalBytes": 25690112,
"scriptDurationMs": 21.91,
"eventListeners": 6,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66333333333332,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "canvas-idle",
"durationMs": 2034.167000000025,
"styleRecalcs": 11,
"styleRecalcDurationMs": 11.686999999999998,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 389.27299999999997,
"heapDeltaBytes": 20393588,
"heapUsedBytes": 63004684,
"domNodes": 22,
"jsHeapTotalBytes": 22806528,
"scriptDurationMs": 28.174000000000003,
"eventListeners": 6,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66333333333332,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "canvas-idle",
"durationMs": 2036.7119999999659,
"styleRecalcs": 11,
"styleRecalcDurationMs": 9.191999999999998,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 340.318,
"heapDeltaBytes": 20327204,
"heapUsedBytes": 63213972,
"domNodes": 22,
"jsHeapTotalBytes": 22544384,
"scriptDurationMs": 22.104,
"eventListeners": 6,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66333333333332,
"p95FrameDurationMs": 16.699999999999818
},
{
"name": "canvas-mouse-sweep",
"durationMs": 2041.0260000000164,
"styleRecalcs": 83,
"styleRecalcDurationMs": 44.746,
"layouts": 12,
"layoutDurationMs": 3.6189999999999998,
"taskDurationMs": 1011.5860000000001,
"heapDeltaBytes": 16317568,
"heapUsedBytes": 59095812,
"domNodes": 66,
"jsHeapTotalBytes": 23068672,
"scriptDurationMs": 150.345,
"eventListeners": 6,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66999999999998,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "canvas-mouse-sweep",
"durationMs": 1999.3470000000002,
"styleRecalcs": 81,
"styleRecalcDurationMs": 43.418,
"layouts": 12,
"layoutDurationMs": 3.3600000000000003,
"taskDurationMs": 945.8870000000002,
"heapDeltaBytes": 16744464,
"heapUsedBytes": 59152008,
"domNodes": 67,
"jsHeapTotalBytes": 23330816,
"scriptDurationMs": 136.956,
"eventListeners": 6,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.670000000000012,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "canvas-mouse-sweep",
"durationMs": 1861.2520000000359,
"styleRecalcs": 76,
"styleRecalcDurationMs": 38.330000000000005,
"layouts": 12,
"layoutDurationMs": 3.7969999999999997,
"taskDurationMs": 769.189,
"heapDeltaBytes": 16648824,
"heapUsedBytes": 59487248,
"domNodes": 59,
"jsHeapTotalBytes": 23855104,
"scriptDurationMs": 141.088,
"eventListeners": 6,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "canvas-zoom-sweep",
"durationMs": 1743.2259999999928,
"styleRecalcs": 31,
"styleRecalcDurationMs": 16.014999999999997,
"layouts": 6,
"layoutDurationMs": 0.5120000000000001,
"taskDurationMs": 289.713,
"heapDeltaBytes": 24773608,
"heapUsedBytes": 67351868,
"domNodes": 78,
"jsHeapTotalBytes": 20447232,
"scriptDurationMs": 22.334,
"eventListeners": 19,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "canvas-zoom-sweep",
"durationMs": 1726.803000000018,
"styleRecalcs": 32,
"styleRecalcDurationMs": 18.768,
"layouts": 6,
"layoutDurationMs": 0.6429999999999999,
"taskDurationMs": 318.61699999999996,
"heapDeltaBytes": 24712100,
"heapUsedBytes": 67189612,
"domNodes": 78,
"jsHeapTotalBytes": 20447232,
"scriptDurationMs": 26.976,
"eventListeners": 19,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "canvas-zoom-sweep",
"durationMs": 1730.3549999999177,
"styleRecalcs": 30,
"styleRecalcDurationMs": 16.508000000000003,
"layouts": 6,
"layoutDurationMs": 0.7029999999999998,
"taskDurationMs": 282.429,
"heapDeltaBytes": 24667484,
"heapUsedBytes": 67521684,
"domNodes": 78,
"jsHeapTotalBytes": 20709376,
"scriptDurationMs": 24.223000000000003,
"eventListeners": 19,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "dom-widget-clipping",
"durationMs": 648.4240000000057,
"styleRecalcs": 9,
"styleRecalcDurationMs": 6.865999999999997,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 418.7660000000001,
"heapDeltaBytes": -1567448,
"heapUsedBytes": 42379460,
"domNodes": -246,
"jsHeapTotalBytes": 12705792,
"scriptDurationMs": 68.794,
"eventListeners": -122,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66666666666665,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "dom-widget-clipping",
"durationMs": 584.1969999999606,
"styleRecalcs": 13,
"styleRecalcDurationMs": 10.470000000000002,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 359.16200000000003,
"heapDeltaBytes": 6368052,
"heapUsedBytes": 49355648,
"domNodes": 22,
"jsHeapTotalBytes": 13369344,
"scriptDurationMs": 63.872,
"eventListeners": 2,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "dom-widget-clipping",
"durationMs": 560.3589999999485,
"styleRecalcs": 13,
"styleRecalcDurationMs": 9.445000000000002,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 335.024,
"heapDeltaBytes": 8472960,
"heapUsedBytes": 57500080,
"domNodes": 22,
"jsHeapTotalBytes": 13631488,
"scriptDurationMs": 67.935,
"eventListeners": 2,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "large-graph-idle",
"durationMs": 2046.5379999999982,
"styleRecalcs": 10,
"styleRecalcDurationMs": 9.203,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 549.3639999999999,
"heapDeltaBytes": 4788936,
"heapUsedBytes": 55321400,
"domNodes": -258,
"jsHeapTotalBytes": 15921152,
"scriptDurationMs": 101.216,
"eventListeners": -121,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "large-graph-idle",
"durationMs": 2019.5740000000342,
"styleRecalcs": 11,
"styleRecalcDurationMs": 11.906,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 589.942,
"heapDeltaBytes": 4387492,
"heapUsedBytes": 55336688,
"domNodes": -256,
"jsHeapTotalBytes": 15659008,
"scriptDurationMs": 108.954,
"eventListeners": -125,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66333333333332,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "large-graph-idle",
"durationMs": 2021.5239999999994,
"styleRecalcs": 11,
"styleRecalcDurationMs": 10.97,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 537.868,
"heapDeltaBytes": 4576656,
"heapUsedBytes": 55595376,
"domNodes": -254,
"jsHeapTotalBytes": 16707584,
"scriptDurationMs": 97.89500000000001,
"eventListeners": -125,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "large-graph-pan",
"durationMs": 2152.952999999997,
"styleRecalcs": 69,
"styleRecalcDurationMs": 15.708000000000004,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 1156.912,
"heapDeltaBytes": 21003072,
"heapUsedBytes": 72883260,
"domNodes": -258,
"jsHeapTotalBytes": 18747392,
"scriptDurationMs": 476.43100000000004,
"eventListeners": -125,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "large-graph-pan",
"durationMs": 2180.6829999999877,
"styleRecalcs": 69,
"styleRecalcDurationMs": 16.065,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 1242.5030000000002,
"heapDeltaBytes": 16560284,
"heapUsedBytes": 70160372,
"domNodes": -262,
"jsHeapTotalBytes": 18223104,
"scriptDurationMs": 468.549,
"eventListeners": -127,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "large-graph-pan",
"durationMs": 2122.436999999991,
"styleRecalcs": 68,
"styleRecalcDurationMs": 15.532,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 1142.1429999999998,
"heapDeltaBytes": 16794164,
"heapUsedBytes": 70454252,
"domNodes": -263,
"jsHeapTotalBytes": 17698816,
"scriptDurationMs": 448.418,
"eventListeners": -127,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "large-graph-zoom",
"durationMs": 3195.1329999999984,
"styleRecalcs": 67,
"styleRecalcDurationMs": 18.793,
"layouts": 60,
"layoutDurationMs": 7.592,
"taskDurationMs": 1326.28,
"heapDeltaBytes": 9576224,
"heapUsedBytes": 63970080,
"domNodes": -261,
"jsHeapTotalBytes": 15659008,
"scriptDurationMs": 505.2030000000001,
"eventListeners": -123,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "large-graph-zoom",
"durationMs": 3197.1719999999664,
"styleRecalcs": 66,
"styleRecalcDurationMs": 17.311,
"layouts": 60,
"layoutDurationMs": 7.536999999999999,
"taskDurationMs": 1373.7330000000002,
"heapDeltaBytes": 7589880,
"heapUsedBytes": 62570244,
"domNodes": -265,
"jsHeapTotalBytes": 18018304,
"scriptDurationMs": 505.1009999999999,
"eventListeners": -123,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.670000000000012,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "large-graph-zoom",
"durationMs": 3163.9320000000453,
"styleRecalcs": 66,
"styleRecalcDurationMs": 17.419,
"layouts": 60,
"layoutDurationMs": 7.341,
"taskDurationMs": 1322.012,
"heapDeltaBytes": 7785448,
"heapUsedBytes": 62085276,
"domNodes": -261,
"jsHeapTotalBytes": 17494016,
"scriptDurationMs": 507.618,
"eventListeners": -125,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66999999999998,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "minimap-idle",
"durationMs": 2032.9090000000178,
"styleRecalcs": 10,
"styleRecalcDurationMs": 8.541,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 520.704,
"heapDeltaBytes": 4134436,
"heapUsedBytes": 56477700,
"domNodes": -259,
"jsHeapTotalBytes": 16969728,
"scriptDurationMs": 92.55499999999999,
"eventListeners": -125,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "minimap-idle",
"durationMs": 2049.9550000000113,
"styleRecalcs": 11,
"styleRecalcDurationMs": 10.222999999999999,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 569.7149999999999,
"heapDeltaBytes": 3539292,
"heapUsedBytes": 56744708,
"domNodes": -259,
"jsHeapTotalBytes": 16027648,
"scriptDurationMs": 106.31600000000002,
"eventListeners": -125,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "minimap-idle",
"durationMs": 2049.4509999999764,
"styleRecalcs": 10,
"styleRecalcDurationMs": 8.841999999999999,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 511.28400000000005,
"heapDeltaBytes": 3924796,
"heapUsedBytes": 56778344,
"domNodes": -259,
"jsHeapTotalBytes": 15396864,
"scriptDurationMs": 92.14,
"eventListeners": -127,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "subgraph-dom-widget-clipping",
"durationMs": 579.3639999999982,
"styleRecalcs": 48,
"styleRecalcDurationMs": 11.729,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 384.499,
"heapDeltaBytes": 2737352,
"heapUsedBytes": 49408348,
"domNodes": 19,
"jsHeapTotalBytes": 16777216,
"scriptDurationMs": 148.443,
"eventListeners": 12,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.663333333333338,
"p95FrameDurationMs": 16.799999999999727
},
{
"name": "subgraph-dom-widget-clipping",
"durationMs": 558.3799999999997,
"styleRecalcs": 47,
"styleRecalcDurationMs": 11.774,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 354.0310000000001,
"heapDeltaBytes": 6504620,
"heapUsedBytes": 50891248,
"domNodes": 20,
"jsHeapTotalBytes": 13107200,
"scriptDurationMs": 124.11899999999999,
"eventListeners": 8,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "subgraph-dom-widget-clipping",
"durationMs": 527.7499999999691,
"styleRecalcs": 48,
"styleRecalcDurationMs": 11.629,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 347.369,
"heapDeltaBytes": 6733560,
"heapUsedBytes": 49442964,
"domNodes": 22,
"jsHeapTotalBytes": 13893632,
"scriptDurationMs": 122.82700000000001,
"eventListeners": 8,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "subgraph-idle",
"durationMs": 2009.301000000022,
"styleRecalcs": 10,
"styleRecalcDurationMs": 10.343000000000002,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 359.128,
"heapDeltaBytes": 19941136,
"heapUsedBytes": 63134512,
"domNodes": 20,
"jsHeapTotalBytes": 22544384,
"scriptDurationMs": 20.838,
"eventListeners": 4,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "subgraph-idle",
"durationMs": 2026.726999999994,
"styleRecalcs": 11,
"styleRecalcDurationMs": 11.844000000000001,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 363.564,
"heapDeltaBytes": 20646888,
"heapUsedBytes": 63780948,
"domNodes": 22,
"jsHeapTotalBytes": 22806528,
"scriptDurationMs": 21.192,
"eventListeners": 6,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "subgraph-idle",
"durationMs": 2013.0849999999327,
"styleRecalcs": 11,
"styleRecalcDurationMs": 11.007,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 345.13399999999996,
"heapDeltaBytes": 10601940,
"heapUsedBytes": 62737492,
"domNodes": 22,
"jsHeapTotalBytes": 25952256,
"scriptDurationMs": 17.446,
"eventListeners": 6,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "subgraph-mouse-sweep",
"durationMs": 1739.9330000000077,
"styleRecalcs": 78,
"styleRecalcDurationMs": 38.053000000000004,
"layouts": 16,
"layoutDurationMs": 4.5329999999999995,
"taskDurationMs": 724.4999999999999,
"heapDeltaBytes": 3234592,
"heapUsedBytes": 55031772,
"domNodes": 65,
"jsHeapTotalBytes": 26214400,
"scriptDurationMs": 101.617,
"eventListeners": 4,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "subgraph-mouse-sweep",
"durationMs": 1973.4980000000064,
"styleRecalcs": 84,
"styleRecalcDurationMs": 47.827999999999996,
"layouts": 16,
"layoutDurationMs": 4.417,
"taskDurationMs": 941.6450000000001,
"heapDeltaBytes": 11941460,
"heapUsedBytes": 54961168,
"domNodes": 74,
"jsHeapTotalBytes": 22806528,
"scriptDurationMs": 108.87100000000002,
"eventListeners": 6,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66333333333335,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "subgraph-mouse-sweep",
"durationMs": 1957.0429999999988,
"styleRecalcs": 83,
"styleRecalcDurationMs": 42.937000000000005,
"layouts": 16,
"layoutDurationMs": 4.234,
"taskDurationMs": 906.058,
"heapDeltaBytes": 11864960,
"heapUsedBytes": 54652984,
"domNodes": 72,
"jsHeapTotalBytes": 22806528,
"scriptDurationMs": 100.974,
"eventListeners": 6,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "viewport-pan-sweep",
"durationMs": 8189.641999999993,
"styleRecalcs": 252,
"styleRecalcDurationMs": 45.141999999999996,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 3666.8869999999997,
"heapDeltaBytes": 27405572,
"heapUsedBytes": 78110220,
"domNodes": -255,
"jsHeapTotalBytes": 17960960,
"scriptDurationMs": 1262.609,
"eventListeners": -109,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "viewport-pan-sweep",
"durationMs": 8214.34099999999,
"styleRecalcs": 250,
"styleRecalcDurationMs": 45.126,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 3920.139,
"heapDeltaBytes": 25902272,
"heapUsedBytes": 76892412,
"domNodes": -257,
"jsHeapTotalBytes": 20320256,
"scriptDurationMs": 1296.415,
"eventListeners": -111,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66333333333332,
"p95FrameDurationMs": 16.80000000000109
},
{
"name": "viewport-pan-sweep",
"durationMs": 8205.78599999999,
"styleRecalcs": 251,
"styleRecalcDurationMs": 43.931,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 3908.636,
"heapDeltaBytes": 35286496,
"heapUsedBytes": 86118476,
"domNodes": -258,
"jsHeapTotalBytes": 26611712,
"scriptDurationMs": 1481.3449999999998,
"eventListeners": -111,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "vue-large-graph-idle",
"durationMs": 12234.673999999985,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 12223.876,
"heapDeltaBytes": -37772784,
"heapUsedBytes": 158591252,
"domNodes": -8331,
"jsHeapTotalBytes": 18440192,
"scriptDurationMs": 599.0490000000001,
"eventListeners": -16466,
"totalBlockingTimeMs": 0,
"frameDurationMs": 17.219999999999953,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "vue-large-graph-idle",
"durationMs": 12340.532999999994,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 12328.47,
"heapDeltaBytes": -32634540,
"heapUsedBytes": 166510264,
"domNodes": -8331,
"jsHeapTotalBytes": 27353088,
"scriptDurationMs": 625.158,
"eventListeners": -16466,
"totalBlockingTimeMs": 0,
"frameDurationMs": 17.223333333333237,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "vue-large-graph-idle",
"durationMs": 12179.585999999972,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 12166.784,
"heapDeltaBytes": -27464976,
"heapUsedBytes": 167240604,
"domNodes": -8331,
"jsHeapTotalBytes": 19226624,
"scriptDurationMs": 585.4540000000001,
"eventListeners": -16461,
"totalBlockingTimeMs": 0,
"frameDurationMs": 17.219999999999953,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "vue-large-graph-pan",
"durationMs": 14795.786000000022,
"styleRecalcs": 69,
"styleRecalcDurationMs": 15.35700000000001,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 14750.359999999999,
"heapDeltaBytes": -50483868,
"heapUsedBytes": 159932320,
"domNodes": -8333,
"jsHeapTotalBytes": -4104192,
"scriptDurationMs": 891.811,
"eventListeners": -16458,
"totalBlockingTimeMs": 0,
"frameDurationMs": 17.223333333333358,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "vue-large-graph-pan",
"durationMs": 14254.507000000047,
"styleRecalcs": 68,
"styleRecalcDurationMs": 13.46200000000003,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 14233.592000000002,
"heapDeltaBytes": -46400972,
"heapUsedBytes": 147876636,
"domNodes": -8331,
"jsHeapTotalBytes": -172032,
"scriptDurationMs": 857.9919999999998,
"eventListeners": -16492,
"totalBlockingTimeMs": 0,
"frameDurationMs": 17.776666666666642,
"p95FrameDurationMs": 16.80000000000291
},
{
"name": "vue-large-graph-pan",
"durationMs": 14843.651000000023,
"styleRecalcs": 69,
"styleRecalcDurationMs": 15.337000000000046,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 14812.233,
"heapDeltaBytes": -32429120,
"heapUsedBytes": 160125488,
"domNodes": -8335,
"jsHeapTotalBytes": -1220608,
"scriptDurationMs": 915.3,
"eventListeners": -16458,
"totalBlockingTimeMs": 0,
"frameDurationMs": 17.776666666666642,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "workflow-execution",
"durationMs": 452.9749999999808,
"styleRecalcs": 19,
"styleRecalcDurationMs": 30.81,
"layouts": 5,
"layoutDurationMs": 1.6219999999999999,
"taskDurationMs": 147.947,
"heapDeltaBytes": 4745340,
"heapUsedBytes": 55104708,
"domNodes": 169,
"jsHeapTotalBytes": 524288,
"scriptDurationMs": 34.096000000000004,
"eventListeners": 71,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.663333333333338,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "workflow-execution",
"durationMs": 443.4400000000096,
"styleRecalcs": 15,
"styleRecalcDurationMs": 22.252,
"layouts": 5,
"layoutDurationMs": 1.4249999999999998,
"taskDurationMs": 112.71000000000001,
"heapDeltaBytes": 4351716,
"heapUsedBytes": 48720824,
"domNodes": 154,
"jsHeapTotalBytes": 0,
"scriptDurationMs": 24.908,
"eventListeners": 71,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.799999999999727
},
{
"name": "workflow-execution",
"durationMs": 109.26800000004278,
"styleRecalcs": 11,
"styleRecalcDurationMs": 21.284000000000002,
"layouts": 4,
"layoutDurationMs": 1.276,
"taskDurationMs": 91.46700000000003,
"heapDeltaBytes": 2718948,
"heapUsedBytes": 48292164,
"domNodes": 143,
"jsHeapTotalBytes": 0,
"scriptDurationMs": 21.885,
"eventListeners": 37,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66333333333332,
"p95FrameDurationMs": 16.800000000000182
}
]
} |
| const isValid = Object.values(prompt).every((node) => { | ||
| if (!node || typeof node !== 'object' || Array.isArray(node)) return false | ||
| const record = node as Record<string, unknown> | ||
| return ( | ||
| typeof record.class_type === 'string' && | ||
| record.inputs !== null && | ||
| typeof record.inputs === 'object' && | ||
| !Array.isArray(record.inputs) | ||
| ) | ||
| }) |
There was a problem hiding this comment.
Is there anything specific that this check is protecting against? If so, we should document it in a comment. If not, I would lean towards removing the check unless there's a strong argument that something that isn't a prompt might be at this field.
There was a problem hiding this comment.
Good call — you're right that there's no realistic scenario where non-prompt data ends up at workflow.prompt. That field is backend-controlled and its semantic meaning is unambiguous. The zWorkflowContainer Zod schema already validates the outer structure, so the manual shape check was over-engineering.
Removed the isValid check and the corresponding test cases. The function now just does the empty-object guard and returns the prompt directly.
The prompt field at workflow.prompt is a well-defined backend field that always contains the API prompt. The zWorkflowContainer Zod schema already validates the outer structure. The manual isValid check was over-engineering with no realistic scenario where non-prompt data would appear at that field.
📝 WalkthroughWalkthroughThe changes implement a prompt extraction and fallback mechanism for job workflows. A new Changes
Sequence DiagramsequenceDiagram
participant UI as useJobMenu
participant Service as jobOutputCache
participant Extract as fetchJobs
participant Schema as zod Validator
UI->>Service: getJobWorkflow(id)
Service-->>UI: workflow | undefined
alt No workflow
UI->>Service: getJobPrompt(id)
Service->>Service: getJobDetail(id)
Service->>Extract: extractPrompt(jobDetail)
Extract->>Schema: zWorkflowContainer.safeParse()
Schema-->>Extract: validated container
Extract-->>Service: prompt | undefined
Service-->>UI: prompt | undefined
alt Prompt available
UI->>UI: load prompt via app.loadApiJson()
end
end
Estimated Code Review Effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
Caution Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional.
❌ Failed checks (1 error)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/composables/queue/useJobMenu.ts (1)
191-214: Consider adding user feedback when no workflow data is available.When both
getJobWorkflowandgetJobPromptreturnundefined, the function silently returns without any user indication. This could be confusing for users who expect an export.💡 Optional: Add user notification for missing workflow data
const exportJobWorkflow = async () => { const item = currentMenuItem() if (!item) return const data = (await getJobWorkflow(item.id)) ?? (await getJobPrompt(item.id)) - if (!data) return + if (!data) { + useDialogService().showErrorDialog( + new Error(t('queue.jobMenu.noWorkflowData', 'No workflow data available for this job')) + ) + return + }🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/composables/queue/useJobMenu.ts` around lines 191 - 214, In exportJobWorkflow, when currentMenuItem() exists but both getJobWorkflow(item.id) and getJobPrompt(item.id) return undefined and the function currently returns silently, show user feedback instead of returning quietly: detect the missing data case after resolving data, and invoke the app's user-notification API (e.g., useDialogService().alert or the project's toast/notification helper) with a clear message like "No workflow or prompt available to export" before returning; reference the existing symbols exportJobWorkflow, currentMenuItem, getJobWorkflow, getJobPrompt and useDialogService/useToast to locate where to add the notification.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@src/composables/queue/useJobMenu.ts`:
- Around line 191-214: In exportJobWorkflow, when currentMenuItem() exists but
both getJobWorkflow(item.id) and getJobPrompt(item.id) return undefined and the
function currently returns silently, show user feedback instead of returning
quietly: detect the missing data case after resolving data, and invoke the app's
user-notification API (e.g., useDialogService().alert or the project's
toast/notification helper) with a clear message like "No workflow or prompt
available to export" before returning; reference the existing symbols
exportJobWorkflow, currentMenuItem, getJobWorkflow, getJobPrompt and
useDialogService/useToast to locate where to add the notification.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 4a6cfc77-0ad4-4010-8456-d4b5c993b365
📒 Files selected for processing (5)
src/composables/queue/useJobMenu.tssrc/platform/remote/comfyui/jobs/fetchJobs.tssrc/platform/remote/comfyui/jobs/jobTypes.tssrc/platform/workflow/cloud/getWorkflowFromHistory.test.tssrc/services/jobOutputCache.ts
Draft Review — Architectural FeedbackVerdict: 🟡 Needs course correction What's looking good
Architectural concerns
Suggested directionUnify the two branches in This is an early-stage review focused on direction — detailed line-by-line feedback will come when the PR is marked ready for review. |
|
Any chance this is getting merged ? |
…a723f2) (#18072) <!-- ccr-slack-attribution --> _Requested by **Christian Byrne** · [Slack thread](https://comfy-organization.slack.com/archives/C0BGH348Z0C/p1789443681716789?thread_ts=1789443681.716789&cid=C0BGH348Z0C)_ ## Summary This PR stacks on #13957 (`matt/fe-1332-open-as-workflow-api-graph-fallback`) and adds verification tests only — no production code changes. It exercises that PR's `workflow.prompt` fallback against the job shape reported in **PM-1150** (job `33a723f2-bf1f-4faf-9c42-1b83e2185601`) end to end, which #13957's own description flags as unverified ("no run against a live API-submitted cloud job"). **Before:** opening an agent-submitted job as a workflow (right-click asset → "Open as workflow in new tab") throws "No workflow data available", with no test anywhere asserting that clicking that menu item succeeds — the existing `assets.spec.ts` coverage only ever asserted the menu item is *visible*, never clicked it. **After:** this PR adds a Playwright E2E test (`browser_tests/tests/sidebar/assetsSidebarTab.spec.ts`, using typed `jobsRoutes` mocks) and two unit tests in `fetchJobs.test.ts` that exercise a **representative synthetic** job-detail payload (`workflow.prompt` present, `workflow.extra_data.extra_pnginfo.workflow` absent — the shape comfy-cli's `run` command produces, per direct source citation of that command). No captured job-detail response for the real PM-1150 job is available (checked the Linear issue and this thread), so the fixtures are labeled as representative synthetic coverage, not a byte-for-byte reproduction of the production payload — see `browser_tests/fixtures/data/pm1150AgentJob.ts` for the fixture and its provenance note. The browser test right-clicks the asset, clicks "Open as workflow in new tab", and asserts the graph actually loads: new tab named after the asset, correct node count, expected node types (`CheckpointLoaderSimple`, `KSampler`, `SaveImage`), and a screenshot of the rebuilt canvas. The unit tests round-trip the same representative shape through the actual `zJobDetail`/`zWorkflowContainer` schema and `extractApiPrompt`, tying the existing (already-thorough) unit coverage in #13957 back to the concrete production bug and job id. ## Verification run (this sandbox) - **Unit (Vitest)** — ran successfully in this environment: ``` $ pnpm exec vitest run src/platform/remote/comfyui/jobs/fetchJobs.test.ts Test Files 1 passed (1) Tests 36 passed (36) <- includes the PM-1150 round-trip test ``` Also re-ran the pre-existing suites the fallback touches to confirm no regression: ``` $ pnpm exec vitest run src/platform/assets/composables/useMediaAssetActions.test.ts src/platform/workflow/utils/workflowExtractionUtil.test.ts Test Files 2 passed (2) Tests 75 passed (75) ``` - **Typecheck / lint / format** — clean on this branch (`pnpm typecheck`, `pnpm typecheck:browser`, `pnpm exec eslint`, `pnpm exec oxfmt`, `pnpm exec knip` all pass on the changed files; these ran automatically via the repo's pre-commit/pre-push hooks on every commit). - **E2E (Playwright)** — could not be executed directly in this sandbox (no running ComfyUI backend, no reachable container registry). **CI has now supplied that signal**: on head `28588185302e6950e7b19acff665954e456cc13e`, `e2e-status` and all 16 Chromium shards passed, with 1,899 Playwright tests reported passing, including this spec. That is a real, green, mocked-browser CI run of the new test — not merely "CI needs to supply it." What it does **not** prove: (1) a run against a captured live PM-1150 payload (none exists — see Summary), and (2) a base-red/head-green regression comparison (this PR adds coverage; it does not diff behavior between the base and head commits of `main`). This is direct regression coverage of the fallback path, not a diff-in-behavior proof. ## Root cause reference - PM-1150 (job `33a723f2-bf1f-4faf-9c42-1b83e2185601`): https://linear.app/comfyorg/issue/PM-1150/test-agent-generated-job-33a723f2-has-no-workflow-attached - Root cause and fix: #13957 (this PR's base). comfy-cli's `run` command (used by the in-app agent's backend service to submit jobs) never populates `extra_data.extra_pnginfo.workflow`, only the API-format `prompt` graph plus a top-level `workflow_id` — confirmed by direct `comfy-cli` source citation. ## Unresolved / follow-ups - Nothing found broken in #13957's implementation for this shape — no `test.fail()` cases were needed. - No captured job-detail response for the real PM-1150 job (`33a723f2-...`) exists in the accessible issue or this thread, so both the browser and unit fixtures are representative synthetic payloads, not the exact production payload — flagged and addressed per review (see `browser_tests/fixtures/data/pm1150AgentJob.ts`). - The sibling queue-menu fallback (`useJobMenu.ts`, PR #10929, draft) is untouched, per the original task scope. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01HM7CsjSRbMvmJtg8hU8N8d --- _Generated by [Claude Code](https://claude.ai/code/session_01HM7CsjSRbMvmJtg8hU8N8d)_ Co-authored-by: bymyself <cbyrne@comfy.org>
…Comfy-Org#13957) ## ELI-5 When you generate an image through the API (or the Comfy MCP), the job never stores the editor file the canvas saves — only the machine-format graph. Drop that machine-format JSON on the canvas and it rebuilds a workflow just fine, but the asset three-dots "Open this workflow in a new tab" just said there was no workflow data. This teaches the menu the same trick the canvas already knows: no editor workflow, open the stored machine-format graph instead. Nothing is written back to the job or the asset — save it yourself if you want to keep it. ## Summary The asset menu's "Open this workflow in a new tab" now falls back to the API-format graph a job stores at `workflow.prompt` when `extra_data.extra_pnginfo.workflow` is absent, loading it through `app.loadApiJson` — the same loader the canvas uses for a dropped API-format JSON file, ending in the same `afterLoadNewGraph` new-tab handoff. ## Changes - `jobTypes.ts`: `zWorkflowContainer` also parses `prompt` (it was previously stripped). - `fetchJobs.ts`: `extractApiPrompt()` — returns the stored API graph **only** when no editor workflow is embedded. An embedded workflow always suppresses the fallback, so frontend/desktop submissions are used as-is and never re-derived (this holds even when that embedded workflow fails validation, which is deliberate — presence, not validity, is the switch). - `jobOutputCache.ts` / `workflowExtractionUtil.ts`: `getJobApiPrompt()` / `extractApiPromptFromAsset()`, reusing the same LRU-cached job detail, so the fallback costs no extra request. - `useMediaAssetActions.ts`: single-asset `openWorkflow` and bulk `openMultipleWorkflows` both go through one `openAssetWorkflow` helper that uses the fallback when extraction yields no workflow, gated by `app.isApiJson`. The fallback returns the same `{ success, error }` shape as `openWorkflowAction`, with the prompt fetch and the load inside one try/catch, so a failure at either step degrades to the warning toast with the underlying message rather than escaping as an unhandled rejection. - `app.ts`: the canvas drop path's `await this.loadApiJson(...)` gets its own `try`/`catch`, reporting through `showErrorOnFileLoad`. Previously a failed load fell into `handleFile`'s prompt-parse `catch` and continued on to the A1111-parameters fallback, surfacing a misleading parse error instead of the real one. - `assetSchema.ts`: `zAsset` accepts a `null` `user_metadata` and normalizes it to `undefined`. The generated ingest shape is `.optional()`, which rejects an explicit `null` outright — so an asset whose payload carried one failed `safeParse` and was dropped entirely rather than reaching the metadata guard. The fallback engages only on the branch that previously always failed, so no existing behavior changes. One incidental improvement: that branch's toast now shows the translated `mediaAsset.noWorkflowDataFound` instead of the raw English `'No workflow data available'` that leaked out of `openWorkflowAction`. ## Deviation from the plan — please read The plan for this called for converting the stored graph with the extracted `@comfyorg/api-to-workflow` package and feeding the result to `loadGraphData`. **That package is not consumable from this repo today**, verified rather than assumed: - `npm view @comfyorg/api-to-workflow` → `E404`, while `npm view @comfyorg/comfyui-electron-types version` → `0.7.0` from the same registry and scope, so this is a genuine absence, not a registry/auth artifact. - Its source repo is **private**, and the package directory there holds only `README`/`package.json`/`tsconfig` — it compiles from that repo's own `src/converter`. So a git dependency is not an option either: this repo is public and every contributor's `pnpm install` and CI would fail. So this ships the fallback through the converter the frontend **already has** and already ships in the drop path, which is also what the plan named as the behavioral target ("same downstream behavior as the chunk path" — `handleFile` prefers the `workflow` chunk and falls back to the `prompt` chunk via `loadApiJson`). No second copy of any converter is introduced. When the package is published, swapping `openApiPromptAsWorkflow` to convert-then-`loadGraphData` is a contained change, and it would also be the moment to retire `app.loadApiJson`'s in-place path for the drop path too. ## Deliberately not in scope - **Export workflow** still reports no workflow for these assets. Export needs a serialized workflow document, which `loadApiJson` cannot produce without mutating the user's open graph. That wants the pure converter, so it is left for the package. - The **queue** job menu is a separate call path and untouched. ## Overlap to be aware of Open draft Comfy-Org#10929 (@guill, last updated May) does the same fallback for the **queue** menu in `useJobMenu.ts` and touches `fetchJobs.ts` / `jobTypes.ts` / `jobOutputCache.ts` too, so the two will conflict textually. Neither supersedes the other on behavior — that PR covers the queue menu, this covers the asset menu. Whichever lands second should rebase onto the first and reuse its `prompt` plumbing rather than duplicating it. I have not touched Comfy-Org#10929. ## Merge with `main` Merged `main` in. One textual conflict (an import block in `jobOutputCache.test.ts`, both sides kept) and one semantic one that no conflict marker would have shown: Comfy-Org#15381 changed `isOutputAssetMetadata` to require `subfolder` rather than `nodeId`, so this PR's `'missing nodeId'` negative case (`{ jobId, subfolder }`) is now *valid* output metadata and the fallback correctly fires for it. That row is realigned to `'missing subfolder'`, which is what the current guard actually rejects. No production code changed for this — the guard is shared with `extractWorkflowFromAsset`, which already followed `main`. Merged `main` a second time (`27f79c4d42`) to pick up Comfy-Org#16577, which temporarily disables the automatic custom-node suites. Those two `custom_nodes_e2e` shards were the branch's only red checks and their failure came from `main`, not this diff — a stale `ROUNDTRIP_VALUE_ALLOWED_KEYS` allowance for VHS `per_batch` that Comfy-Org#15381 made obsolete (analysis in the comment thread; the real ledger fix is Comfy-Org#16567). Clean merge, no conflicts. ## Review Focus - The synthesized graph has invented layout and no groups/reroutes; that is inherent to API format and accepted here. - `extractApiPrompt` returns `unknown` on purpose: the canonical format check is `app.isApiJson`, a type guard, and importing `app` into the remote layer to use it there would invert the layering. ## Provenance - **Authored by:** agent-work loop - **Verified:** re-verified on the merged tree at `27f79c4d42`: `pnpm vitest run` over the five touched suites plus `src/platform/assets` — 55 files, 931 passed, 1 skipped, 0 failed; `pnpm typecheck`, `pnpm format:check` and `eslint` on the changed files all clean (only the pre-existing `apiSchema is deprecated` warnings on imports this PR did not add). `pnpm test:unit` on the previous head — 1455/1457 files pass; the two failures (`scripts/cicd/check-binary-size.test.ts`, `useFreeTierQuota.test.ts`) reproduce identically on unmodified `origin/main` and are a local Node 24 vs required >=25 artifact, not this branch. Merges clean with `main` (`mergeable: MERGEABLE`); no merge-queue run has ever been ejected for this PR. - **Deviations:** the planned `@comfyorg/api-to-workflow` conversion path was not used — see "Deviation from the plan" above for the evidence. Still unverified end to end: no run against a live API-submitted cloud job, so the assertion that these jobs populate `workflow.prompt` and omit `extra_pnginfo.workflow` rests on the plan and Comfy-Org#10929's manual repro rather than a first-hand reproduction. CodeRabbit's transactional-`loadApiJson` finding is deferred rather than fixed here — pre-existing across `loadGraphData` / `importA1111` too, and a design call; recorded as a follow-up (rationale on the resolved thread). --------- Co-authored-by: bymyself <cbyrne@comfy.org> Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
|
Additional evidence from a local ComfyUI installation using comfyui_frontend_package 1.57.4: The user reports that Assets → Open as workflow succeeds for the same completed API-submitted jobs for which Queue → Open as workflow in new tab does nothing, including cases where the output image file is missing. Read-only investigation found:
This supports using the existing Assets behavior for completed API jobs in Queue as well. Reconstructing from API format would naturally lose the original canvas layout. Related: #9101 and #22890. The latter would explain the refusal with a warning, but would not provide the fallback proposed here. The behavior above was reported by the user; the code paths and stored job metadata were independently inspected without invoking either opening action or altering the queue. |
PR Created by the Glary-Bot Agent
Summary
extra_pnginfo.workflowis not availableProblem
API-dispatched workflows (submitted via
/api/prompt) don't populateextra_data.extra_pnginfo.workflowbecause API clients typically don't sendextra_data. The "Open as workflow in new tab" and "Export workflow" menu actions only looked inextra_pnginfo.workflow, silently failing for API jobs.Solution
When
extra_pnginfo.workflowis missing, the code now falls back to extracting the API-format prompt fromworkflow.prompt(which is always stored for all jobs). The prompt data is loaded viaapp.loadApiJson(), which creates nodes, wires connections, and auto-arranges the layout.Changes
jobTypes.tszWorkflowContainerto parsepromptfieldfetchJobs.tsextractPrompt()to extract API-format prompt from job detailjobOutputCache.tsgetJobPrompt()with LRU cachinguseJobMenu.tsopenJobWorkflowfalls back toloadApiJson;exportJobWorkflowfalls back to prompt exportgetWorkflowFromHistory.test.tsextractPromptcovering happy path and edge casesVerification
Manually tested end-to-end:
POST /api/prompt(noextra_data)promptbut noextra_pnginfo.workflowScreenshots
┆Issue is synchronized with this Notion page by Unito