Repository navigation
fix(agent): record each tool call's start time in the debug report (BE-23079) - #22428
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
📦 Bundle Size
⚡ Performance Report
Scenario timings
Absolute values
Raw data{
"timestamp": "2026-10-31T04:41:31.899Z",
"gitSha": "19302f3cf47afdccfd1627d1f13d4b1649499283",
"branch": "cbyrne/be-23079-tool-call-started-at",
"measurements": [
{
"name": "canvas-idle",
"durationMs": 2009.4220000000007,
"styleRecalcs": 10,
"styleRecalcDurationMs": 2.516,
"layouts": 9,
"layoutDurationMs": 2.099,
"taskDurationMs": 297.67699999999996,
"heapDeltaBytes": 7953356,
"heapUsedBytes": 68933336,
"domNodes": 0,
"jsHeapTotalBytes": 6553600,
"scriptDurationMs": 6.03,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66611570247934,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "canvas-idle",
"durationMs": 2009.9669999999605,
"styleRecalcs": 11,
"styleRecalcDurationMs": 2.458,
"layouts": 10,
"layoutDurationMs": 2.1609999999999996,
"taskDurationMs": 309.66099999999994,
"heapDeltaBytes": 10307164,
"heapUsedBytes": 85433900,
"domNodes": 0,
"jsHeapTotalBytes": 6815744,
"scriptDurationMs": 5.342,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665289256198346,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "canvas-mouse-sweep",
"durationMs": 1678.0779999999993,
"styleRecalcs": 71,
"styleRecalcDurationMs": 12.746,
"layouts": 10,
"layoutDurationMs": 2.498,
"taskDurationMs": 609.6479999999999,
"heapDeltaBytes": 4335012,
"heapUsedBytes": 80169272,
"domNodes": 0,
"jsHeapTotalBytes": 8388608,
"scriptDurationMs": 111.19500000000001,
"eventListeners": 6,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.667326732673267,
"p95FrameDurationMs": 16.799999999999955
},
{
"name": "canvas-mouse-sweep",
"durationMs": 1678.9939999999888,
"styleRecalcs": 72,
"styleRecalcDurationMs": 11.023,
"layouts": 10,
"layoutDurationMs": 2.1479999999999997,
"taskDurationMs": 557.672,
"heapDeltaBytes": 771800,
"heapUsedBytes": 62392120,
"domNodes": 0,
"jsHeapTotalBytes": 7077888,
"scriptDurationMs": 103.64899999999999,
"eventListeners": 6,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666336633663363,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "canvas-zoom-sweep",
"durationMs": 1709.9140000000261,
"styleRecalcs": 18,
"styleRecalcDurationMs": 5.0489999999999995,
"layouts": 12,
"layoutDurationMs": 2.993,
"taskDurationMs": 244.792,
"heapDeltaBytes": -1714176,
"heapUsedBytes": 65855920,
"domNodes": 57,
"jsHeapTotalBytes": 3670016,
"scriptDurationMs": 12.526,
"eventListeners": 43,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66504854368932,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "canvas-zoom-sweep",
"durationMs": 1709.541999999999,
"styleRecalcs": 18,
"styleRecalcDurationMs": 3.7989999999999995,
"layouts": 12,
"layoutDurationMs": 2.4019999999999997,
"taskDurationMs": 231.90800000000002,
"heapDeltaBytes": 25273728,
"heapUsedBytes": 86312340,
"domNodes": 57,
"jsHeapTotalBytes": 2621440,
"scriptDurationMs": 6.920000000000001,
"eventListeners": 43,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666990291262138,
"p95FrameDurationMs": 16.799999999999727
},
{
"name": "dom-widget-clipping",
"durationMs": 517.7140000000122,
"styleRecalcs": 15,
"styleRecalcDurationMs": 3.8329999999999997,
"layouts": 10,
"layoutDurationMs": 2.5210000000000004,
"taskDurationMs": 334.403,
"heapDeltaBytes": 3309984,
"heapUsedBytes": 64783284,
"domNodes": 0,
"jsHeapTotalBytes": 4718592,
"scriptDurationMs": 109.926,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.667741935483864,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "dom-widget-clipping",
"durationMs": 485.14900000003536,
"styleRecalcs": 13,
"styleRecalcDurationMs": 2.848,
"layouts": 9,
"layoutDurationMs": 2.3359999999999994,
"taskDurationMs": 317.65,
"heapDeltaBytes": 1819432,
"heapUsedBytes": 63534052,
"domNodes": 0,
"jsHeapTotalBytes": 4456448,
"scriptDurationMs": 108.996,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66551724137931,
"p95FrameDurationMs": 16.799999999999727
},
{
"name": "dom-widget-order-dense-n200-w200-i120",
"durationMs": 904.1139999999928,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 520.284,
"heapDeltaBytes": -12361196,
"heapUsedBytes": 77495008,
"domNodes": -208,
"jsHeapTotalBytes": 20193280,
"scriptDurationMs": 34.663,
"eventListeners": -106,
"totalBlockingTimeMs": 256,
"frameDurationMs": 25.714285714285715,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "dom-widget-order-dense-n200-w200-i120",
"durationMs": 911.5859999999998,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 544.259,
"heapDeltaBytes": -12388712,
"heapUsedBytes": 77234036,
"domNodes": -208,
"jsHeapTotalBytes": 20193280,
"scriptDurationMs": 36.664,
"eventListeners": -106,
"totalBlockingTimeMs": 280,
"frameDurationMs": 26.188571428571425,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "dom-widget-order-sparse-n1000-w20-i120",
"durationMs": 706.8559999999877,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 312.5449999999996,
"heapDeltaBytes": -2519224,
"heapUsedBytes": 65870692,
"domNodes": 0,
"jsHeapTotalBytes": 0,
"scriptDurationMs": 99.748,
"eventListeners": 0,
"totalBlockingTimeMs": 93,
"frameDurationMs": 20.58823529411765,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "dom-widget-order-sparse-n1000-w20-i120",
"durationMs": 695.4280000000495,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 314.4209999999998,
"heapDeltaBytes": -27638448,
"heapUsedBytes": 63398036,
"domNodes": 0,
"jsHeapTotalBytes": 4849664,
"scriptDurationMs": 88.84699999999998,
"eventListeners": 0,
"totalBlockingTimeMs": 87,
"frameDurationMs": 20.58529411764705,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "extension-clean-combined-draw",
"durationMs": 6375.69400000001,
"styleRecalcs": 4,
"styleRecalcDurationMs": 0.8519999999999994,
"layouts": 3,
"layoutDurationMs": 0.7040000000000002,
"taskDurationMs": 5404.59,
"heapDeltaBytes": 56704832,
"heapUsedBytes": 133645432,
"domNodes": -274,
"jsHeapTotalBytes": 63565824,
"scriptDurationMs": 4068.9009999999994,
"eventListeners": -68,
"totalBlockingTimeMs": 20,
"frameDurationMs": 19.833333333333336,
"p95FrameDurationMs": 33.399999999999636
},
{
"name": "extension-clean-combined-draw",
"durationMs": 6390.241000000004,
"styleRecalcs": 4,
"styleRecalcDurationMs": 0.8009999999999996,
"layouts": 3,
"layoutDurationMs": 0.7079999999999999,
"taskDurationMs": 5316.775,
"heapDeltaBytes": 60194644,
"heapUsedBytes": 136615716,
"domNodes": -274,
"jsHeapTotalBytes": 53866496,
"scriptDurationMs": 4007.1660000000006,
"eventListeners": -68,
"totalBlockingTimeMs": 0,
"frameDurationMs": 19.460670731707317,
"p95FrameDurationMs": 33.399999999999636
},
{
"name": "extension-rgthree-prototype-draw",
"durationMs": 6228.4639999999745,
"styleRecalcs": 3,
"styleRecalcDurationMs": 0.7610000000000003,
"layouts": 3,
"layoutDurationMs": 0.7070000000000002,
"taskDurationMs": 5140.8820000000005,
"heapDeltaBytes": -25868032,
"heapUsedBytes": 66500660,
"domNodes": -274,
"jsHeapTotalBytes": 4059136,
"scriptDurationMs": 3915.676,
"eventListeners": -68,
"totalBlockingTimeMs": 23,
"frameDurationMs": 18.283529411764707,
"p95FrameDurationMs": 33.30000000000018
},
{
"name": "extension-rgthree-prototype-draw",
"durationMs": 6108.410999999989,
"styleRecalcs": 3,
"styleRecalcDurationMs": 0.7830000000000007,
"layouts": 3,
"layoutDurationMs": 0.6610000000000001,
"taskDurationMs": 5184.583,
"heapDeltaBytes": 51356728,
"heapUsedBytes": 133335664,
"domNodes": -274,
"jsHeapTotalBytes": 67760128,
"scriptDurationMs": 3885.415,
"eventListeners": -68,
"totalBlockingTimeMs": 0,
"frameDurationMs": 18.367567567567566,
"p95FrameDurationMs": 33.30000000000018
},
{
"name": "large-combo-open",
"durationMs": 144.1170000000227,
"styleRecalcs": 20,
"styleRecalcDurationMs": 10.949,
"layouts": 11,
"layoutDurationMs": 2.904,
"taskDurationMs": 100.84599999999999,
"heapDeltaBytes": 14791456,
"heapUsedBytes": 88742528,
"domNodes": 936,
"jsHeapTotalBytes": 262144,
"scriptDurationMs": 6.298000000000001,
"eventListeners": 205,
"totalBlockingTimeMs": 0,
"frameDurationMs": 21.428571428571427,
"p95FrameDurationMs": 33.30000000000018
},
{
"name": "large-combo-open",
"durationMs": 147.62600000000248,
"styleRecalcs": 20,
"styleRecalcDurationMs": 11.250000000000002,
"layouts": 11,
"layoutDurationMs": 2.924,
"taskDurationMs": 104.64699999999999,
"heapDeltaBytes": 14776332,
"heapUsedBytes": 91755028,
"domNodes": 936,
"jsHeapTotalBytes": 0,
"scriptDurationMs": 6.4590000000000005,
"eventListeners": 205,
"totalBlockingTimeMs": 0,
"frameDurationMs": 21.428571428571427,
"p95FrameDurationMs": 33.40000000000009
},
{
"name": "large-graph-idle",
"durationMs": 2026.6999999999769,
"styleRecalcs": 9,
"styleRecalcDurationMs": 2.679,
"layouts": 9,
"layoutDurationMs": 2.241,
"taskDurationMs": 426.842,
"heapDeltaBytes": -29986024,
"heapUsedBytes": 63574800,
"domNodes": -274,
"jsHeapTotalBytes": 4096000,
"scriptDurationMs": 26.598,
"eventListeners": -68,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665573770491804,
"p95FrameDurationMs": 16.799999999999727
},
{
"name": "large-graph-idle",
"durationMs": 2009.2779999999948,
"styleRecalcs": 10,
"styleRecalcDurationMs": 1.921,
"layouts": 9,
"layoutDurationMs": 1.8030000000000002,
"taskDurationMs": 383.91700000000003,
"heapDeltaBytes": -3190356,
"heapUsedBytes": 86316452,
"domNodes": -274,
"jsHeapTotalBytes": 3571712,
"scriptDurationMs": 20.674999999999997,
"eventListeners": -68,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66611570247934,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "large-graph-pan",
"durationMs": 2414.8849999999984,
"styleRecalcs": 69,
"styleRecalcDurationMs": 10.65,
"layouts": 8,
"layoutDurationMs": 1.951,
"taskDurationMs": 1197.31,
"heapDeltaBytes": -2172096,
"heapUsedBytes": 81701448,
"domNodes": -274,
"jsHeapTotalBytes": 4284416,
"scriptDurationMs": 565.5949999999999,
"eventListeners": -66,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665517241379312,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "large-graph-pan",
"durationMs": 2215.044999999975,
"styleRecalcs": 70,
"styleRecalcDurationMs": 10.054,
"layouts": 9,
"layoutDurationMs": 2.007,
"taskDurationMs": 1089.09,
"heapDeltaBytes": -17967376,
"heapUsedBytes": 72205196,
"domNodes": -274,
"jsHeapTotalBytes": 4059136,
"scriptDurationMs": 542.531,
"eventListeners": -66,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "large-graph-zoom",
"durationMs": 3454.423999999989,
"styleRecalcs": 73,
"styleRecalcDurationMs": 11.299999999999999,
"layouts": 67,
"layoutDurationMs": 11.116999999999999,
"taskDurationMs": 1242.55,
"heapDeltaBytes": -6711856,
"heapUsedBytes": 85944104,
"domNodes": -270,
"jsHeapTotalBytes": 4358144,
"scriptDurationMs": 524.01,
"eventListeners": -68,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66570048309179,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "large-graph-zoom",
"durationMs": 3153.887999999995,
"styleRecalcs": 74,
"styleRecalcDurationMs": 10.482999999999999,
"layouts": 67,
"layoutDurationMs": 10.851,
"taskDurationMs": 1184.272,
"heapDeltaBytes": -20133680,
"heapUsedBytes": 65102496,
"domNodes": -250,
"jsHeapTotalBytes": 5107712,
"scriptDurationMs": 518.1830000000001,
"eventListeners": -68,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665608465608464,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "legacy-node-drag",
"durationMs": 2336.3789999999935,
"styleRecalcs": 46,
"styleRecalcDurationMs": 5.819,
"layouts": 7,
"layoutDurationMs": 1.6139999999999999,
"taskDurationMs": 1221.181,
"heapDeltaBytes": -10195288,
"heapUsedBytes": 74928976,
"domNodes": 0,
"jsHeapTotalBytes": 5242880,
"scriptDurationMs": 604.2330000000001,
"eventListeners": 182,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665714285714287,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "legacy-node-drag",
"durationMs": 2357.0700000000215,
"styleRecalcs": 47,
"styleRecalcDurationMs": 6.143000000000001,
"layouts": 7,
"layoutDurationMs": 1.4590000000000003,
"taskDurationMs": 1284.838,
"heapDeltaBytes": -10394940,
"heapUsedBytes": 76476164,
"domNodes": 0,
"jsHeapTotalBytes": 5767168,
"scriptDurationMs": 641.608,
"eventListeners": 182,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665248226950354,
"p95FrameDurationMs": 16.799999999999727
},
{
"name": "minimap-geometry-cadence",
"durationMs": 2824.0360000000064,
"styleRecalcs": 9,
"styleRecalcDurationMs": 2.3040000000000003,
"layouts": 9,
"layoutDurationMs": 1.9320000000000002,
"taskDurationMs": 519.612,
"heapDeltaBytes": -8253896,
"heapUsedBytes": 80829140,
"domNodes": -274,
"jsHeapTotalBytes": 4882432,
"scriptDurationMs": 240.78600000000003,
"eventListeners": -68,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666272189349115,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "minimap-geometry-cadence",
"durationMs": 2775.12999999999,
"styleRecalcs": 9,
"styleRecalcDurationMs": 2.039,
"layouts": 8,
"layoutDurationMs": 1.758,
"taskDurationMs": 508.34599999999995,
"heapDeltaBytes": -12716288,
"heapUsedBytes": 73088100,
"domNodes": -274,
"jsHeapTotalBytes": 3010560,
"scriptDurationMs": 237.096,
"eventListeners": -68,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66626506024096,
"p95FrameDurationMs": 16.799999999999727
},
{
"name": "minimap-idle",
"durationMs": 2004.1020000000458,
"styleRecalcs": 9,
"styleRecalcDurationMs": 2.2459999999999996,
"layouts": 9,
"layoutDurationMs": 1.9200000000000002,
"taskDurationMs": 405.075,
"heapDeltaBytes": -10319688,
"heapUsedBytes": 75908044,
"domNodes": -274,
"jsHeapTotalBytes": 3010560,
"scriptDurationMs": 25.565,
"eventListeners": -68,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666115702479342,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "minimap-idle",
"durationMs": 2037.2020000000362,
"styleRecalcs": 9,
"styleRecalcDurationMs": 1.8729999999999998,
"layouts": 9,
"layoutDurationMs": 1.7469999999999999,
"taskDurationMs": 389.248,
"heapDeltaBytes": -29303896,
"heapUsedBytes": 62438304,
"domNodes": -274,
"jsHeapTotalBytes": 3571712,
"scriptDurationMs": 20.901,
"eventListeners": -68,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666393442622947,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "minimap-progress-execution-cadence",
"durationMs": 2698.9440000000113,
"styleRecalcs": 27,
"styleRecalcDurationMs": 10.328000000000001,
"layouts": 8,
"layoutDurationMs": 1.804,
"taskDurationMs": 404.81600000000003,
"heapDeltaBytes": -3869664,
"heapUsedBytes": 79457792,
"domNodes": -263,
"jsHeapTotalBytes": 3272704,
"scriptDurationMs": 126.20400000000001,
"eventListeners": -68,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66604938271605,
"p95FrameDurationMs": 16.799999999999727
},
{
"name": "minimap-progress-execution-cadence",
"durationMs": 2679.7840000000406,
"styleRecalcs": 27,
"styleRecalcDurationMs": 10.504,
"layouts": 8,
"layoutDurationMs": 1.855,
"taskDurationMs": 395.368,
"heapDeltaBytes": -16013056,
"heapUsedBytes": 69649072,
"domNodes": -271,
"jsHeapTotalBytes": 4583424,
"scriptDurationMs": 127.36199999999998,
"eventListeners": -68,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666459627329193,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "minimap-topology-cadence",
"durationMs": 2915.6539999999895,
"styleRecalcs": 9,
"styleRecalcDurationMs": 2.229,
"layouts": 8,
"layoutDurationMs": 1.7380000000000002,
"taskDurationMs": 632.724,
"heapDeltaBytes": 2985112,
"heapUsedBytes": 87442936,
"domNodes": -274,
"jsHeapTotalBytes": 5107712,
"scriptDurationMs": 231.798,
"eventListeners": -68,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666285714285717,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "minimap-topology-cadence",
"durationMs": 2940.8770000000004,
"styleRecalcs": 9,
"styleRecalcDurationMs": 1.7889999999999997,
"layouts": 8,
"layoutDurationMs": 1.531,
"taskDurationMs": 581.2170000000001,
"heapDeltaBytes": -12348988,
"heapUsedBytes": 79500552,
"domNodes": 0,
"jsHeapTotalBytes": 6852608,
"scriptDurationMs": 237.213,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665340909090908,
"p95FrameDurationMs": 16.799999999999727
},
{
"name": "subgraph-dom-widget-clipping",
"durationMs": 410.8150000000137,
"styleRecalcs": 49,
"styleRecalcDurationMs": 5.597000000000001,
"layouts": 12,
"layoutDurationMs": 2.835,
"taskDurationMs": 288.413,
"heapDeltaBytes": 24351408,
"heapUsedBytes": 87053332,
"domNodes": 0,
"jsHeapTotalBytes": 3407872,
"scriptDurationMs": 93.57499999999999,
"eventListeners": 46,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.667999999999992,
"p95FrameDurationMs": 16.799999999999727
},
{
"name": "subgraph-dom-widget-clipping",
"durationMs": 415.079999999989,
"styleRecalcs": 47,
"styleRecalcDurationMs": 4.688000000000001,
"layouts": 9,
"layoutDurationMs": 2.1010000000000004,
"taskDurationMs": 284.90700000000004,
"heapDeltaBytes": 915768,
"heapUsedBytes": 62584104,
"domNodes": 0,
"jsHeapTotalBytes": 7340032,
"scriptDurationMs": 96.458,
"eventListeners": 46,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.668000000000003,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "subgraph-idle",
"durationMs": 2010.261000000014,
"styleRecalcs": 10,
"styleRecalcDurationMs": 2.3900000000000006,
"layouts": 9,
"layoutDurationMs": 1.975,
"taskDurationMs": 321.442,
"heapDeltaBytes": 8279072,
"heapUsedBytes": 70382796,
"domNodes": 0,
"jsHeapTotalBytes": 7077888,
"scriptDurationMs": 6.736000000000001,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66611570247934,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "subgraph-idle",
"durationMs": 2007.852000000014,
"styleRecalcs": 10,
"styleRecalcDurationMs": 2.3050000000000006,
"layouts": 10,
"layoutDurationMs": 1.9789999999999999,
"taskDurationMs": 350.855,
"heapDeltaBytes": 13400460,
"heapUsedBytes": 77008156,
"domNodes": -200,
"jsHeapTotalBytes": 2883584,
"scriptDurationMs": 5.433000000000001,
"eventListeners": -115,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666115702479342,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "subgraph-mouse-sweep",
"durationMs": 1678.3770000000118,
"styleRecalcs": 75,
"styleRecalcDurationMs": 13.287,
"layouts": 10,
"layoutDurationMs": 2.1710000000000003,
"taskDurationMs": 550.106,
"heapDeltaBytes": -6662668,
"heapUsedBytes": 62850120,
"domNodes": 0,
"jsHeapTotalBytes": 4456448,
"scriptDurationMs": 81.11699999999999,
"eventListeners": 6,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665346534653466,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "subgraph-mouse-sweep",
"durationMs": 1689.8909999999887,
"styleRecalcs": 75,
"styleRecalcDurationMs": 12.204999999999998,
"layouts": 11,
"layoutDurationMs": 2.2009999999999996,
"taskDurationMs": 578.638,
"heapDeltaBytes": 12841488,
"heapUsedBytes": 75282096,
"domNodes": -200,
"jsHeapTotalBytes": 4456448,
"scriptDurationMs": 83.138,
"eventListeners": -115,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665686274509806,
"p95FrameDurationMs": 16.799999999999727
},
{
"name": "subgraph-transition-enter",
"durationMs": 833.9670000000297,
"styleRecalcs": 20,
"styleRecalcDurationMs": 14.242,
"layouts": 5,
"layoutDurationMs": 9.476,
"taskDurationMs": 624.5029999999998,
"heapDeltaBytes": 11493864,
"heapUsedBytes": 97213448,
"domNodes": 15869,
"jsHeapTotalBytes": 16654336,
"scriptDurationMs": 19.559,
"eventListeners": 3246,
"totalBlockingTimeMs": 76,
"frameDurationMs": 19.381395348837223,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "viewport-pan-sweep",
"durationMs": 8238.283000000025,
"styleRecalcs": 250,
"styleRecalcDurationMs": 34.388,
"layouts": 10,
"layoutDurationMs": 2.2770000000000006,
"taskDurationMs": 3945.2429999999995,
"heapDeltaBytes": -6307680,
"heapUsedBytes": 77782580,
"domNodes": -274,
"jsHeapTotalBytes": 3760128,
"scriptDurationMs": 1859.8300000000002,
"eventListeners": -66,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666060606060608,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "viewport-pan-sweep",
"durationMs": 8189.385000000016,
"styleRecalcs": 250,
"styleRecalcDurationMs": 33.391,
"layouts": 9,
"layoutDurationMs": 2.01,
"taskDurationMs": 3832.7670000000003,
"heapDeltaBytes": -26204288,
"heapUsedBytes": 63004320,
"domNodes": -274,
"jsHeapTotalBytes": 4358144,
"scriptDurationMs": 1872.294,
"eventListeners": -66,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66598778004073,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "vue-large-graph-idle",
"durationMs": 14926.046999999982,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 14067.958,
"heapDeltaBytes": -4560656,
"heapUsedBytes": 291284608,
"domNodes": -3329,
"jsHeapTotalBytes": 17809408,
"scriptDurationMs": 202.61800000000002,
"eventListeners": -653,
"totalBlockingTimeMs": 0,
"frameDurationMs": 25.196114864864864,
"p95FrameDurationMs": 50
},
{
"name": "vue-large-graph-idle",
"durationMs": 14952.179,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 14178.923999999999,
"heapDeltaBytes": -5821996,
"heapUsedBytes": 270498952,
"domNodes": -3329,
"jsHeapTotalBytes": 17285120,
"scriptDurationMs": 168.14000000000001,
"eventListeners": -653,
"totalBlockingTimeMs": 0,
"frameDurationMs": 25.380814940577253,
"p95FrameDurationMs": 50
},
{
"name": "vue-large-graph-pan",
"durationMs": 17474.414000000026,
"styleRecalcs": 145,
"styleRecalcDurationMs": 15.218999999999996,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 17006.256,
"heapDeltaBytes": -9597724,
"heapUsedBytes": 274528280,
"domNodes": -3329,
"jsHeapTotalBytes": 14143488,
"scriptDurationMs": 595.012,
"eventListeners": -651,
"totalBlockingTimeMs": 8,
"frameDurationMs": 31.6713768115942,
"p95FrameDurationMs": 66.69999999999982
},
{
"name": "vue-large-graph-pan",
"durationMs": 18177.52899999999,
"styleRecalcs": 157,
"styleRecalcDurationMs": 14.404,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 17817.141,
"heapDeltaBytes": -16124312,
"heapUsedBytes": 288469712,
"domNodes": -3329,
"jsHeapTotalBytes": 20365312,
"scriptDurationMs": 649.7299999999999,
"eventListeners": -651,
"totalBlockingTimeMs": 0,
"frameDurationMs": 33.6090573012939,
"p95FrameDurationMs": 66.70000000000073
},
{
"name": "vue-node-resize-workload",
"durationMs": 5288.5519999999815,
"styleRecalcs": 20,
"styleRecalcDurationMs": 37.958000000000006,
"layouts": 20,
"layoutDurationMs": 18.58599999999999,
"taskDurationMs": 5154.071,
"heapDeltaBytes": 12445580,
"heapUsedBytes": 291661316,
"domNodes": -3329,
"jsHeapTotalBytes": 35905536,
"scriptDurationMs": 68.62899999999999,
"eventListeners": -653,
"totalBlockingTimeMs": 0,
"frameDurationMs": 31.261538461538464,
"p95FrameDurationMs": 66.69999999999982
},
{
"name": "vue-node-resize-workload",
"durationMs": 5780.30700000005,
"styleRecalcs": 20,
"styleRecalcDurationMs": 56.77799999999999,
"layouts": 20,
"layoutDurationMs": 26.156,
"taskDurationMs": 5622.793000000001,
"heapDeltaBytes": -37744848,
"heapUsedBytes": 261447284,
"domNodes": -3329,
"jsHeapTotalBytes": 22794240,
"scriptDurationMs": 76.873,
"eventListeners": -653,
"totalBlockingTimeMs": 0,
"frameDurationMs": 34.017647058823535,
"p95FrameDurationMs": 66.70000000000073
},
{
"name": "vue-zoom-out-idle",
"durationMs": 7910.19799999998,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 7453.404,
"heapDeltaBytes": -120104,
"heapUsedBytes": 283324916,
"domNodes": 0,
"jsHeapTotalBytes": 0,
"scriptDurationMs": 99.45300000000002,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 26.96109215017065,
"p95FrameDurationMs": 50.099999999998545
},
{
"name": "vue-zoom-out-idle",
"durationMs": 7316.288999999983,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 6817.691,
"heapDeltaBytes": 15599656,
"heapUsedBytes": 291802604,
"domNodes": 0,
"jsHeapTotalBytes": 0,
"scriptDurationMs": 79.65699999999998,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 24.71756756756756,
"p95FrameDurationMs": 50
},
{
"name": "workflow-execution",
"durationMs": 450.37999999999556,
"styleRecalcs": 15,
"styleRecalcDurationMs": 9.009,
"layouts": 11,
"layoutDurationMs": 3.5170000000000003,
"taskDurationMs": 100.13900000000001,
"heapDeltaBytes": -9802764,
"heapUsedBytes": 65711316,
"domNodes": 136,
"jsHeapTotalBytes": 8126464,
"scriptDurationMs": 10.793999999999999,
"eventListeners": 7,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.670370370370367,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "workflow-execution",
"durationMs": 90.40600000002996,
"styleRecalcs": 8,
"styleRecalcDurationMs": 6.585999999999999,
"layouts": 6,
"layoutDurationMs": 1.863,
"taskDurationMs": 53.989999999999995,
"heapDeltaBytes": 4859640,
"heapUsedBytes": 80946696,
"domNodes": 125,
"jsHeapTotalBytes": 262144,
"scriptDurationMs": 4.345,
"eventListeners": 5,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "agent-composer-empty-conversation-typing",
"durationMs": 224.76300000005267,
"styleRecalcs": 5,
"styleRecalcDurationMs": 0.5950000000000001,
"layouts": 76,
"layoutDurationMs": 11.079,
"taskDurationMs": 189.85399999999998,
"heapDeltaBytes": 10022272,
"heapUsedBytes": 51242052,
"domNodes": 4,
"jsHeapTotalBytes": 262144,
"scriptDurationMs": 81.69,
"eventListeners": 292,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66428571428573,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "agent-composer-empty-conversation-typing",
"durationMs": 192.23399999998492,
"styleRecalcs": 5,
"styleRecalcDurationMs": 0.553,
"layouts": 76,
"layoutDurationMs": 9.586,
"taskDurationMs": 155.861,
"heapDeltaBytes": 9603220,
"heapUsedBytes": 46574580,
"domNodes": 4,
"jsHeapTotalBytes": 0,
"scriptDurationMs": 66.415,
"eventListeners": 292,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "agent-composer-long-conversation-typing",
"durationMs": 237.39399999999478,
"styleRecalcs": 5,
"styleRecalcDurationMs": 1.279,
"layouts": 76,
"layoutDurationMs": 10.131,
"taskDurationMs": 209.23600000000002,
"heapDeltaBytes": -2234020,
"heapUsedBytes": 91335392,
"domNodes": 4,
"jsHeapTotalBytes": 524288,
"scriptDurationMs": 66.026,
"eventListeners": 292,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.699999999999818
},
{
"name": "agent-composer-long-conversation-typing",
"durationMs": 210.2190000000519,
"styleRecalcs": 5,
"styleRecalcDurationMs": 1.216,
"layouts": 76,
"layoutDurationMs": 9.168000000000001,
"taskDurationMs": 182.26299999999998,
"heapDeltaBytes": -3331664,
"heapUsedBytes": 88040172,
"domNodes": 4,
"jsHeapTotalBytes": 1835008,
"scriptDurationMs": 57.327000000000005,
"eventListeners": 292,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.67142857142861,
"p95FrameDurationMs": 16.800000000000182
}
]
}🔬 E2E CoverageLine coverage: 59.6% Coverage totals
Top 10 files by uncovered lines
🎭 Playwright: ✅ 3185 passed, 0 failed · 2 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 detailsNo new findings in the changed files. Reproduce locally# the base the gate compared against
npx fallow audit --root . --quiet --format json \
--changed-since fa5e7033fb8ee809a4068666767827074aec1708
Full docs: ADR-DEVEX-LINT-0015 🏛️ Architecture: ✅ PassedFindings and check detailsWarnings (295)
Reproduce locallypnpm architecture:checkFull docs: Frontend domain catalog |
There was a problem hiding this comment.
🔍 Cursor Review — Consolidated panel
Triggered by @christian-byrne.
Found 1 finding(s).
| Severity | Count |
|---|---|
| 🟢 Low | 1 |
Panel: 6/6 reviewers contributed findings.
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## matt/fe-3488-debug-report-latest-turn #22428 +/- ##
=======================================================================
Coverage 87.37% 87.37%
=======================================================================
Files 2853 2853
Lines 157691 157703 +12
Branches 42749 42601 -148
=======================================================================
+ Hits 137777 137797 +20
+ Misses 19157 19149 -8
Partials 757 757
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 15 files with indirect coverage changes 🚀 New features to boost your workflow:
|
|
Self-review found one recovery-path issue: if a socket drops after this tab observes a tool call running, persisted terminal parts replace the live tool part and lose |
Addresses review feedback: #22428 (comment)
Swarmhost agentic reviewThe detailed evaluation is available to employees in the internal Slack review thread. Evaluation budget remaining for this pull request: 98 automatic and 99 manual. Updated by Swarmhost's agentic review process. |
comfy-greenlight-bot
left a comment
There was a problem hiding this comment.
This pull request at head commit e346c86 has been reviewed and approved by Swarmhost's agentic review process.
The detailed evaluation is available to employees in the internal Slack review thread.
6f5b731
into
matt/fe-3488-debug-report-latest-turn
… debug report (Comfy-Org#21344) ## ELI5 When someone reports a slow or broken agent conversation, the copy-paste bug report is often the only record of what happened. It used to drop the earliest steps of the turn being reported when that turn had more than 50 tool calls, and it never said how long the model spent thinking; now it keeps every step of the latest turn and records the thinking time, and when each tool call started, so engineers can tell a slow model from a slow tool. ## Summary The agent tool-call section of the debug report capped retained tool calls at 50 across the whole conversation, newest first. The latest turn always kept its newest calls, but a latest turn with more than 50 calls lost its earliest ones, which are often the ones that explain a slow turn. Now the latest turn that has tool calls is exempt from the cap, and the 50-call cap applies to older turns only. A trailing notice-only message does not take the exemption away. A second JSON block in the same section lists, for each retained turn (turns whose calls survive section fitting, plus the last message), the duration of each thinking part (`null` where no timing was observed) and their total. Only turn ids and numbers are added: no prompts, reasoning text, arguments or responses. Judgment calls: - Thinking durations are a per-part list plus a total rather than only count+total, so the slow round inside a turn is visible. They are measured in the browser, not by the backend, and the section text says so. - The thinking block sits after the tool-call block (so the first JSON block stays the call array) and has its own 10,000-character limit inside the 60,000-character section limit. That caps how much room it takes, but it still shares the section budget, so near the limit its presence can cost an older tool call. When it is over its own limit, older turns are dropped first, then the latest turn keeps only its most recent durations (its total still counts all of them); an entry whose turn id alone exceeds the limit is omitted. The block stays valid JSON, and a note outside the code block says what was left out. - Section fitting still drops the oldest calls first, but it finds the cut point with a binary search over calls that are redacted once. That replaces re-serializing the list for every dropped call. Each probe is measured with the thinking block for the calls it would keep, so dropping an older turn also frees that turn's thinking entry and no extra latest-turn calls are dropped. The section text states that latest-turn calls can be dropped once the size limit is reached. - Each retained tool call also carries `startedAtMs`: this tab's clock when the call was first seen running, kept when the finished turn is replaced by its persisted parts, and `null` for calls restored from history or first seen finished. This came in from the stacked Comfy-Org#22428. ## Verification - Table test: 3 turns where the latest has 70 calls and the older turns have 50 or 51, with and without a trailing notice-only message. All 70 latest-turn calls are kept and older turns are capped to their most recent 50. - Tests for thinking durations: the latest turn and retained older turns are listed, tool-less and fully-trimmed turns are excluded, untimed parts show as `null`, and no reasoning text leaks into the report. - Tests for an oversized thinking block: older turns are dropped before the latest turn is trimmed, the block still parses as JSON, the latest turn's total covers all of its durations, the section stays at or under 60,000 characters, and the tool call is still kept. - Regression test: dropping an older turn frees its thinking entry, so both oversized latest-turn calls are kept (2/3). The test checks that the kept calls are exactly the two latest-turn calls. - Oversized-id test: a 70,000-character turn id keeps the section at or under 60,000 characters by omitting that thinking entry. - The latest-turn lookup uses a reverse index scan instead of `findLastIndex`, which the build target does not polyfill. - The new tests fail against the previous source and pass with this change. - Doc-drift sweep: no stale docs. The hits are generic agent identifiers (`turnId`, `durationMs`) in unrelated fixtures. ## Provenance - **Authored by:** agent-work loop - **Verified:** - Tests: `crdtDebugReport.test.ts`, `agentEventTransport.test.ts` and `agentConversationStore.test.ts` green (337 passed) at the current head - Red/green: the oversized-id test fails without its guard (70,853-char section) and passes with it; earlier fitting, JSON-validity and start-time tests were likewise red-then-green - Typecheck, lint and format clean via pre-commit/pre-push when the commits were made - Not run locally: full `pnpm test:unit`, E2E - **Deviations:** none ## Residual - If the latest turn alone serializes past the 60,000-character section limit (several hundred calls), its earliest calls are still trimmed. The status line then reports the real retained/total count. Whole-report truncation, which can cut this section, is tracked separately and not touched here. - Thinking durations come from the browser (time from a thinking part opening to it closing), not from backend-reported model latency. For restored history they are usually absent (`null`). The slow-turn report that prompted this was not available to replay, so the fix was verified with synthetic conversations only. --------- Co-authored-by: Christian Byrne <cbyrne@comfy.org> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Summary
The agent debug report now shows when each tool call started, so a slow turn can be split into tool time and the gaps between calls.
ToolPart.startedAtMsis set from the client clock on a call's first frame and is not changed by later frames.startedAtMs; it isnullfor calls restored from history, which never carry a client-clock start.Stacked on #21344 (same file, same
RetainedToolCall). GitHub retargets this tomainwhen #21344 merges.Fixes BE-23079. Related: FRONT-3488, PM-2165.
Test plan
crdtDebugReport.test.tsandagentEventTransport.test.tsfailed on the new start-time cases before the change.vitest run src/workbench/extensions/agent/crdt src/workbench/extensions/agent/services/agent(1851 pass, 1 expected fail).agentTranscript.test.tstoEqualpins that restored parts have nostartedAtMs.