Repository navigation
[backport cloud/1.59] fix(agent): keep an unopened unsaved tab when the workflow picker saves it (FRONT-3774) - #22817
Conversation
…aves it (#22648) After a reload, unsaved tabs that have not been opened yet stay unloaded. Picking one in the Agent's workflow picker saved it before loading it, so the pick failed with "Save failed · Cannot save workflow 'workflows/<tab name>.json' before it is loaded" and the chat did not switch. The picker now loads an unloaded tab with a new `workflowService.loadWorkflowInBackground` before saving it, so the pick succeeds. The helper loads through the serialized load queue and sets the tab's app/graph mode the way opening it would (so an app is saved as `.app.json`). It does not switch the canvas, so a reference pick leaves the visible workflow alone. The unsaved check runs again right before the save, so a tab saved meanwhile is not saved twice. Found in release QA case C-163 on stagingcloud 1.59.3. Linear: [FRONT-3774](https://linear.app/comfyorg/issue/FRONT-3774). **Merge order:** merge #22649 first. It fixes the draft being deleted (on a same-path save and on a restored tab's first load); without it, a failed save here would still lose the restored tab's draft. Not a 1.59 regression: the same code is on every current train (1.56 to 1.59). - Unit: `useAgentWorkflowSelection.test.ts` "loads an unsaved tab a reload left unopened before saving it". Red on `main` with the reported toast text, green with the fix. Plus "does not save a second copy when loading the tab finds it already saved" and "keeps the visible workflow when an unopened unsaved tab is picked as a reference" (red on the earlier open-first version). All 31 tests pass. `workflowService.test.ts` pins the helper's mode for `linearMode` true and false (151 pass), and all 573 in `AgentPanelRoot.test.ts`. The panel test's mock tabs now report `isLoaded: true`, matching a real workflow with a change tracker. - Browser (`@cloud`): `agentWorkflowSelection.spec.ts` "picks an unsaved tab a reload left unopened" follows the QA steps: two unsaved tabs, a Note node in the first, reload, check the first tab is restored unloaded, pick it. It then checks the picker switches, no "Save failed" toast shows, and the saved file contains the Note node. Runs in CI. - Human QA after deploy: repeat the C-163 steps on stagingcloud. Expected: the chat switches to the picked tab and no "Save failed" toast appears. (cherry picked from commit 816ea98)
|
Important Review skippedIgnore keyword(s) in the title. ⛔ Ignored keywords: 2
Please check the settings in the CodeRabbit UI or the
|
📦 Bundle: ⏳ Size data collection in progress…⚡ Performance: ❌ 7 below 52 FPS target · ℹ️ No baseline — significance unavailable
DetailsScenario timings
Absolute values
Raw data{
"timestamp": "2026-11-03T14:32:35.704Z",
"gitSha": "360d00dd0d9eb28fd8d72f6690c3add5448917b7",
"branch": "backport-22648-to-cloud-1.59",
"measurements": [
{
"name": "canvas-idle",
"durationMs": 2052.2280000000137,
"styleRecalcs": 8,
"styleRecalcDurationMs": 2.6449999999999996,
"layouts": 8,
"layoutDurationMs": 2.5190000000000006,
"taskDurationMs": 604.362,
"heapDeltaBytes": 6190164,
"heapUsedBytes": 76155824,
"domNodes": -161,
"jsHeapTotalBytes": 9437184,
"scriptDurationMs": 10.902000000000003,
"eventListeners": -69,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66585365853659,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "canvas-idle",
"durationMs": 2022.7350000000115,
"styleRecalcs": 9,
"styleRecalcDurationMs": 2.8850000000000002,
"layouts": 9,
"layoutDurationMs": 2.8559999999999994,
"taskDurationMs": 562.533,
"heapDeltaBytes": 2597536,
"heapUsedBytes": 64212424,
"domNodes": 0,
"jsHeapTotalBytes": 8126464,
"scriptDurationMs": 11.004,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66611570247934,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "canvas-mouse-sweep",
"durationMs": 1856.3599999999951,
"styleRecalcs": 79,
"styleRecalcDurationMs": 14.225999999999999,
"layouts": 8,
"layoutDurationMs": 2.596,
"taskDurationMs": 926.5300000000001,
"heapDeltaBytes": 24360380,
"heapUsedBytes": 85407072,
"domNodes": 0,
"jsHeapTotalBytes": 9699328,
"scriptDurationMs": 157.835,
"eventListeners": 6,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "canvas-mouse-sweep",
"durationMs": 1824.2109999999911,
"styleRecalcs": 76,
"styleRecalcDurationMs": 13.147999999999998,
"layouts": 8,
"layoutDurationMs": 2.247,
"taskDurationMs": 929.772,
"heapDeltaBytes": -10812212,
"heapUsedBytes": 59043588,
"domNodes": -161,
"jsHeapTotalBytes": 11272192,
"scriptDurationMs": 148.78,
"eventListeners": -69,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.821296296296296,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "canvas-zoom-sweep",
"durationMs": 1706.1990000000264,
"styleRecalcs": 19,
"styleRecalcDurationMs": 5.696,
"layouts": 10,
"layoutDurationMs": 3.3910000000000005,
"taskDurationMs": 445.7,
"heapDeltaBytes": 24553696,
"heapUsedBytes": 86341992,
"domNodes": 56,
"jsHeapTotalBytes": 7340032,
"scriptDurationMs": 13.108999999999996,
"eventListeners": 43,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "canvas-zoom-sweep",
"durationMs": 1738.346999999976,
"styleRecalcs": 19,
"styleRecalcDurationMs": 5.549999999999999,
"layouts": 7,
"layoutDurationMs": 2.7630000000000003,
"taskDurationMs": 434.19700000000006,
"heapDeltaBytes": 24663308,
"heapUsedBytes": 86051288,
"domNodes": 56,
"jsHeapTotalBytes": 7602176,
"scriptDurationMs": 14.133,
"eventListeners": 43,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666346153846156,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "dom-widget-clipping",
"durationMs": 752.2300000000257,
"styleRecalcs": 13,
"styleRecalcDurationMs": 3.249,
"layouts": 9,
"layoutDurationMs": 2.759,
"taskDurationMs": 510.74999999999994,
"heapDeltaBytes": 6496380,
"heapUsedBytes": 67400004,
"domNodes": 0,
"jsHeapTotalBytes": 9175040,
"scriptDurationMs": 165.52,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "dom-widget-clipping",
"durationMs": 709.384,
"styleRecalcs": 14,
"styleRecalcDurationMs": 2.9810000000000003,
"layouts": 10,
"layoutDurationMs": 2.848,
"taskDurationMs": 492.604,
"heapDeltaBytes": 3508636,
"heapUsedBytes": 65263880,
"domNodes": 0,
"jsHeapTotalBytes": 7602176,
"scriptDurationMs": 163.839,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665116279069764,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "dom-widget-order-dense-n200-w200-i120",
"durationMs": 1209.9389999999914,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 934.82,
"heapDeltaBytes": -11620128,
"heapUsedBytes": 75602808,
"domNodes": -191,
"jsHeapTotalBytes": 21766144,
"scriptDurationMs": 65.589,
"eventListeners": -107,
"totalBlockingTimeMs": 530,
"frameDurationMs": 32.88378378378379,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "dom-widget-order-dense-n200-w200-i120",
"durationMs": 1224.9689999999873,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 919.5080000000002,
"heapDeltaBytes": -11760396,
"heapUsedBytes": 75857256,
"domNodes": -191,
"jsHeapTotalBytes": 20193280,
"scriptDurationMs": 64.89299999999999,
"eventListeners": -107,
"totalBlockingTimeMs": 529,
"frameDurationMs": 32.88108108108108,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "dom-widget-order-sparse-n1000-w20-i120",
"durationMs": 860.5850000000146,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 517.6560000000001,
"heapDeltaBytes": -4580124,
"heapUsedBytes": 70310328,
"domNodes": 0,
"jsHeapTotalBytes": 0,
"scriptDurationMs": 144.457,
"eventListeners": 0,
"totalBlockingTimeMs": 227,
"frameDurationMs": 25.48823529411763,
"p95FrameDurationMs": 16.80000000000109
},
{
"name": "dom-widget-order-sparse-n1000-w20-i120",
"durationMs": 895.1079999999934,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 568.9979999999997,
"heapDeltaBytes": -28664708,
"heapUsedBytes": 67185156,
"domNodes": -191,
"jsHeapTotalBytes": 3276800,
"scriptDurationMs": 152.099,
"eventListeners": -107,
"totalBlockingTimeMs": 225,
"frameDurationMs": 24.324324324324323,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "extension-clean-combined-draw",
"durationMs": 10157.16900000001,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 9224.400999999998,
"heapDeltaBytes": 87837052,
"heapUsedBytes": 162414360,
"domNodes": -257,
"jsHeapTotalBytes": 74313728,
"scriptDurationMs": 7208.857,
"eventListeners": -69,
"totalBlockingTimeMs": 315,
"frameDurationMs": 27.96060606060606,
"p95FrameDurationMs": 50
},
{
"name": "extension-clean-combined-draw",
"durationMs": 9893.371000000003,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 9063.066,
"heapDeltaBytes": 66644220,
"heapUsedBytes": 139781980,
"domNodes": -257,
"jsHeapTotalBytes": 73789440,
"scriptDurationMs": 7154.325999999999,
"eventListeners": -69,
"totalBlockingTimeMs": 203,
"frameDurationMs": 28.39913793103449,
"p95FrameDurationMs": 50.099999999998545
},
{
"name": "extension-rgthree-prototype-draw",
"durationMs": 9465.07699999998,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 8657.992,
"heapDeltaBytes": 49978848,
"heapUsedBytes": 122693160,
"domNodes": -257,
"jsHeapTotalBytes": 56487936,
"scriptDurationMs": 6757.145,
"eventListeners": -69,
"totalBlockingTimeMs": 256,
"frameDurationMs": 28.685757575757577,
"p95FrameDurationMs": 50.099999999998545
},
{
"name": "extension-rgthree-prototype-draw",
"durationMs": 9879.025999999954,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 9060.366,
"heapDeltaBytes": 84192476,
"heapUsedBytes": 157326196,
"domNodes": -257,
"jsHeapTotalBytes": 71692288,
"scriptDurationMs": 7138.49,
"eventListeners": -69,
"totalBlockingTimeMs": 183,
"frameDurationMs": 28.189428571428575,
"p95FrameDurationMs": 50
},
{
"name": "large-combo-open",
"durationMs": 306.69799999998304,
"styleRecalcs": 26,
"styleRecalcDurationMs": 16.3,
"layouts": 11,
"layoutDurationMs": 3.7010000000000005,
"taskDurationMs": 251.755,
"heapDeltaBytes": -17338440,
"heapUsedBytes": 58600228,
"domNodes": 936,
"jsHeapTotalBytes": 1835008,
"scriptDurationMs": 10.124,
"eventListeners": 205,
"totalBlockingTimeMs": 0,
"frameDurationMs": 23.07692307692304,
"p95FrameDurationMs": 100
},
{
"name": "large-combo-open",
"durationMs": 222.23800000000438,
"styleRecalcs": 23,
"styleRecalcDurationMs": 13.062999999999999,
"layouts": 10,
"layoutDurationMs": 2.965,
"taskDurationMs": 159.404,
"heapDeltaBytes": 14671056,
"heapUsedBytes": 75100228,
"domNodes": 936,
"jsHeapTotalBytes": 0,
"scriptDurationMs": 9.033,
"eventListeners": 205,
"totalBlockingTimeMs": 0,
"frameDurationMs": 21.66999999999998,
"p95FrameDurationMs": 66.70000000000027
},
{
"name": "large-graph-idle",
"durationMs": 2041.00600000001,
"styleRecalcs": 8,
"styleRecalcDurationMs": 2.1479999999999997,
"layouts": 7,
"layoutDurationMs": 1.83,
"taskDurationMs": 661.5350000000001,
"heapDeltaBytes": -13287164,
"heapUsedBytes": 62067560,
"domNodes": -257,
"jsHeapTotalBytes": 3272704,
"scriptDurationMs": 33.662,
"eventListeners": -69,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66666666666667,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "large-graph-idle",
"durationMs": 2056.498999999917,
"styleRecalcs": 9,
"styleRecalcDurationMs": 2.5599999999999996,
"layouts": 8,
"layoutDurationMs": 2.21,
"taskDurationMs": 683.4910000000001,
"heapDeltaBytes": 6886756,
"heapUsedBytes": 85373220,
"domNodes": -257,
"jsHeapTotalBytes": 3796992,
"scriptDurationMs": 36.535,
"eventListeners": -69,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665853658536584,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "large-graph-pan",
"durationMs": 2872.1100000000206,
"styleRecalcs": 68,
"styleRecalcDurationMs": 9.566,
"layouts": 6,
"layoutDurationMs": 1.9720000000000002,
"taskDurationMs": 1734.967,
"heapDeltaBytes": -14689048,
"heapUsedBytes": 62775572,
"domNodes": -257,
"jsHeapTotalBytes": 4583424,
"scriptDurationMs": 804.345,
"eventListeners": -67,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665697674418606,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "large-graph-pan",
"durationMs": 2425.60299999991,
"styleRecalcs": 69,
"styleRecalcDurationMs": 9.266,
"layouts": 7,
"layoutDurationMs": 2.027,
"taskDurationMs": 1671.0310000000002,
"heapDeltaBytes": -4162080,
"heapUsedBytes": 75927328,
"domNodes": -257,
"jsHeapTotalBytes": 4546560,
"scriptDurationMs": 776.588,
"eventListeners": -67,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665753424657535,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "large-graph-zoom",
"durationMs": 3987.129999999979,
"styleRecalcs": 70,
"styleRecalcDurationMs": 10.564999999999998,
"layouts": 64,
"layoutDurationMs": 11.4,
"taskDurationMs": 1851.805,
"heapDeltaBytes": -19396768,
"heapUsedBytes": 61272804,
"domNodes": -233,
"jsHeapTotalBytes": 5369856,
"scriptDurationMs": 788.4830000000001,
"eventListeners": -69,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666108786610877,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "large-graph-zoom",
"durationMs": 3995.8460000000287,
"styleRecalcs": 70,
"styleRecalcDurationMs": 11.091,
"layouts": 64,
"layoutDurationMs": 11.727,
"taskDurationMs": 1852.527,
"heapDeltaBytes": 6258424,
"heapUsedBytes": 86567992,
"domNodes": 24,
"jsHeapTotalBytes": 5242880,
"scriptDurationMs": 816.522,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66583333333333,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "legacy-node-drag",
"durationMs": 3153.745000000015,
"styleRecalcs": 44,
"styleRecalcDurationMs": 5.460000000000001,
"layouts": 4,
"layoutDurationMs": 1.1079999999999997,
"taskDurationMs": 1993.624,
"heapDeltaBytes": -7809828,
"heapUsedBytes": 73366256,
"domNodes": 0,
"jsHeapTotalBytes": 5505024,
"scriptDurationMs": 981.2350000000001,
"eventListeners": 182,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.84438502673797,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "legacy-node-drag",
"durationMs": 3158.8879999999335,
"styleRecalcs": 45,
"styleRecalcDurationMs": 5.457000000000001,
"layouts": 6,
"layoutDurationMs": 1.6949999999999998,
"taskDurationMs": 1999.9470000000001,
"heapDeltaBytes": -11149148,
"heapUsedBytes": 70234548,
"domNodes": 0,
"jsHeapTotalBytes": 6905856,
"scriptDurationMs": 1000.437,
"eventListeners": 182,
"totalBlockingTimeMs": 33,
"frameDurationMs": 17.02192513368984,
"p95FrameDurationMs": 16.799999999999727
},
{
"name": "minimap-geometry-cadence",
"durationMs": 3122.242,
"styleRecalcs": 7,
"styleRecalcDurationMs": 2.1310000000000002,
"layouts": 7,
"layoutDurationMs": 2.141,
"taskDurationMs": 822.739,
"heapDeltaBytes": -17971492,
"heapUsedBytes": 75666252,
"domNodes": -257,
"jsHeapTotalBytes": 6717440,
"scriptDurationMs": 378.75000000000006,
"eventListeners": -69,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66524064171123,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "minimap-geometry-cadence",
"durationMs": 3107.781999999986,
"styleRecalcs": 6,
"styleRecalcDurationMs": 1.6630000000000005,
"layouts": 6,
"layoutDurationMs": 1.5569999999999993,
"taskDurationMs": 807.2199999999999,
"heapDeltaBytes": -13342088,
"heapUsedBytes": 66605128,
"domNodes": -257,
"jsHeapTotalBytes": 4845568,
"scriptDurationMs": 374.621,
"eventListeners": -69,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "minimap-idle",
"durationMs": 2044.040999999993,
"styleRecalcs": 7,
"styleRecalcDurationMs": 2.3099999999999996,
"layouts": 7,
"layoutDurationMs": 2.221,
"taskDurationMs": 706.098,
"heapDeltaBytes": 683708,
"heapUsedBytes": 80633436,
"domNodes": -257,
"jsHeapTotalBytes": 3534848,
"scriptDurationMs": 41.326,
"eventListeners": -69,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665853658536587,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "minimap-idle",
"durationMs": 2046.7149999999492,
"styleRecalcs": 8,
"styleRecalcDurationMs": 2.5369999999999995,
"layouts": 7,
"layoutDurationMs": 2.111,
"taskDurationMs": 656.6840000000001,
"heapDeltaBytes": -29919792,
"heapUsedBytes": 62010952,
"domNodes": -257,
"jsHeapTotalBytes": 2785280,
"scriptDurationMs": 37.07,
"eventListeners": -69,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665853658536587,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "minimap-progress-execution-cadence",
"durationMs": 3059.4529999999904,
"styleRecalcs": 25,
"styleRecalcDurationMs": 10.657,
"layouts": 6,
"layoutDurationMs": 1.9999999999999996,
"taskDurationMs": 640.292,
"heapDeltaBytes": -7050700,
"heapUsedBytes": 84980264,
"domNodes": -238,
"jsHeapTotalBytes": 4620288,
"scriptDurationMs": 175.071,
"eventListeners": -69,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.6655737704918,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "minimap-progress-execution-cadence",
"durationMs": 2821.877000000029,
"styleRecalcs": 27,
"styleRecalcDurationMs": 13.001999999999999,
"layouts": 8,
"layoutDurationMs": 2.37,
"taskDurationMs": 612.215,
"heapDeltaBytes": -7507560,
"heapUsedBytes": 69459696,
"domNodes": -254,
"jsHeapTotalBytes": 5369856,
"scriptDurationMs": 186.968,
"eventListeners": -69,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666272189349115,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "minimap-topology-cadence",
"durationMs": 3270.4500000000107,
"styleRecalcs": 4,
"styleRecalcDurationMs": 1.1039999999999999,
"layouts": 4,
"layoutDurationMs": 1.1250000000000002,
"taskDurationMs": 953.4229999999999,
"heapDeltaBytes": -15940096,
"heapUsedBytes": 76367936,
"domNodes": -257,
"jsHeapTotalBytes": 5406720,
"scriptDurationMs": 360.47700000000003,
"eventListeners": -69,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.751794871794875,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "minimap-topology-cadence",
"durationMs": 3307.36399999995,
"styleRecalcs": 6,
"styleRecalcDurationMs": 1.817,
"layouts": 6,
"layoutDurationMs": 1.6309999999999996,
"taskDurationMs": 1000.7799999999997,
"heapDeltaBytes": -30807160,
"heapUsedBytes": 62864528,
"domNodes": -257,
"jsHeapTotalBytes": 6455296,
"scriptDurationMs": 377.226,
"eventListeners": -69,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66633165829146,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "subgraph-dom-widget-clipping",
"durationMs": 649.0679999999998,
"styleRecalcs": 47,
"styleRecalcDurationMs": 5.331,
"layouts": 9,
"layoutDurationMs": 2.455,
"taskDurationMs": 449.29200000000003,
"heapDeltaBytes": -1355892,
"heapUsedBytes": 60963520,
"domNodes": 0,
"jsHeapTotalBytes": 7864320,
"scriptDurationMs": 147.208,
"eventListeners": 46,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "subgraph-dom-widget-clipping",
"durationMs": 631.0100000000602,
"styleRecalcs": 46,
"styleRecalcDurationMs": 5.3660000000000005,
"layouts": 9,
"layoutDurationMs": 2.5460000000000003,
"taskDurationMs": 450.43699999999995,
"heapDeltaBytes": 2004952,
"heapUsedBytes": 74479892,
"domNodes": 0,
"jsHeapTotalBytes": 10485760,
"scriptDurationMs": 148.567,
"eventListeners": 46,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665789473684214,
"p95FrameDurationMs": 16.799999999999727
},
{
"name": "subgraph-idle",
"durationMs": 2023.446999999976,
"styleRecalcs": 9,
"styleRecalcDurationMs": 2.6039999999999996,
"layouts": 9,
"layoutDurationMs": 2.543,
"taskDurationMs": 598.4300000000001,
"heapDeltaBytes": 4554484,
"heapUsedBytes": 67035408,
"domNodes": 0,
"jsHeapTotalBytes": 9699328,
"scriptDurationMs": 10.847,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66611570247934,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "subgraph-idle",
"durationMs": 2021.1689999999862,
"styleRecalcs": 8,
"styleRecalcDurationMs": 2.7269999999999994,
"layouts": 8,
"layoutDurationMs": 2.8369999999999997,
"taskDurationMs": 585.2740000000001,
"heapDeltaBytes": 5780724,
"heapUsedBytes": 78046504,
"domNodes": 0,
"jsHeapTotalBytes": 10223616,
"scriptDurationMs": 10.940999999999999,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66611570247934,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "subgraph-mouse-sweep",
"durationMs": 1724.361999999985,
"styleRecalcs": 78,
"styleRecalcDurationMs": 15.212000000000002,
"layouts": 9,
"layoutDurationMs": 2.4960000000000004,
"taskDurationMs": 860.5289999999999,
"heapDeltaBytes": -6217412,
"heapUsedBytes": 66457864,
"domNodes": 0,
"jsHeapTotalBytes": 9699328,
"scriptDurationMs": 109.78699999999998,
"eventListeners": 6,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666990291262138,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "subgraph-mouse-sweep",
"durationMs": 1723.6920000000282,
"styleRecalcs": 78,
"styleRecalcDurationMs": 14.464999999999998,
"layouts": 9,
"layoutDurationMs": 2.647,
"taskDurationMs": 835.983,
"heapDeltaBytes": 17480120,
"heapUsedBytes": 79926468,
"domNodes": 0,
"jsHeapTotalBytes": 7864320,
"scriptDurationMs": 110.16499999999999,
"eventListeners": 6,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66504854368932,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "subgraph-transition-enter",
"durationMs": 1470.9920000000238,
"styleRecalcs": 19,
"styleRecalcDurationMs": 22.477999999999998,
"layouts": 5,
"layoutDurationMs": 15.607,
"taskDurationMs": 1170.156,
"heapDeltaBytes": 11939076,
"heapUsedBytes": 101925704,
"domNodes": 16030,
"jsHeapTotalBytes": 16654336,
"scriptDurationMs": 30.644000000000005,
"eventListeners": 3246,
"totalBlockingTimeMs": 152,
"frameDurationMs": 19.263636363636365,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "viewport-pan-sweep",
"durationMs": 10136.729000000003,
"styleRecalcs": 250,
"styleRecalcDurationMs": 32.187,
"layouts": 8,
"layoutDurationMs": 2.2329999999999997,
"taskDurationMs": 6036.181999999999,
"heapDeltaBytes": 17178860,
"heapUsedBytes": 95133096,
"domNodes": -257,
"jsHeapTotalBytes": 4513792,
"scriptDurationMs": 2677.938,
"eventListeners": -67,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665953947368422,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "viewport-pan-sweep",
"durationMs": 10751.171999999997,
"styleRecalcs": 250,
"styleRecalcDurationMs": 32.501000000000005,
"layouts": 7,
"layoutDurationMs": 1.737,
"taskDurationMs": 6167.192,
"heapDeltaBytes": -14840652,
"heapUsedBytes": 63164744,
"domNodes": -257,
"jsHeapTotalBytes": 4583424,
"scriptDurationMs": 2797.113,
"eventListeners": -67,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66594427244582,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "vue-large-graph-idle",
"durationMs": 24673.04800000005,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 24061.601000000002,
"heapDeltaBytes": -18932900,
"heapUsedBytes": 262460648,
"domNodes": -3343,
"jsHeapTotalBytes": 12046336,
"scriptDurationMs": 353.919,
"eventListeners": -653,
"totalBlockingTimeMs": 0,
"frameDurationMs": 45.20567765567766,
"p95FrameDurationMs": 99.90000000000146
},
{
"name": "vue-large-graph-idle",
"durationMs": 23792.33499999998,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 23257.722,
"heapDeltaBytes": -19736164,
"heapUsedBytes": 260848356,
"domNodes": -3343,
"jsHeapTotalBytes": 9691136,
"scriptDurationMs": 355.544,
"eventListeners": -653,
"totalBlockingTimeMs": 0,
"frameDurationMs": 42.24209591474245,
"p95FrameDurationMs": 83.40000000000146
},
{
"name": "vue-large-graph-pan",
"durationMs": 29153.261999999984,
"styleRecalcs": 181,
"styleRecalcDurationMs": 22.254999999999995,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 28823.131999999998,
"heapDeltaBytes": 12061044,
"heapUsedBytes": 265640152,
"domNodes": 0,
"jsHeapTotalBytes": 14942208,
"scriptDurationMs": 912.983,
"eventListeners": 2,
"totalBlockingTimeMs": 31,
"frameDurationMs": 55.13308128544423,
"p95FrameDurationMs": 116.59999999999854
},
{
"name": "vue-large-graph-pan",
"durationMs": 28795.408000000065,
"styleRecalcs": 181,
"styleRecalcDurationMs": 20.38000000000001,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 28500.899999999998,
"heapDeltaBytes": -17848484,
"heapUsedBytes": 285050096,
"domNodes": -3343,
"jsHeapTotalBytes": 14602240,
"scriptDurationMs": 859.6250000000001,
"eventListeners": -651,
"totalBlockingTimeMs": 22,
"frameDurationMs": 55.096749521988535,
"p95FrameDurationMs": 116.59999999999854
},
{
"name": "vue-node-resize-workload",
"durationMs": 8945.701999999983,
"styleRecalcs": 20,
"styleRecalcDurationMs": 59.64100000000003,
"layouts": 20,
"layoutDurationMs": 24.216,
"taskDurationMs": 8790.468,
"heapDeltaBytes": -47785416,
"heapUsedBytes": 249522368,
"domNodes": -3343,
"jsHeapTotalBytes": 17551360,
"scriptDurationMs": 138.231,
"eventListeners": -653,
"totalBlockingTimeMs": 0,
"frameDurationMs": 50.56327683615819,
"p95FrameDurationMs": 116.60000000000036
},
{
"name": "vue-node-resize-workload",
"durationMs": 8391.400999999973,
"styleRecalcs": 20,
"styleRecalcDurationMs": 55.87600000000001,
"layouts": 20,
"layoutDurationMs": 22.87,
"taskDurationMs": 8308.439,
"heapDeltaBytes": -35293100,
"heapUsedBytes": 281651400,
"domNodes": -3343,
"jsHeapTotalBytes": 6803456,
"scriptDurationMs": 155.001,
"eventListeners": -653,
"totalBlockingTimeMs": 22,
"frameDurationMs": 51.22515337423312,
"p95FrameDurationMs": 100
},
{
"name": "vue-zoom-out-idle",
"durationMs": 12191.45599999996,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 11911.909999999998,
"heapDeltaBytes": -23063524,
"heapUsedBytes": 250659568,
"domNodes": 0,
"jsHeapTotalBytes": 0,
"scriptDurationMs": 170.00000000000003,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 44.79007352941176,
"p95FrameDurationMs": 100
},
{
"name": "vue-zoom-out-idle",
"durationMs": 11961.770999999999,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 11640.781,
"heapDeltaBytes": 28193984,
"heapUsedBytes": 286720792,
"domNodes": 0,
"jsHeapTotalBytes": 0,
"scriptDurationMs": 172.11300000000008,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 44.421933085501855,
"p95FrameDurationMs": 83.40000000000146
},
{
"name": "workflow-execution",
"durationMs": 486.3859999999818,
"styleRecalcs": 13,
"styleRecalcDurationMs": 9.994,
"layouts": 12,
"layoutDurationMs": 4.470999999999999,
"taskDurationMs": 124.47200000000001,
"heapDeltaBytes": 6977924,
"heapUsedBytes": 66580680,
"domNodes": 110,
"jsHeapTotalBytes": 262144,
"scriptDurationMs": 13.507000000000001,
"eventListeners": 7,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665517241379316,
"p95FrameDurationMs": 16.799999999999727
},
{
"name": "workflow-execution",
"durationMs": 133.21799999994255,
"styleRecalcs": 9,
"styleRecalcDurationMs": 9.302,
"layouts": 9,
"layoutDurationMs": 3.5429999999999997,
"taskDurationMs": 97.51400000000001,
"heapDeltaBytes": -12920428,
"heapUsedBytes": 63762060,
"domNodes": 125,
"jsHeapTotalBytes": 2097152,
"scriptDurationMs": 6.122999999999998,
"eventListeners": 5,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.662500000000023,
"p95FrameDurationMs": 16.799999999999727
},
{
"name": "agent-composer-empty-conversation-typing",
"durationMs": 448.4140000000707,
"styleRecalcs": 5,
"styleRecalcDurationMs": 0.646,
"layouts": 76,
"layoutDurationMs": 14.728,
"taskDurationMs": 392.022,
"heapDeltaBytes": -4667068,
"heapUsedBytes": 39741224,
"domNodes": 4,
"jsHeapTotalBytes": 2359296,
"scriptDurationMs": 189.233,
"eventListeners": 292,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "agent-composer-empty-conversation-typing",
"durationMs": 479.92900000008376,
"styleRecalcs": 5,
"styleRecalcDurationMs": 0.703,
"layouts": 76,
"layoutDurationMs": 15.851,
"taskDurationMs": 428.16700000000003,
"heapDeltaBytes": -4292296,
"heapUsedBytes": 39156704,
"domNodes": 4,
"jsHeapTotalBytes": 786432,
"scriptDurationMs": 199.52700000000002,
"eventListeners": 292,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665517241379316,
"p95FrameDurationMs": 16.699999999999818
},
{
"name": "agent-composer-long-conversation-typing",
"durationMs": 705.389000000082,
"styleRecalcs": 5,
"styleRecalcDurationMs": 2.2729999999999997,
"layouts": 76,
"layoutDurationMs": 17.056,
"taskDurationMs": 667.192,
"heapDeltaBytes": -24016012,
"heapUsedBytes": 78981444,
"domNodes": 4,
"jsHeapTotalBytes": 1052672,
"scriptDurationMs": 277.264,
"eventListeners": 292,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "agent-composer-long-conversation-typing",
"durationMs": 627.884999999992,
"styleRecalcs": 5,
"styleRecalcDurationMs": 2.077,
"layouts": 76,
"layoutDurationMs": 16.015,
"taskDurationMs": 583.2010000000001,
"heapDeltaBytes": 2130660,
"heapUsedBytes": 100527628,
"domNodes": 4,
"jsHeapTotalBytes": 1314816,
"scriptDurationMs": 242.82600000000002,
"eventListeners": 292,
"totalBlockingTimeMs": 0,
"frameDurationMs": 17.11621621621622,
"p95FrameDurationMs": 16.800000000000182
}
]
}🔬 E2E Coverage: 🟡 59.8% of linesCoverage totals
Top 10 files by uncovered lines
🎭 Playwright: ✅ 3141 passed, 0 failed · 1 flaky📊 Browser Reports
🎨 Storybook: ✅ Built — View Storybook🧩 Custom Nodes Ecosystem Matrix: 🟡 Withheld — could not measureExecutes the frontend JS of every registry pack that ships any, against this change, in both renderers. The eight
Findings and check detailsThe matrix runs on same-repository version-bump PRs with relevant changes, main-branch pushes, and manual dispatches. This candidate does not qualify, so every expensive stage was skipped. Reproduce locally# build one shard's fixture, then run it
python3 scripts/registry-census/build_matrix.py --shard 1/4
MATRIX_RENDERER=vue MATRIX_VUE=1 \
npx vitest run --config vitest.matrix.config.mts
Full docs: scripts/registry-census/README.md 🌾 Fallow: ✅ PassedFallow audits the diff for duplication, complexity and dead code. It gates on new findings only, so when the audit completes, a red is something this PR introduced or moved — never inherited backlog. A red can also mean the audit itself did not finish; the details below say which happened. Findings and check detailsFallow gates on new findings in changed files only, so everything below was introduced or moved by this PR (11 changed files).
Pre-existing findings are baselined in Reproduce locally# the base the gate compared against
npx fallow audit --root . --quiet --format json \
--changed-since 75080063610693639e9f458a3099b3003767bfea
Full docs: ADR-DEVEX-LINT-0015 🏛️ Architecture: ✅ PassedFindings and check detailsWarnings (280)
Reproduce locallypnpm architecture:checkFull docs: Frontend domain catalog |
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## cloud/1.59 #22817 +/- ##
=============================================
Coverage ? 87.29%
=============================================
Files ? 3067
Lines ? 160720
Branches ? 42955
=============================================
Hits ? 140298
Misses ? 19742
Partials ? 680
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
…e workflow picker saves it (FRONT-3774) (#22818) Backport of #22649 then #22648 to `core/1.58`. Fixes [FRONT-3774](https://linear.app/comfyorg/issue/FRONT-3774): picking an unopened unsaved tab in the Agent workflow picker after a reload could not save it, and the tab's draft was deleted. Found in release QA case C-163 on 1.59.3; the same code is on 1.58. - **Applies here:** `core/1.58` has both defects. With the two fixes reverted, all five new tests fail on this branch (2 draft-deletion, 3 picker); with them, they pass. - **Worse symptom on this train:** `core/1.58` lacks #21326's "refuse to save an unloaded workflow" guard, so the picker's save of an unloaded tab writes an empty (`null`) workflow instead of failing. Loading the tab first fixes both shapes. #21326 itself is not carried. - **Two commits, source order.** Conflicts were imports only; behaviour hunks apply unchanged. <details><summary>Full context for agent readers</summary> Commits, in order (both `cherry-pick -x` from `main`): 1. #22649 `9580dff303`, fix(workflow): stop deleting an unsaved tab's draft on a same-path save or its first load. - `useWorkflowPersistenceV2.test.ts` import conflict: kept the train's `vue` import (this change adds no `computed`/`ref` use) and took the source's `vitest` import with `onTestFinished`, which the new test uses. - `useWorkflowPersistenceV2.ts` imports `ComfyWorkflowJSON` from `@/platform/workflow/validation/schemas/workflowSchema`, because 1.58 predates the `@comfyorg/graph-model` package. Same resolution the bot used on `core/1.59` (#22667). 2. #22648 `816ea98f48`, fix(agent): load an unopened unsaved tab before the workflow picker saves it. - `workflowService.test.ts` import conflict: kept the train's imports plus `blankGraph`, which the new `loadWorkflowInBackground` test uses (`getDefaultWorkflow` from `main` is not used by this change). - `agentWorkflowSelection.spec.ts`: same `ComfyWorkflowJSON` import-path change as above. Every `browser_tests/` hunk from both sources is carried; none is dropped. Local checks on this tree (Node 24): `typecheck` (pre-commit) and `typecheck:browser` pass; pre-push depcruise and knip pass. Vitest on `useAgentWorkflowSelection.test.ts`, `workflowService.test.ts`, `AgentPanelRoot.test.ts` and `src/platform/workflow/persistence/`: 808 passed, 1 expected fail, 14 files. The new browser case `picks an unsaved tab a reload left unopened` runs in CI (`e2e-status`). Authority: the program's release-backport grant for the current trains (`core/1.58` is listed). </details> Justification: FRONT-3774 backport to core/1.58 under the standing agent backport grant for the current trains. Production hunks match main #22648 (and #22649 persistence) line for line; all 132 exact-head checks at d0d9c5c are green after rerunning one flaky Playwright shard; no unresolved threads. Sibling carriers #22816, #22817 and #22819 merged the same way.
Backport of #22648 to
cloud/1.59. Fixes FRONT-3774: picking an unopened unsaved tab in the Agent workflow picker after a reload failed with "Save failed · Cannot save workflow … before it is loaded" and lost the tab. Found in release QA case C-163 on 1.59.3.cloud/1.59has the save-before-load picker path. With only the picker fix reverted, the three newuseAgentWorkflowSelectiontests fail on this branch; with it, they pass.core/1.59carrier ([backport core/1.59] fix(agent): keep an unopened unsaved tab when the workflow picker saves it (FRONT-3774) #22816). Behaviour hunks apply unchanged.Full context for agent readers
Commit: the
core/1.59carrier commit (#22816, itselfcherry-pick -x 816ea98f48), which applies cleanly here. Its two resolutions:workflowService.test.tsimport conflict.mainalso importsgetDefaultWorkflow(not on 1.59 and not used by this change). Kept the train's import set plusblankGraph, which the newloadWorkflowInBackgroundtest uses.agentWorkflowSelection.spec.tsimportsComfyWorkflowJSONfrom@/platform/workflow/validation/schemas/workflowSchema, because 1.59 predates the@comfyorg/graph-modelpackage. knip caught the unlisted package on pre-push.Every
browser_tests/hunk from the source is carried; none is dropped.Local checks on this tree (Node 24):
typecheckandtypecheck:browserpass. Vitest onuseAgentWorkflowSelection.test.ts,workflowService.test.ts,AgentPanelRoot.test.tsandsrc/platform/workflow/persistence/: 915 passed, 1 expected fail, 15 files. The new browser casepicks an unsaved tab a reload left unopenedruns in CI (e2e-status).Authority: the program's release-backport grant for the current trains (
cloud/1.59is listed).Justification: Release backport of FRONT-3774 fixes (#22648, plus #22649 where the train lacked it) to cloud/1.59 under the standing agent backport review-and-merge grant for the current trains. Production hunks match the source PRs line for line (only a train-local import path differs); the source unit tests fail on the train tip without the carrier and pass with it; all required checks pass at 2c22d4c; no unresolved threads.