Repository navigation
[backport core/1.58] fix(agent): wait for startup tab restore before calling a draft target unavailable (PM-2332) - #22277
Conversation
…t unavailable (PM-2332) (#22048) *PR Created by the Glary-Bot Agent* --- Fixes [PM-2332](https://linear.app/comfyorg/issue/PM-2332). If you refresh while the Agent's target is still an **unsaved** draft, the chat can show "The target workflow is no longer available". The draft hasn't been deleted when this happens. On reload, `resolveRestorationTarget` (`useAgentWorkflowSelection.ts`) decides whether the chat's target still exists: - The cloud listing hides version-less drafts (`latest_version_id IS NULL`, see cloud `common/workflow/repository.go`), so an unsaved Agent draft is always missing from it. - #19873 counts a complete listing that omits the id as proof of deletion **when no local tab owns the id**. It only calls `GET /api/workflows/{id}` when a local tab does own it. That endpoint returns 200 with `latest_version: 0` for drafts. - After a refresh, the only local owner an unsaved draft has is the tab that startup recreates from the local draft store. That happens in `restoreWorkflowTabsState`, called by GraphCanvas after `app.setup()` and `initializeWorkflow()`. - The Agent panel mounts once the app is ready (and from LinearView). It starts hydrating the thread at the same time as the rest of GraphCanvas startup, and nothing orders the two. If the chat restores before startup recreates the draft tab, it sees no owner and marks the target `unavailable`. That state never recovers, even once the tab shows up a moment later. Saved workflows aren't affected, because the listing includes them. - `workflowStore` gets `tabsRestored` and `markTabsRestored()`. `restoreWorkflowTabsState` sets the flag in a `finally`, so it's set however restore ends: success, persistence disabled, load failure, or identity mismatch. GraphCanvas's `finally` also sets it if `initializeWorkflow()` rejects. - `resolveRestorationTarget`: when nothing local owns the id **and** startup hasn't restored tabs yet, it waits for `tabsRestored` plus one tick (`startupTabsRestored`), which lets the binding store adopt the recreated tab. This applies whatever the listing returned (complete, incomplete, or failed), so an incomplete or failed listing no longer opens a null target before the draft tab is back. - The wait is capped at `STARTUP_TAB_RESTORE_TIMEOUT_MS` (15s) so a startup that hangs can't leave the chat restoring forever. - After the wait (and on the fast path) it re-checks `isCurrent()` and looks up the owner again. If the draft tab came back, the existing `GET /api/workflows/{id}` lifecycle check runs. If no tab came back, or the cap was hit, it is treated as `deleted`, the same as on `main`. The wait only runs while startup is still restoring tabs and the target has no local tab. Restores later in the session never wait. - **New:** `PM-2332 waits for a page reload to restore the unsaved draft tab before calling the chat target unavailable`. - Setup: binds a draft for real, then simulates the reload: disposes the binding store so it re-reads persisted bindings, closes the pre-reload tab, and starts restoration before startup recreates the draft tab. - Against `main`'s selection logic it fails: `targetUnavailable` is `true` before the tab is restored. With this change it passes. - **New:** `still calls the target unavailable once a reload restores no tab for it`. Restoration waits, tab restore settles without the draft, and the result is still `deleted`. It also fails against `main`'s selection logic. - **New:** `calls the target unavailable when startup never finishes restoring tabs`. The flag is never set; with fake timers the target is still undecided at 14s and is marked unavailable at 15s. Without the cap, this test times out. - **New:** `waits for the reloaded draft tab even when the listing is incomplete`. Also asserts nothing is synced or warned before the tab comes back. Fails without the change. - `useWorkflowPersistenceV2.test.ts` now asserts the flag is set after a successful restore and after a metadata failure. - The existing harnesses (`setup()` in the selection test, and the root `beforeEach` in `AgentPanelRoot.test.ts`) model a page that has finished startup, so they call `markTabsRestored()`. - Agent composables, `AgentPanelRoot`, workflow persistence and workflow management suites: 1451 passed. - Pre-commit (oxfmt, oxlint, eslint, `typecheck:app`) and pre-push (depcruise, knip, `fallow audit`) hooks pass. - `agentSubgraphDefinitions.test.ts > scans deeply nested definition ids…` (a stack overflow in `lib0` `deepFreeze`) also fails on clean `main`. It is unrelated. - **Browser check:** a local cloud-mode Playwright run (mocked cloud host) where the Agent opens an unsaved draft tab via `agent_active_tab`, followed by a reload. The chat comes back onto the same draft tab with no unavailable notice (screenshot below). I also ran the unsaved-tab (minted draft) flow, with and without a second unsaved tab open. - In that local harness, startup restore finished about 0.5s before the panel hydrated, so `main` also passed there. The race needs startup to be slower than the panel's network round trips. That's why the regression guard is the unit test, not an e2e spec. - After a reload, the unavailable notice for a **truly deleted** target now appears only once startup tab restore finishes, a few hundred ms later. If startup hangs, it appears after the 15s cap. - Not covered here: - If the listing request fails **and** no draft tab comes back, a draft target still gets the "couldn't open" warning. - If startup fails before restoring tabs, or hits the 15s cap, a missing draft is still reported unavailable (same as `main`). - If the local draft is gone (evicted, localStorage quota exceeded, tab closed), the target is still reported unavailable. The server still has the draft (`GET` → 200) and its CRDT document, so a follow-up could rebuild the tab from the server instead. All three are tracked in [FRONT-3665](https://linear.app/comfyorg/issue/FRONT-3665).  --------- Co-authored-by: Glary-Bot <glary-bot@users.noreply.github.com> (cherry picked from commit dbbd7bb)
|
Important Review skippedIgnore keyword(s) in the title. ⛔ Ignored keywords: 2
Please check the settings in the CodeRabbit UI or the
|
📦 Bundle Size
⚡ Performance Report
Scenario timings
Show regressions
All metrics
Historical variance (last 15 runs)
Trend (last 15 commits on main)
Raw data{
"timestamp": "2026-10-29T19:10:38.617Z",
"gitSha": "2b46767a68854119de5c17e941449e298ed8d6f7",
"branch": "backport-22048-to-core-1.58",
"measurements": [
{
"name": "canvas-idle",
"durationMs": 2027.7110000000107,
"styleRecalcs": 11,
"styleRecalcDurationMs": 2.416,
"layouts": 11,
"layoutDurationMs": 2.416,
"taskDurationMs": 339.148,
"heapDeltaBytes": 3086092,
"heapUsedBytes": 93666496,
"domNodes": -200,
"jsHeapTotalBytes": 2424832,
"scriptDurationMs": 8.299,
"eventListeners": -130,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666393442622947,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "canvas-idle",
"durationMs": 2026.1360000000082,
"styleRecalcs": 10,
"styleRecalcDurationMs": 2.1519999999999997,
"layouts": 9,
"layoutDurationMs": 2.0709999999999997,
"taskDurationMs": 452.77500000000003,
"heapDeltaBytes": -260028,
"heapUsedBytes": 90017700,
"domNodes": -200,
"jsHeapTotalBytes": 1376256,
"scriptDurationMs": 7.901,
"eventListeners": -130,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.6655737704918,
"p95FrameDurationMs": 16.799999999999727
},
{
"name": "canvas-mouse-sweep",
"durationMs": 1973.9749999999958,
"styleRecalcs": 82,
"styleRecalcDurationMs": 11.77,
"layouts": 10,
"layoutDurationMs": 2.2849999999999997,
"taskDurationMs": 945.2629999999999,
"heapDeltaBytes": -1444684,
"heapUsedBytes": 89545376,
"domNodes": -200,
"jsHeapTotalBytes": 2949120,
"scriptDurationMs": 123.00299999999999,
"eventListeners": -130,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665546218487396,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "canvas-mouse-sweep",
"durationMs": 1994.8229999999967,
"styleRecalcs": 82,
"styleRecalcDurationMs": 11.774999999999999,
"layouts": 11,
"layoutDurationMs": 2.334,
"taskDurationMs": 929.216,
"heapDeltaBytes": -25216,
"heapUsedBytes": 90256612,
"domNodes": -200,
"jsHeapTotalBytes": 2949120,
"scriptDurationMs": 119.32,
"eventListeners": -130,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66583333333333,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "canvas-zoom-sweep",
"durationMs": 1708.6869999999976,
"styleRecalcs": 18,
"styleRecalcDurationMs": 3.9509999999999996,
"layouts": 11,
"layoutDurationMs": 2.262,
"taskDurationMs": 315.817,
"heapDeltaBytes": -767076,
"heapUsedBytes": 89792252,
"domNodes": 47,
"jsHeapTotalBytes": 9175040,
"scriptDurationMs": 9.624,
"eventListeners": 37,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66601941747573,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "canvas-zoom-sweep",
"durationMs": 1809.9190000000362,
"styleRecalcs": 18,
"styleRecalcDurationMs": 4.298999999999999,
"layouts": 12,
"layoutDurationMs": 2.492,
"taskDurationMs": 299.38000000000005,
"heapDeltaBytes": -1757568,
"heapUsedBytes": 90865468,
"domNodes": 47,
"jsHeapTotalBytes": 7077888,
"scriptDurationMs": 10.162,
"eventListeners": 37,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666972477064224,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "dom-widget-clipping",
"durationMs": 544.1010000000119,
"styleRecalcs": 15,
"styleRecalcDurationMs": 2.929,
"layouts": 11,
"layoutDurationMs": 2.8859999999999997,
"taskDurationMs": 347.386,
"heapDeltaBytes": 3953380,
"heapUsedBytes": 103409756,
"domNodes": 0,
"jsHeapTotalBytes": 7602176,
"scriptDurationMs": 130.015,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.663636363636368,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "dom-widget-clipping",
"durationMs": 609.9490000000287,
"styleRecalcs": 15,
"styleRecalcDurationMs": 2.754,
"layouts": 10,
"layoutDurationMs": 2.2590000000000003,
"taskDurationMs": 421.344,
"heapDeltaBytes": 3195332,
"heapUsedBytes": 103487080,
"domNodes": 0,
"jsHeapTotalBytes": 7864320,
"scriptDurationMs": 133.053,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.667567567567563,
"p95FrameDurationMs": 16.799999999999727
},
{
"name": "dom-widget-order-dense-n200-w200-i120",
"durationMs": 1038.1399999999985,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 704.5709999999999,
"heapDeltaBytes": -14931356,
"heapUsedBytes": 102482504,
"domNodes": -230,
"jsHeapTotalBytes": 16064512,
"scriptDurationMs": 49.263,
"eventListeners": -168,
"totalBlockingTimeMs": 363,
"frameDurationMs": 28.705555555555545,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "dom-widget-order-dense-n200-w200-i120",
"durationMs": 1037.4909999999886,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 691.259,
"heapDeltaBytes": -16297268,
"heapUsedBytes": 102795444,
"domNodes": -230,
"jsHeapTotalBytes": 16494592,
"scriptDurationMs": 48.232,
"eventListeners": -168,
"totalBlockingTimeMs": 355,
"frameDurationMs": 28.702777777777783,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "dom-widget-order-sparse-n1000-w20-i120",
"durationMs": 783.0900000000156,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 359.7049999999999,
"heapDeltaBytes": -4189828,
"heapUsedBytes": 97009368,
"domNodes": 0,
"jsHeapTotalBytes": 0,
"scriptDurationMs": 114.25800000000002,
"eventListeners": 0,
"totalBlockingTimeMs": 159,
"frameDurationMs": 23.03823529411765,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "dom-widget-order-sparse-n1000-w20-i120",
"durationMs": 764.808999999957,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 380.7650000000002,
"heapDeltaBytes": -3735172,
"heapUsedBytes": 96866584,
"domNodes": 0,
"jsHeapTotalBytes": 0,
"scriptDurationMs": 108.74400000000001,
"eventListeners": 0,
"totalBlockingTimeMs": 154,
"frameDurationMs": 23.230303030303013,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "extension-clean-combined-draw",
"durationMs": 7607.744999999994,
"styleRecalcs": 3,
"styleRecalcDurationMs": 0.8670000000000005,
"layouts": 3,
"layoutDurationMs": 0.889,
"taskDurationMs": 6754.902999999999,
"heapDeltaBytes": 40743712,
"heapUsedBytes": 144226212,
"domNodes": -299,
"jsHeapTotalBytes": 29949952,
"scriptDurationMs": 5161.35,
"eventListeners": -130,
"totalBlockingTimeMs": 88,
"frameDurationMs": 24.515161290322585,
"p95FrameDurationMs": 33.400000000000546
},
{
"name": "extension-clean-combined-draw",
"durationMs": 7514.812000000006,
"styleRecalcs": 1,
"styleRecalcDurationMs": 0.2599999999999998,
"layouts": 1,
"layoutDurationMs": 0.2739999999999999,
"taskDurationMs": 6702.994,
"heapDeltaBytes": 34328044,
"heapUsedBytes": 138241208,
"domNodes": -276,
"jsHeapTotalBytes": 36503552,
"scriptDurationMs": 5258.226,
"eventListeners": -130,
"totalBlockingTimeMs": 55,
"frameDurationMs": 24.114790996784567,
"p95FrameDurationMs": 33.400000000000546
},
{
"name": "extension-rgthree-prototype-draw",
"durationMs": 7142.742000000027,
"styleRecalcs": 4,
"styleRecalcDurationMs": 1.176,
"layouts": 3,
"layoutDurationMs": 1.243,
"taskDurationMs": 6473.322999999999,
"heapDeltaBytes": 23246300,
"heapUsedBytes": 132408056,
"domNodes": -297,
"jsHeapTotalBytes": 19464192,
"scriptDurationMs": 4983.5419999999995,
"eventListeners": -130,
"totalBlockingTimeMs": 124,
"frameDurationMs": 25.205300353356893,
"p95FrameDurationMs": 33.400000000000546
},
{
"name": "extension-rgthree-prototype-draw",
"durationMs": 6398.773000000006,
"styleRecalcs": 2,
"styleRecalcDurationMs": 0.451,
"layouts": 2,
"layoutDurationMs": 0.4190000000000001,
"taskDurationMs": 5834.697,
"heapDeltaBytes": -25267272,
"heapUsedBytes": 95009004,
"domNodes": -276,
"jsHeapTotalBytes": -3665920,
"scriptDurationMs": 4529.051,
"eventListeners": -130,
"totalBlockingTimeMs": 37,
"frameDurationMs": 24.709652509652507,
"p95FrameDurationMs": 33.400000000000546
},
{
"name": "large-combo-open",
"durationMs": 167.12899999998854,
"styleRecalcs": 22,
"styleRecalcDurationMs": 10.847000000000001,
"layouts": 11,
"layoutDurationMs": 2.456,
"taskDurationMs": 120.75900000000003,
"heapDeltaBytes": 15410084,
"heapUsedBytes": 120741924,
"domNodes": 917,
"jsHeapTotalBytes": 1310720,
"scriptDurationMs": 6.725999999999999,
"eventListeners": 196,
"totalBlockingTimeMs": 0,
"frameDurationMs": 20.837499999999977,
"p95FrameDurationMs": 49.90000000000009
},
{
"name": "large-combo-open",
"durationMs": 168.0109999999786,
"styleRecalcs": 22,
"styleRecalcDurationMs": 11.590000000000002,
"layouts": 11,
"layoutDurationMs": 2.465,
"taskDurationMs": 128.286,
"heapDeltaBytes": 13224308,
"heapUsedBytes": 119243852,
"domNodes": 917,
"jsHeapTotalBytes": 524288,
"scriptDurationMs": 7.509999999999998,
"eventListeners": 196,
"totalBlockingTimeMs": 0,
"frameDurationMs": 20.366666666666635,
"p95FrameDurationMs": 50
},
{
"name": "large-graph-idle",
"durationMs": 2042.5490000000082,
"styleRecalcs": 9,
"styleRecalcDurationMs": 2.129000000000001,
"layouts": 9,
"layoutDurationMs": 2.077,
"taskDurationMs": 531.7120000000001,
"heapDeltaBytes": 16020,
"heapUsedBytes": 110797356,
"domNodes": -296,
"jsHeapTotalBytes": -1769472,
"scriptDurationMs": 28.828000000000007,
"eventListeners": -130,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665853658536584,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "large-graph-idle",
"durationMs": 2041.1679999999706,
"styleRecalcs": 9,
"styleRecalcDurationMs": 1.9709999999999996,
"layouts": 8,
"layoutDurationMs": 1.73,
"taskDurationMs": 524.7980000000001,
"heapDeltaBytes": -203760,
"heapUsedBytes": 110918748,
"domNodes": -296,
"jsHeapTotalBytes": -1769472,
"scriptDurationMs": 28.134000000000007,
"eventListeners": -130,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665040650406507,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "large-graph-pan",
"durationMs": 2169.594000000018,
"styleRecalcs": 71,
"styleRecalcDurationMs": 9.001,
"layouts": 9,
"layoutDurationMs": 1.907,
"taskDurationMs": 1149.406,
"heapDeltaBytes": -5186260,
"heapUsedBytes": 108538468,
"domNodes": -296,
"jsHeapTotalBytes": -155648,
"scriptDurationMs": 611.873,
"eventListeners": -128,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665116279069768,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "large-graph-pan",
"durationMs": 2203.0280000000175,
"styleRecalcs": 71,
"styleRecalcDurationMs": 9.014999999999999,
"layouts": 9,
"layoutDurationMs": 1.9560000000000002,
"taskDurationMs": 1193.651,
"heapDeltaBytes": -2262900,
"heapUsedBytes": 112100020,
"domNodes": -296,
"jsHeapTotalBytes": -1990656,
"scriptDurationMs": 620.4540000000001,
"eventListeners": -128,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66564885496183,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "large-graph-zoom",
"durationMs": 3324.135999999953,
"styleRecalcs": 73,
"styleRecalcDurationMs": 9.459999999999999,
"layouts": 67,
"layoutDurationMs": 9.926,
"taskDurationMs": 1417.174,
"heapDeltaBytes": -19482736,
"heapUsedBytes": 105669932,
"domNodes": 24,
"jsHeapTotalBytes": 5545984,
"scriptDurationMs": 629.0509999999999,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.7502538071066,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "large-graph-zoom",
"durationMs": 3246.9279999999117,
"styleRecalcs": 72,
"styleRecalcDurationMs": 8.889999999999999,
"layouts": 66,
"layoutDurationMs": 9.596,
"taskDurationMs": 1371.0059999999999,
"heapDeltaBytes": 6837840,
"heapUsedBytes": 119736796,
"domNodes": 24,
"jsHeapTotalBytes": 5246976,
"scriptDurationMs": 618.298,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.75154639175258,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "legacy-node-drag",
"durationMs": 2381.668999999988,
"styleRecalcs": 46,
"styleRecalcDurationMs": 5.267999999999999,
"layouts": 7,
"layoutDurationMs": 1.3790000000000002,
"taskDurationMs": 1557.4109999999998,
"heapDeltaBytes": 16499080,
"heapUsedBytes": 124287080,
"domNodes": 0,
"jsHeapTotalBytes": 5926912,
"scriptDurationMs": 772.149,
"eventListeners": 182,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.902836879432623,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "legacy-node-drag",
"durationMs": 2501.504999999952,
"styleRecalcs": 47,
"styleRecalcDurationMs": 5.154,
"layouts": 6,
"layoutDurationMs": 1.2540000000000002,
"taskDurationMs": 1547.617,
"heapDeltaBytes": 7080496,
"heapUsedBytes": 110139220,
"domNodes": 0,
"jsHeapTotalBytes": 3149824,
"scriptDurationMs": 758.107,
"eventListeners": 182,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.77905405405405,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "minimap-idle",
"durationMs": 2046.3829999999916,
"styleRecalcs": 9,
"styleRecalcDurationMs": 1.9709999999999996,
"layouts": 9,
"layoutDurationMs": 1.7730000000000001,
"taskDurationMs": 535.194,
"heapDeltaBytes": -244080,
"heapUsedBytes": 113102912,
"domNodes": -296,
"jsHeapTotalBytes": -1507328,
"scriptDurationMs": 30.161,
"eventListeners": -130,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665853658536587,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "minimap-idle",
"durationMs": 2036.7160000000695,
"styleRecalcs": 10,
"styleRecalcDurationMs": 2.1230000000000007,
"layouts": 9,
"layoutDurationMs": 2.0820000000000003,
"taskDurationMs": 391.28799999999995,
"heapDeltaBytes": -24313420,
"heapUsedBytes": 97408588,
"domNodes": -297,
"jsHeapTotalBytes": -2441216,
"scriptDurationMs": 28.968,
"eventListeners": -130,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66639344262295,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "subgraph-dom-widget-clipping",
"durationMs": 590.6489999999849,
"styleRecalcs": 47,
"styleRecalcDurationMs": 4.39,
"layouts": 9,
"layoutDurationMs": 2.025,
"taskDurationMs": 399.211,
"heapDeltaBytes": -1102728,
"heapUsedBytes": 90216224,
"domNodes": 0,
"jsHeapTotalBytes": 7602176,
"scriptDurationMs": 120.762,
"eventListeners": 46,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "subgraph-dom-widget-clipping",
"durationMs": 465.0060000000167,
"styleRecalcs": 47,
"styleRecalcDurationMs": 4.580000000000001,
"layouts": 10,
"layoutDurationMs": 2.1989999999999994,
"taskDurationMs": 293.648,
"heapDeltaBytes": -1441608,
"heapUsedBytes": 91728144,
"domNodes": 0,
"jsHeapTotalBytes": 7864320,
"scriptDurationMs": 114.419,
"eventListeners": 46,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66785714285715,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "subgraph-idle",
"durationMs": 2009.145999999987,
"styleRecalcs": 11,
"styleRecalcDurationMs": 2.619,
"layouts": 10,
"layoutDurationMs": 2.0689999999999995,
"taskDurationMs": 423.04400000000004,
"heapDeltaBytes": 4470700,
"heapUsedBytes": 106263664,
"domNodes": 0,
"jsHeapTotalBytes": 7602176,
"scriptDurationMs": 7.189000000000001,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666115702479342,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "subgraph-idle",
"durationMs": 2026.6019999999685,
"styleRecalcs": 10,
"styleRecalcDurationMs": 2.1709999999999994,
"layouts": 9,
"layoutDurationMs": 1.9320000000000002,
"taskDurationMs": 335.246,
"heapDeltaBytes": 2569532,
"heapUsedBytes": 94069016,
"domNodes": -218,
"jsHeapTotalBytes": 1114112,
"scriptDurationMs": 7.4479999999999995,
"eventListeners": -176,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66639344262295,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "subgraph-mouse-sweep",
"durationMs": 1694.2849999999794,
"styleRecalcs": 75,
"styleRecalcDurationMs": 11.405999999999999,
"layouts": 9,
"layoutDurationMs": 1.8339999999999999,
"taskDurationMs": 562.9530000000001,
"heapDeltaBytes": 5245136,
"heapUsedBytes": 95696036,
"domNodes": -190,
"jsHeapTotalBytes": 2424832,
"scriptDurationMs": 83.231,
"eventListeners": -174,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66568627450981,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "subgraph-mouse-sweep",
"durationMs": 1676.1310000000549,
"styleRecalcs": 76,
"styleRecalcDurationMs": 11.748000000000001,
"layouts": 9,
"layoutDurationMs": 1.9380000000000002,
"taskDurationMs": 630.8499999999999,
"heapDeltaBytes": 19639960,
"heapUsedBytes": 112669048,
"domNodes": 0,
"jsHeapTotalBytes": 7602176,
"scriptDurationMs": 84.314,
"eventListeners": 6,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665346534653462,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "subgraph-transition-enter",
"durationMs": 850.3019999999992,
"styleRecalcs": 19,
"styleRecalcDurationMs": 19.53,
"layouts": 5,
"layoutDurationMs": 12.045000000000002,
"taskDurationMs": 611.971,
"heapDeltaBytes": 33387628,
"heapUsedBytes": 134605324,
"domNodes": 16030,
"jsHeapTotalBytes": 16654336,
"scriptDurationMs": 33.883,
"eventListeners": 3244,
"totalBlockingTimeMs": 101,
"frameDurationMs": 20.729268292682917,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "viewport-pan-sweep",
"durationMs": 8341.167999999981,
"styleRecalcs": 252,
"styleRecalcDurationMs": 28.482,
"layouts": 9,
"layoutDurationMs": 1.9240000000000002,
"taskDurationMs": 4593.349,
"heapDeltaBytes": 3007840,
"heapUsedBytes": 113625276,
"domNodes": -296,
"jsHeapTotalBytes": -495616,
"scriptDurationMs": 2063.9390000000003,
"eventListeners": -128,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666067864271454,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "viewport-pan-sweep",
"durationMs": 8340.597000000002,
"styleRecalcs": 252,
"styleRecalcDurationMs": 28.991000000000003,
"layouts": 9,
"layoutDurationMs": 2.204,
"taskDurationMs": 4624.702,
"heapDeltaBytes": -942652,
"heapUsedBytes": 109228512,
"domNodes": -296,
"jsHeapTotalBytes": 28672,
"scriptDurationMs": 2080.416,
"eventListeners": -128,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665868263473055,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "vue-large-graph-idle",
"durationMs": 18757.535000000018,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 18263.292,
"heapDeltaBytes": -23908232,
"heapUsedBytes": 301123928,
"domNodes": -3344,
"jsHeapTotalBytes": 28299264,
"scriptDurationMs": 239.45900000000003,
"eventListeners": -653,
"totalBlockingTimeMs": 0,
"frameDurationMs": 32.38221070811745,
"p95FrameDurationMs": 66.69999999999709
},
{
"name": "vue-large-graph-idle",
"durationMs": 18909.831000000053,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 18532.372000000003,
"heapDeltaBytes": -4421120,
"heapUsedBytes": 302976060,
"domNodes": -3344,
"jsHeapTotalBytes": 19648512,
"scriptDurationMs": 234.795,
"eventListeners": -653,
"totalBlockingTimeMs": 0,
"frameDurationMs": 33.77857142857143,
"p95FrameDurationMs": 66.70000000000073
},
{
"name": "vue-large-graph-pan",
"durationMs": 22175.546999999995,
"styleRecalcs": 171,
"styleRecalcDurationMs": 15.465000000000007,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 21832.173,
"heapDeltaBytes": -29945564,
"heapUsedBytes": 290124184,
"domNodes": -307,
"jsHeapTotalBytes": 17027072,
"scriptDurationMs": 708.4430000000001,
"eventListeners": -5,
"totalBlockingTimeMs": 0,
"frameDurationMs": 40.88232044198895,
"p95FrameDurationMs": 83.39999999999964
},
{
"name": "vue-large-graph-pan",
"durationMs": 22535.598999999933,
"styleRecalcs": 176,
"styleRecalcDurationMs": 16.769000000000005,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 22139.789,
"heapDeltaBytes": -11153272,
"heapUsedBytes": 308579524,
"domNodes": -3344,
"jsHeapTotalBytes": 16433152,
"scriptDurationMs": 698.938,
"eventListeners": -651,
"totalBlockingTimeMs": 0,
"frameDurationMs": 42.19531835205993,
"p95FrameDurationMs": 83.40000000000146
},
{
"name": "vue-node-resize-workload",
"durationMs": 4939.857000000018,
"styleRecalcs": 20,
"styleRecalcDurationMs": 69.28699999999999,
"layouts": 20,
"layoutDurationMs": 26.455999999999992,
"taskDurationMs": 4850.8910000000005,
"heapDeltaBytes": -15644204,
"heapUsedBytes": 285895448,
"domNodes": -3344,
"jsHeapTotalBytes": 25677824,
"scriptDurationMs": 77.407,
"eventListeners": -653,
"totalBlockingTimeMs": 0,
"frameDurationMs": 28.44712643678161,
"p95FrameDurationMs": 50.100000000000364
},
{
"name": "vue-node-resize-workload",
"durationMs": 6734.226000000035,
"styleRecalcs": 20,
"styleRecalcDurationMs": 48.50299999999999,
"layouts": 20,
"layoutDurationMs": 20.99699999999999,
"taskDurationMs": 6638.747999999999,
"heapDeltaBytes": -30613312,
"heapUsedBytes": 274751904,
"domNodes": -3344,
"jsHeapTotalBytes": 17813504,
"scriptDurationMs": 99.464,
"eventListeners": -653,
"totalBlockingTimeMs": 0,
"frameDurationMs": 38.47485714285715,
"p95FrameDurationMs": 66.79999999999927
},
{
"name": "vue-zoom-out-idle",
"durationMs": 9279.061000000012,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 8971.925000000003,
"heapDeltaBytes": 19202832,
"heapUsedBytes": 298090208,
"domNodes": 0,
"jsHeapTotalBytes": 0,
"scriptDurationMs": 119.41000000000001,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 31.900343642611684,
"p95FrameDurationMs": 66.60000000000218
},
{
"name": "vue-zoom-out-idle",
"durationMs": 9270.748000000025,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 8950.643999999998,
"heapDeltaBytes": 24128,
"heapUsedBytes": 294231480,
"domNodes": 0,
"jsHeapTotalBytes": 0,
"scriptDurationMs": 117.54199999999997,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 31.842611683848794,
"p95FrameDurationMs": 66.60000000000218
},
{
"name": "workflow-execution",
"durationMs": 76.96299999997791,
"styleRecalcs": 7,
"styleRecalcDurationMs": 5.942,
"layouts": 5,
"layoutDurationMs": 1.4919999999999998,
"taskDurationMs": 52.87800000000001,
"heapDeltaBytes": 4794280,
"heapUsedBytes": 97122736,
"domNodes": 97,
"jsHeapTotalBytes": 0,
"scriptDurationMs": 5.957000000000001,
"eventListeners": 1,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.659999999999947,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "workflow-execution",
"durationMs": 95.00600000001214,
"styleRecalcs": 8,
"styleRecalcDurationMs": 7.175,
"layouts": 6,
"layoutDurationMs": 2.391,
"taskDurationMs": 69.04000000000002,
"heapDeltaBytes": 4754232,
"heapUsedBytes": 95037348,
"domNodes": 95,
"jsHeapTotalBytes": 262144,
"scriptDurationMs": 6.320999999999999,
"eventListeners": 1,
"totalBlockingTimeMs": 0,
"frameDurationMs": 20,
"p95FrameDurationMs": 33.29999999999973
},
{
"name": "agent-composer-empty-conversation-typing",
"durationMs": 269.75900000002184,
"styleRecalcs": 5,
"styleRecalcDurationMs": 0.57,
"layouts": 76,
"layoutDurationMs": 11.155999999999999,
"taskDurationMs": 230.292,
"heapDeltaBytes": 10082152,
"heapUsedBytes": 96612636,
"domNodes": 4,
"jsHeapTotalBytes": 9699328,
"scriptDurationMs": 108.59299999999999,
"eventListeners": 292,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.662499999999994,
"p95FrameDurationMs": 16.799999999999727
},
{
"name": "agent-composer-empty-conversation-typing",
"durationMs": 277.11999999996806,
"styleRecalcs": 5,
"styleRecalcDurationMs": 0.602,
"layouts": 76,
"layoutDurationMs": 11.244,
"taskDurationMs": 233.383,
"heapDeltaBytes": 10044032,
"heapUsedBytes": 98176512,
"domNodes": 4,
"jsHeapTotalBytes": 9961472,
"scriptDurationMs": 108.43799999999999,
"eventListeners": 292,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.664705882352926,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "agent-composer-long-conversation-typing",
"durationMs": 302.80900000002475,
"styleRecalcs": 5,
"styleRecalcDurationMs": 1.4649999999999999,
"layouts": 76,
"layoutDurationMs": 10.238999999999999,
"taskDurationMs": 273.058,
"heapDeltaBytes": -6322004,
"heapUsedBytes": 109325892,
"domNodes": 4,
"jsHeapTotalBytes": 5767168,
"scriptDurationMs": 99.677,
"eventListeners": 292,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.663157894736862,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "agent-composer-long-conversation-typing",
"durationMs": 306.3489999999547,
"styleRecalcs": 5,
"styleRecalcDurationMs": 1.414,
"layouts": 76,
"layoutDurationMs": 10.055,
"taskDurationMs": 268.985,
"heapDeltaBytes": -1539444,
"heapUsedBytes": 115336912,
"domNodes": 4,
"jsHeapTotalBytes": 0,
"scriptDurationMs": 98.857,
"eventListeners": 292,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66842105263157,
"p95FrameDurationMs": 16.800000000000182
}
]
}🔬 E2E CoverageLine coverage: 59.9% Coverage totals
Top 10 files by uncovered lines
🎭 Playwright: ✅ 2986 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 218aa9cb6fd50ba96c25e08a9e3d45cd70cab752
Full docs: ADR-DEVEX-LINT-0015 🏛️ Architecture: ✅ PassedFindings and check detailsWarnings (128)
Reproduce locallypnpm architecture:checkFull docs: Frontend domain catalog |
… tests
On this release branch restoreTarget resolves to a boolean, not the
{ ready, committedWorkflowId } object it returns on main, so the
backported assertions failed typecheck.
dante01yoon
left a comment
There was a problem hiding this comment.
Backport of #22048 — approving.
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## core/1.58 #22277 +/- ##
=============================================
- Coverage 84.30% 84.30% -0.01%
=============================================
Files 3105 3105
Lines 163536 163556 +20
Branches 41699 41701 +2
=============================================
+ Hits 137876 137890 +14
- Misses 25268 25274 +6
Partials 392 392
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 9 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Backport of #22048 to
core/1.58.Manual: the automatic cherry-pick conflicted only on context lines.
useAgentWorkflowSelection.tslacks theWorkflowRestorationconstants from main, so onlySTARTUP_TAB_RESTORE_TIMEOUT_MSwas added.AgentPanelRoot.test.tslacks thedistributionsetup, so only themarkTabsRestored()line was added. No logic changes from #22048.Second commit: on this branch
restoreTargetresolves to a boolean rather than main's{ ready, committedWorkflowId }, so the four new PM-2332 tests asserttrueinstead of the object. Same behaviour checked.