Repository navigation
[backport cloud/1.60] fix(agent): bind the workflow a followed chat opens (FRONT-3804) - #22806
Conversation
…81) (#22596) ## Summary - Records unsynced state only when a real local graph intent occurs while the bound workflow document is not yet confirmed; merely binding or abandoning a target stays clean. - Preserves genuine unsynced ownership across follower/product-gate restarts, then lets the replacement follower retire it after confirmation. - Keeps the existing restore warning and bind guard unchanged. Linear: FRONT-3581 (split from FE-1969 / #21147). ## Test plan - [x] Cloud black-box harness: `agentFollowerRestoredBindingReload.spec.ts` makes and saves a widget edit while identity is pending, restores again, resolves identity, and verifies the visible edit survives without an unsafe second subscription. - [x] Parent-behavior RED proof: removing only the production intent-to-follower wiring makes that test fail (`expected subscribe count 1, received 2`); restored wiring is GREEN. - [x] Focused Vitest after live-main rebase: 729 tests passed across AgentPanelRoot, docOpMinter, unsynced ownership, and product-gate restart coverage. - [x] Commit hooks: app/browser typecheck, type-aware lint, ESLint, stylelint, server-facts all passed. - [x] Push hooks: dependency-cruiser, knip, and fallow changed-file audit passed with zero findings. (cherry picked from commit c76f916)
) ## Summary Agent edits to a workflow whose tab is in the background now appear when you switch back. Before this, they appeared only after a reload (1.60 regression from #21512, [FRONT-3804](https://linear.app/comfyorg/issue/FRONT-3804)). Root cause: clicking a saved tab opens that tab's chat. Loading a chat clears the session binding that the CRDT follower subscribes to, and the follow path never set it again. The follower stayed detached, and the next turn's acknowledgement was the only thing that reattached it. The fix binds the followed chat's workflow the same way a chat restored from history already does, with the same unsynced-human-ops guard (#21147). <details><summary>Full context for agent readers</summary> - **Regressing commit:** 1a6324c (#21512, "carry workflow chat follow onto current main"). It changed `useAgentSession`'s `restored` hook from `onWorkflowRestoredAndBound` to `restoreChatWorkflow`. The follow branch of that hook calls `adoptWorkflowTarget` + `adoptRestoredWorkflowTab` but never `bindWorkflow`, while `loadThread` → `openThread` → `forgetBinding()` has already nulled `boundWorkflowId`. With `boundWorkflowId === null`, `isFollowerActive` is false, so `useAgentCrdtFollower` unsubscribes and never resubscribes. - **Matches QA CNV06 step 5:** the first `add_node` landed live before the switch. After the follow, nothing else reached the canvas, so the node stayed untitled, the turn read "Changes not confirmed on your canvas", and a reload restored everything. - **Bisect:** the canvas-only variant of the new spec is green at f9f5b8d (the parent of 1a6324c) and red at 1a6324c. 1.59.0.dev2 (864bfc9) predates #21512. - **Change:** `AgentPanelRoot.vue` extracts `bindRestoredWorkflow` from `onWorkflowRestoredAndBound`. The follow path's `adoptWorkflowTarget` dep now also binds. No change to the follower, the projection or the applier. No reconcile pass. Remote apply still goes through the graph API. - **Unsynced guard on the follow bind (review round 1):** before this round, an unbound local edit was recorded as unsynced only when it hit the *bound* workflow. An edit to the visible tab while another workflow, or none, was bound went unrecorded, so the follow could bind that tab and run catch-up over a canvas the document never saw. `docOpMinter` now reports those edits through `onUnboundVisibleIntent`. `AgentPanelRoot` records them under the visible tab's confirmed binding (`bindingStore.workflowIdFor`), so `bindRestoredWorkflow`'s existing `hasUnsyncedHumanOps` guard refuses the bind. Tabs with no confirmed binding are not recorded, so edits made before a workflow's first chat do not block its later follow bind. No reconcile pass. - **Why the spec exists:** the agent edits saved workflow A while the user is on saved workflow B, whose own chat the panel follows. Returning to A must show every edit the agent made there, without a reload. Following a tab's chat loads that chat, which clears the session binding the CRDT follower subscribes to. Unless the followed chat binds its workflow again, the follower stays detached. Source: frontend 1.60 QA check CNV06 step 5, [FRONT-3804](https://linear.app/comfyorg/issue/FRONT-3804). - **Harness:** `agentConversationFixture` gains `applyOpsOnHostUnsent` (a host edit made while this client follows another workflow; the host fans it out only to subscribers, so it reaches this client only in the catch-up that answers its next subscribe), `serveWorkflow` (a second workflow's document) and `holdTranscript` (holds one thread's transcript read so a test can act while a chat loads). The spec's workflows, threads and transcripts live in `fixtures/data/agent/backgroundTabEdits.ts` and are served by the existing `AgentWorkflowChatsMock`. </details> ## Verification - New black-box spec `browser_tests/tests/agent/agentBackgroundTabEditsLand.spec.ts`: red on `main` a8c2ace (`[data-node-id="801"]` title never appears), green with the fix, 4/4 on `--repeat-each=4`. - Second case in the same spec, `do not rebind a tab the user edited while its chat was loading`: red with only the visible-intent wiring removed (B re-subscribed, subscribe count 2, expected 1), green with it. Both cases pass 6/6 on `--repeat-each=3` at `2e1e1c4f9b`. The first case is still red with the follow bind removed. - Neighbouring agent specs green: follows-chat, tab-chat transitions, restored-binding reload, tab-switch catch-up, reload binding, history reopen/focus, duplicate-name binding, stale tab binding, new-chat target, human-add tab switch. One failure, `agentWorkflowSelection` "picks an unsaved tab a reload left unopened", fails identically on unmodified `main` on this host, so it is unrelated. - `AgentPanelRoot.test.ts` and `useAgentWorkflowChatFollow.test.ts` pass (575/575). `typecheck` and `typecheck:browser` pass, and pre-commit/pre-push hooks ran. - **Backport:** `core/1.60` and `cloud/1.60` (the pin decision), plus `core/1.59` and `cloud/1.59`, whose tips already carry #21512. `cloud/v1.59.1` and later tags ship it. Tag `v1.59.0` does not. (cherry picked from commit 6dd3d82)
|
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-03T12:32:17.595Z",
"gitSha": "a0161d490c30cddae17fd49a3a0173b6d1bbfed2",
"branch": "backport-22792-to-cloud-1.60",
"measurements": [
{
"name": "canvas-idle",
"durationMs": 2023.7970000000018,
"styleRecalcs": 9,
"styleRecalcDurationMs": 2.446,
"layouts": 9,
"layoutDurationMs": 2.2950000000000004,
"taskDurationMs": 465.322,
"heapDeltaBytes": -7263148,
"heapUsedBytes": 55217200,
"domNodes": -178,
"jsHeapTotalBytes": 8126464,
"scriptDurationMs": 8.365,
"eventListeners": -69,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66639344262295,
"p95FrameDurationMs": 16.799999999999727
},
{
"name": "canvas-idle",
"durationMs": 2007.727999999986,
"styleRecalcs": 9,
"styleRecalcDurationMs": 2.144,
"layouts": 9,
"layoutDurationMs": 2.0550000000000006,
"taskDurationMs": 436.23199999999997,
"heapDeltaBytes": 8069336,
"heapUsedBytes": 69680980,
"domNodes": 0,
"jsHeapTotalBytes": 6291456,
"scriptDurationMs": 7.951000000000001,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666115702479342,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "canvas-mouse-sweep",
"durationMs": 1726.8569999999954,
"styleRecalcs": 74,
"styleRecalcDurationMs": 11.827,
"layouts": 9,
"layoutDurationMs": 2.1519999999999997,
"taskDurationMs": 761.605,
"heapDeltaBytes": -6098488,
"heapUsedBytes": 63010528,
"domNodes": -178,
"jsHeapTotalBytes": 10485760,
"scriptDurationMs": 123.37899999999999,
"eventListeners": -69,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666346153846156,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "canvas-mouse-sweep",
"durationMs": 1704.9470000000042,
"styleRecalcs": 73,
"styleRecalcDurationMs": 12.717,
"layouts": 10,
"layoutDurationMs": 2.5720000000000005,
"taskDurationMs": 784.961,
"heapDeltaBytes": 23475380,
"heapUsedBytes": 82913916,
"domNodes": 0,
"jsHeapTotalBytes": 2883584,
"scriptDurationMs": 133.29,
"eventListeners": 6,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665686274509806,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "canvas-zoom-sweep",
"durationMs": 1709.0580000000273,
"styleRecalcs": 18,
"styleRecalcDurationMs": 4.119,
"layouts": 11,
"layoutDurationMs": 2.274,
"taskDurationMs": 325.25399999999996,
"heapDeltaBytes": 1548668,
"heapUsedBytes": 63245736,
"domNodes": 57,
"jsHeapTotalBytes": 6815744,
"scriptDurationMs": 9.752999999999998,
"eventListeners": 43,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666019417475727,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "canvas-zoom-sweep",
"durationMs": 1723.3710000000428,
"styleRecalcs": 18,
"styleRecalcDurationMs": 4.998,
"layouts": 11,
"layoutDurationMs": 2.7620000000000005,
"taskDurationMs": 411.59700000000004,
"heapDeltaBytes": 7339008,
"heapUsedBytes": 83438408,
"domNodes": 57,
"jsHeapTotalBytes": 10223616,
"scriptDurationMs": 14.780999999999999,
"eventListeners": 43,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665384615384614,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "dom-widget-clipping",
"durationMs": 593.1720000000098,
"styleRecalcs": 15,
"styleRecalcDurationMs": 3.0129999999999995,
"layouts": 10,
"layoutDurationMs": 2.513,
"taskDurationMs": 421.6569999999999,
"heapDeltaBytes": -15608204,
"heapUsedBytes": 60653008,
"domNodes": 0,
"jsHeapTotalBytes": 10747904,
"scriptDurationMs": 141.11599999999999,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "dom-widget-clipping",
"durationMs": 558.9469999999892,
"styleRecalcs": 12,
"styleRecalcDurationMs": 2.6490000000000005,
"layouts": 8,
"layoutDurationMs": 2.28,
"taskDurationMs": 418.61300000000006,
"heapDeltaBytes": 2775564,
"heapUsedBytes": 64522028,
"domNodes": 0,
"jsHeapTotalBytes": 2883584,
"scriptDurationMs": 138.041,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.799999999999727
},
{
"name": "dom-widget-order-dense-n200-w200-i120",
"durationMs": 1052.819999999997,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 701.412,
"heapDeltaBytes": 13930020,
"heapUsedBytes": 104698932,
"domNodes": -148,
"jsHeapTotalBytes": 24281088,
"scriptDurationMs": 43.955000000000005,
"eventListeners": -107,
"totalBlockingTimeMs": 394,
"frameDurationMs": 29.997142857142858,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "dom-widget-order-dense-n200-w200-i120",
"durationMs": 1035.825999999986,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 702.491,
"heapDeltaBytes": -11796872,
"heapUsedBytes": 78351448,
"domNodes": -208,
"jsHeapTotalBytes": 21504000,
"scriptDurationMs": 50.552,
"eventListeners": -107,
"totalBlockingTimeMs": 365,
"frameDurationMs": 28.702777777777783,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "dom-widget-order-sparse-n1000-w20-i120",
"durationMs": 779.7140000000127,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 395.32000000000033,
"heapDeltaBytes": -2337292,
"heapUsedBytes": 69028456,
"domNodes": 0,
"jsHeapTotalBytes": 0,
"scriptDurationMs": 119.37900000000002,
"eventListeners": 0,
"totalBlockingTimeMs": 159,
"frameDurationMs": 23.041176470588226,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "dom-widget-order-sparse-n1000-w20-i120",
"durationMs": 812.2989999999959,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 446.8960000000002,
"heapDeltaBytes": -23529736,
"heapUsedBytes": 69030356,
"domNodes": -208,
"jsHeapTotalBytes": 4849664,
"scriptDurationMs": 118.21399999999998,
"eventListeners": -107,
"totalBlockingTimeMs": 159,
"frameDurationMs": 22.683333333333344,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "extension-clean-combined-draw",
"durationMs": 7674.887000000012,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 6775.782,
"heapDeltaBytes": 43737720,
"heapUsedBytes": 120532476,
"domNodes": -274,
"jsHeapTotalBytes": 52817920,
"scriptDurationMs": 5160.262000000001,
"eventListeners": -69,
"totalBlockingTimeMs": 47,
"frameDurationMs": 23.734984520123835,
"p95FrameDurationMs": 33.40000000000009
},
{
"name": "extension-clean-combined-draw",
"durationMs": 7322.831000000007,
"styleRecalcs": 4,
"styleRecalcDurationMs": 0.8399999999999996,
"layouts": 3,
"layoutDurationMs": 0.6840000000000002,
"taskDurationMs": 6428.197,
"heapDeltaBytes": 47049672,
"heapUsedBytes": 129909700,
"domNodes": -274,
"jsHeapTotalBytes": 50458624,
"scriptDurationMs": 4937.481,
"eventListeners": -69,
"totalBlockingTimeMs": 72,
"frameDurationMs": 23.909803921568628,
"p95FrameDurationMs": 33.400000000000546
},
{
"name": "extension-rgthree-prototype-draw",
"durationMs": 7725.252999999981,
"styleRecalcs": 2,
"styleRecalcDurationMs": 0.34100000000000014,
"layouts": 2,
"layoutDurationMs": 0.516,
"taskDurationMs": 6923.228,
"heapDeltaBytes": 56255828,
"heapUsedBytes": 131938972,
"domNodes": -274,
"jsHeapTotalBytes": 50458624,
"scriptDurationMs": 5299.826999999999,
"eventListeners": -69,
"totalBlockingTimeMs": 95,
"frameDurationMs": 24.47183544303797,
"p95FrameDurationMs": 33.400000000001455
},
{
"name": "extension-rgthree-prototype-draw",
"durationMs": 7558.696999999995,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 6714.812,
"heapDeltaBytes": 75861856,
"heapUsedBytes": 138180356,
"domNodes": 0,
"jsHeapTotalBytes": 69730304,
"scriptDurationMs": 5182.776,
"eventListeners": 0,
"totalBlockingTimeMs": 47,
"frameDurationMs": 24.096496815286624,
"p95FrameDurationMs": 33.40000000000009
},
{
"name": "large-combo-open",
"durationMs": 235.44599999999605,
"styleRecalcs": 24,
"styleRecalcDurationMs": 15.027,
"layouts": 12,
"layoutDurationMs": 3.166,
"taskDurationMs": 193.87199999999999,
"heapDeltaBytes": -6375408,
"heapUsedBytes": 69271416,
"domNodes": -2427,
"jsHeapTotalBytes": 524288,
"scriptDurationMs": 8.200000000000001,
"eventListeners": -582,
"totalBlockingTimeMs": 0,
"frameDurationMs": 21.209090909090886,
"p95FrameDurationMs": 66.69999999999982
},
{
"name": "large-combo-open",
"durationMs": 206.9970000000012,
"styleRecalcs": 20,
"styleRecalcDurationMs": 14.227,
"layouts": 10,
"layoutDurationMs": 3.01,
"taskDurationMs": 172.00300000000001,
"heapDeltaBytes": -4881944,
"heapUsedBytes": 69585540,
"domNodes": 728,
"jsHeapTotalBytes": 524288,
"scriptDurationMs": 10.108000000000002,
"eventListeners": 63,
"totalBlockingTimeMs": 26,
"frameDurationMs": 30.94285714285713,
"p95FrameDurationMs": 116.70000000000027
},
{
"name": "large-graph-idle",
"durationMs": 2025.3119999999853,
"styleRecalcs": 9,
"styleRecalcDurationMs": 2.319,
"layouts": 9,
"layoutDurationMs": 2.029,
"taskDurationMs": 532.6410000000002,
"heapDeltaBytes": -4912896,
"heapUsedBytes": 78392284,
"domNodes": -274,
"jsHeapTotalBytes": 2486272,
"scriptDurationMs": 28.365000000000002,
"eventListeners": -69,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66639344262295,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "large-graph-idle",
"durationMs": 2026.2749999999983,
"styleRecalcs": 10,
"styleRecalcDurationMs": 2.19,
"layouts": 9,
"layoutDurationMs": 2.033,
"taskDurationMs": 541.04,
"heapDeltaBytes": -3535412,
"heapUsedBytes": 75838212,
"domNodes": -274,
"jsHeapTotalBytes": 3272704,
"scriptDurationMs": 29.346999999999998,
"eventListeners": -69,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.6655737704918,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "large-graph-pan",
"durationMs": 2316.7719999999863,
"styleRecalcs": 69,
"styleRecalcDurationMs": 8.363,
"layouts": 7,
"layoutDurationMs": 1.568,
"taskDurationMs": 1372.7230000000002,
"heapDeltaBytes": -6471688,
"heapUsedBytes": 72236148,
"domNodes": -274,
"jsHeapTotalBytes": 4022272,
"scriptDurationMs": 653.173,
"eventListeners": -67,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66618705035971,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "large-graph-pan",
"durationMs": 2348.912000000041,
"styleRecalcs": 70,
"styleRecalcDurationMs": 8.793000000000001,
"layouts": 8,
"layoutDurationMs": 1.8050000000000002,
"taskDurationMs": 1365.458,
"heapDeltaBytes": -8142068,
"heapUsedBytes": 73507500,
"domNodes": -274,
"jsHeapTotalBytes": 5332992,
"scriptDurationMs": 654.501,
"eventListeners": -67,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665248226950357,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "large-graph-zoom",
"durationMs": 3269.498999999996,
"styleRecalcs": 72,
"styleRecalcDurationMs": 9.417,
"layouts": 65,
"layoutDurationMs": 9.82,
"taskDurationMs": 1421.829,
"heapDeltaBytes": -18843488,
"heapUsedBytes": 73591376,
"domNodes": 24,
"jsHeapTotalBytes": 5279744,
"scriptDurationMs": 631.5280000000001,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665816326530614,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "large-graph-zoom",
"durationMs": 3705.68099999997,
"styleRecalcs": 73,
"styleRecalcDurationMs": 9.842,
"layouts": 66,
"layoutDurationMs": 9.929,
"taskDurationMs": 1553.355,
"heapDeltaBytes": -14797196,
"heapUsedBytes": 77102200,
"domNodes": -250,
"jsHeapTotalBytes": 6193152,
"scriptDurationMs": 670.23,
"eventListeners": -69,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666216216216217,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "legacy-node-drag",
"durationMs": 2431.6080000000397,
"styleRecalcs": 47,
"styleRecalcDurationMs": 5.897,
"layouts": 7,
"layoutDurationMs": 1.692,
"taskDurationMs": 1607.9720000000002,
"heapDeltaBytes": -3143340,
"heapUsedBytes": 91258408,
"domNodes": 0,
"jsHeapTotalBytes": 5697536,
"scriptDurationMs": 778.406,
"eventListeners": 182,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.780689655172417,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "legacy-node-drag",
"durationMs": 2444.6440000000393,
"styleRecalcs": 47,
"styleRecalcDurationMs": 5.601000000000001,
"layouts": 8,
"layoutDurationMs": 1.871,
"taskDurationMs": 1602.7820000000002,
"heapDeltaBytes": 22434308,
"heapUsedBytes": 94951204,
"domNodes": 0,
"jsHeapTotalBytes": 3301376,
"scriptDurationMs": 786.7769999999999,
"eventListeners": 182,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.897222222222222,
"p95FrameDurationMs": 16.799999999999727
},
{
"name": "minimap-geometry-cadence",
"durationMs": 2896.4369999999917,
"styleRecalcs": 8,
"styleRecalcDurationMs": 1.784,
"layouts": 8,
"layoutDurationMs": 1.5880000000000003,
"taskDurationMs": 588.099,
"heapDeltaBytes": 2455096,
"heapUsedBytes": 94503052,
"domNodes": 0,
"jsHeapTotalBytes": 4493312,
"scriptDurationMs": 285.26399999999995,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "minimap-geometry-cadence",
"durationMs": 2931.4919999999915,
"styleRecalcs": 9,
"styleRecalcDurationMs": 1.98,
"layouts": 8,
"layoutDurationMs": 1.647,
"taskDurationMs": 597.895,
"heapDeltaBytes": 1744828,
"heapUsedBytes": 93673896,
"domNodes": 0,
"jsHeapTotalBytes": 4755456,
"scriptDurationMs": 285.57099999999997,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66590909090909,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "minimap-idle",
"durationMs": 2047.190999999998,
"styleRecalcs": 7,
"styleRecalcDurationMs": 1.7370000000000008,
"layouts": 7,
"layoutDurationMs": 1.4300000000000002,
"taskDurationMs": 528.366,
"heapDeltaBytes": -2027540,
"heapUsedBytes": 83585484,
"domNodes": -274,
"jsHeapTotalBytes": 3534848,
"scriptDurationMs": 28.291000000000004,
"eventListeners": -69,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66666666666667,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "minimap-idle",
"durationMs": 2049.97800000001,
"styleRecalcs": 9,
"styleRecalcDurationMs": 2.461,
"layouts": 8,
"layoutDurationMs": 1.986,
"taskDurationMs": 635.6960000000001,
"heapDeltaBytes": -19851564,
"heapUsedBytes": 65214072,
"domNodes": -274,
"jsHeapTotalBytes": 3534848,
"scriptDurationMs": 33.132000000000005,
"eventListeners": -69,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665853658536584,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "minimap-progress-execution-cadence",
"durationMs": 2727.0879999999806,
"styleRecalcs": 27,
"styleRecalcDurationMs": 11.062,
"layouts": 8,
"layoutDurationMs": 1.878,
"taskDurationMs": 515.817,
"heapDeltaBytes": -5734996,
"heapUsedBytes": 79833192,
"domNodes": -256,
"jsHeapTotalBytes": 4321280,
"scriptDurationMs": 164.592,
"eventListeners": -69,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665853658536584,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "minimap-progress-execution-cadence",
"durationMs": 2691.309999999987,
"styleRecalcs": 27,
"styleRecalcDurationMs": 10.454,
"layouts": 7,
"layoutDurationMs": 1.252,
"taskDurationMs": 481.9680000000001,
"heapDeltaBytes": -6953980,
"heapUsedBytes": 69376880,
"domNodes": -258,
"jsHeapTotalBytes": 4321280,
"scriptDurationMs": 148.868,
"eventListeners": -69,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66543209876543,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "minimap-topology-cadence",
"durationMs": 3080.257999999986,
"styleRecalcs": 7,
"styleRecalcDurationMs": 1.4849999999999994,
"layouts": 7,
"layoutDurationMs": 1.3359999999999999,
"taskDurationMs": 815.396,
"heapDeltaBytes": -14369172,
"heapUsedBytes": 68944080,
"domNodes": -274,
"jsHeapTotalBytes": 4845568,
"scriptDurationMs": 303.311,
"eventListeners": -69,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665945945945946,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "minimap-topology-cadence",
"durationMs": 3033.6279999999647,
"styleRecalcs": 8,
"styleRecalcDurationMs": 1.7039999999999997,
"layouts": 8,
"layoutDurationMs": 1.661,
"taskDurationMs": 737.083,
"heapDeltaBytes": 10787208,
"heapUsedBytes": 94241556,
"domNodes": 0,
"jsHeapTotalBytes": 5505024,
"scriptDurationMs": 292.671,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665934065934067,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "subgraph-dom-widget-clipping",
"durationMs": 531.3530000000242,
"styleRecalcs": 46,
"styleRecalcDurationMs": 4.367000000000001,
"layouts": 9,
"layoutDurationMs": 1.949,
"taskDurationMs": 352.19500000000005,
"heapDeltaBytes": 24357492,
"heapUsedBytes": 86577164,
"domNodes": 0,
"jsHeapTotalBytes": 3932160,
"scriptDurationMs": 122.05699999999999,
"eventListeners": 46,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66562499999999,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "subgraph-dom-widget-clipping",
"durationMs": 563.5300000000143,
"styleRecalcs": 46,
"styleRecalcDurationMs": 5.18,
"layouts": 9,
"layoutDurationMs": 2.41,
"taskDurationMs": 387.47900000000004,
"heapDeltaBytes": 1290012,
"heapUsedBytes": 63282080,
"domNodes": 0,
"jsHeapTotalBytes": 6815744,
"scriptDurationMs": 126.58699999999997,
"eventListeners": 46,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66470588235295,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "subgraph-idle",
"durationMs": 2009.3240000000208,
"styleRecalcs": 10,
"styleRecalcDurationMs": 2.196,
"layouts": 10,
"layoutDurationMs": 2.1,
"taskDurationMs": 427.488,
"heapDeltaBytes": 8341532,
"heapUsedBytes": 70613340,
"domNodes": 0,
"jsHeapTotalBytes": 6553600,
"scriptDurationMs": 7.183000000000002,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66611570247934,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "subgraph-idle",
"durationMs": 2025.0310000000127,
"styleRecalcs": 10,
"styleRecalcDurationMs": 2.8729999999999998,
"layouts": 10,
"layoutDurationMs": 2.4760000000000004,
"taskDurationMs": 500.62000000000006,
"heapDeltaBytes": 1397648,
"heapUsedBytes": 76720812,
"domNodes": -200,
"jsHeapTotalBytes": 10747904,
"scriptDurationMs": 9.955,
"eventListeners": -116,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665573770491804,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "subgraph-mouse-sweep",
"durationMs": 1726.63,
"styleRecalcs": 76,
"styleRecalcDurationMs": 12.078,
"layouts": 10,
"layoutDurationMs": 2.152,
"taskDurationMs": 695.381,
"heapDeltaBytes": -4794848,
"heapUsedBytes": 69460876,
"domNodes": -200,
"jsHeapTotalBytes": 11272192,
"scriptDurationMs": 82.914,
"eventListeners": -116,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666346153846156,
"p95FrameDurationMs": 16.799999999999727
},
{
"name": "subgraph-mouse-sweep",
"durationMs": 1717.205999999976,
"styleRecalcs": 75,
"styleRecalcDurationMs": 12.752999999999998,
"layouts": 9,
"layoutDurationMs": 2.1929999999999996,
"taskDurationMs": 729.074,
"heapDeltaBytes": 12384280,
"heapUsedBytes": 74945596,
"domNodes": -200,
"jsHeapTotalBytes": 3145728,
"scriptDurationMs": 85.137,
"eventListeners": -116,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666990291262135,
"p95FrameDurationMs": 16.799999999999727
},
{
"name": "subgraph-transition-enter",
"durationMs": 1401.602999999966,
"styleRecalcs": 19,
"styleRecalcDurationMs": 19.971999999999998,
"layouts": 5,
"layoutDurationMs": 13.768999999999997,
"taskDurationMs": 1036.062,
"heapDeltaBytes": 7536168,
"heapUsedBytes": 89805436,
"domNodes": -1320,
"jsHeapTotalBytes": 16252928,
"scriptDurationMs": 25.064000000000004,
"eventListeners": -262,
"totalBlockingTimeMs": 134,
"frameDurationMs": 19.143243243243248,
"p95FrameDurationMs": 16.799999999999272
},
{
"name": "viewport-pan-sweep",
"durationMs": 8427.749000000005,
"styleRecalcs": 251,
"styleRecalcDurationMs": 28.584,
"layouts": 10,
"layoutDurationMs": 2.067,
"taskDurationMs": 4762.456999999999,
"heapDeltaBytes": -8115644,
"heapUsedBytes": 73521352,
"domNodes": -274,
"jsHeapTotalBytes": 5332992,
"scriptDurationMs": 2172.8329999999996,
"eventListeners": -67,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66600790513834,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "viewport-pan-sweep",
"durationMs": 10629.352000000039,
"styleRecalcs": 251,
"styleRecalcDurationMs": 30.611,
"layouts": 9,
"layoutDurationMs": 2.018,
"taskDurationMs": 5178.809,
"heapDeltaBytes": -10211520,
"heapUsedBytes": 82123248,
"domNodes": -274,
"jsHeapTotalBytes": 5074944,
"scriptDurationMs": 2317.916,
"eventListeners": -67,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.66598746081505,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "vue-large-graph-idle",
"durationMs": 20365.555999999968,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 19924.773,
"heapDeltaBytes": 9400000,
"heapUsedBytes": 298326612,
"domNodes": -3482,
"jsHeapTotalBytes": 32759808,
"scriptDurationMs": 271.38800000000003,
"eventListeners": -661,
"totalBlockingTimeMs": 0,
"frameDurationMs": 37.94776951672863,
"p95FrameDurationMs": 83.19999999999891
},
{
"name": "vue-large-graph-idle",
"durationMs": 20980.589000000007,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 20390.945,
"heapDeltaBytes": -24901344,
"heapUsedBytes": 285760684,
"domNodes": -3482,
"jsHeapTotalBytes": 12042240,
"scriptDurationMs": 295.83600000000007,
"eventListeners": -661,
"totalBlockingTimeMs": 0,
"frameDurationMs": 36.999647887323945,
"p95FrameDurationMs": 66.80000000000291
},
{
"name": "vue-large-graph-pan",
"durationMs": 24710.85099999999,
"styleRecalcs": 179,
"styleRecalcDurationMs": 19.479000000000024,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 24431.717,
"heapDeltaBytes": -39777624,
"heapUsedBytes": 257874844,
"domNodes": -3482,
"jsHeapTotalBytes": 14671872,
"scriptDurationMs": 741.001,
"eventListeners": -659,
"totalBlockingTimeMs": 4,
"frameDurationMs": 48.62007874015748,
"p95FrameDurationMs": 100
},
{
"name": "vue-large-graph-pan",
"durationMs": 25325.04400000005,
"styleRecalcs": 180,
"styleRecalcDurationMs": 22.635000000000016,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 25012.858,
"heapDeltaBytes": -29587684,
"heapUsedBytes": 260327448,
"domNodes": -3482,
"jsHeapTotalBytes": 14925824,
"scriptDurationMs": 832.6260000000001,
"eventListeners": -659,
"totalBlockingTimeMs": 27,
"frameDurationMs": 47.241165413533835,
"p95FrameDurationMs": 99.90000000000146
},
{
"name": "vue-node-resize-workload",
"durationMs": 7509.920999999963,
"styleRecalcs": 20,
"styleRecalcDurationMs": 49.598000000000006,
"layouts": 20,
"layoutDurationMs": 22.818000000000005,
"taskDurationMs": 7391.044999999999,
"heapDeltaBytes": -31535640,
"heapUsedBytes": 272280164,
"domNodes": -3482,
"jsHeapTotalBytes": 23838720,
"scriptDurationMs": 105.14299999999999,
"eventListeners": -661,
"totalBlockingTimeMs": 0,
"frameDurationMs": 46.11288343558282,
"p95FrameDurationMs": 83.39999999999964
},
{
"name": "vue-node-resize-workload",
"durationMs": 7531.610999999998,
"styleRecalcs": 20,
"styleRecalcDurationMs": 62.49099999999999,
"layouts": 20,
"layoutDurationMs": 30.705999999999996,
"taskDurationMs": 7469.949999999999,
"heapDeltaBytes": -26104436,
"heapUsedBytes": 278033096,
"domNodes": -3482,
"jsHeapTotalBytes": 19390464,
"scriptDurationMs": 112.48399999999998,
"eventListeners": -661,
"totalBlockingTimeMs": 0,
"frameDurationMs": 45.654545454545456,
"p95FrameDurationMs": 100
},
{
"name": "vue-zoom-out-idle",
"durationMs": 10290.715000000035,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 9999.461000000001,
"heapDeltaBytes": -4308948,
"heapUsedBytes": 266333788,
"domNodes": 0,
"jsHeapTotalBytes": 17563648,
"scriptDurationMs": 132.776,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 37.39272727272727,
"p95FrameDurationMs": 66.79999999999927
},
{
"name": "vue-zoom-out-idle",
"durationMs": 10441.591000000017,
"styleRecalcs": 0,
"styleRecalcDurationMs": 0,
"layouts": 0,
"layoutDurationMs": 0,
"taskDurationMs": 10235.877999999999,
"heapDeltaBytes": -29570868,
"heapUsedBytes": 261890412,
"domNodes": 0,
"jsHeapTotalBytes": 0,
"scriptDurationMs": 136.75299999999996,
"eventListeners": 0,
"totalBlockingTimeMs": 0,
"frameDurationMs": 37.93781818181819,
"p95FrameDurationMs": 83.29999999999927
},
{
"name": "workflow-execution",
"durationMs": 103.08800000001384,
"styleRecalcs": 8,
"styleRecalcDurationMs": 8.271999999999998,
"layouts": 6,
"layoutDurationMs": 2.3890000000000002,
"taskDurationMs": 77.24000000000001,
"heapDeltaBytes": 5142160,
"heapUsedBytes": 68214208,
"domNodes": 107,
"jsHeapTotalBytes": 0,
"scriptDurationMs": 8.733,
"eventListeners": 7,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.683333333333394,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "workflow-execution",
"durationMs": 144.73900000007234,
"styleRecalcs": 10,
"styleRecalcDurationMs": 9.179,
"layouts": 10,
"layoutDurationMs": 3.6270000000000002,
"taskDurationMs": 82.303,
"heapDeltaBytes": 4885440,
"heapUsedBytes": 66434256,
"domNodes": 125,
"jsHeapTotalBytes": 0,
"scriptDurationMs": 6.244999999999999,
"eventListeners": 5,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.655555555555566,
"p95FrameDurationMs": 16.700000000000273
},
{
"name": "agent-composer-empty-conversation-typing",
"durationMs": 308.8830000000371,
"styleRecalcs": 5,
"styleRecalcDurationMs": 0.584,
"layouts": 76,
"layoutDurationMs": 11.645000000000001,
"taskDurationMs": 276.171,
"heapDeltaBytes": -5373756,
"heapUsedBytes": 37677556,
"domNodes": 4,
"jsHeapTotalBytes": 786432,
"scriptDurationMs": 123.22699999999999,
"eventListeners": 292,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.663157894736813,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "agent-composer-empty-conversation-typing",
"durationMs": 274.63299999999435,
"styleRecalcs": 5,
"styleRecalcDurationMs": 0.5820000000000001,
"layouts": 76,
"layoutDurationMs": 11.446,
"taskDurationMs": 233.132,
"heapDeltaBytes": 10483548,
"heapUsedBytes": 49797456,
"domNodes": 4,
"jsHeapTotalBytes": 524288,
"scriptDurationMs": 108.474,
"eventListeners": 292,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.668750000000017,
"p95FrameDurationMs": 16.800000000000182
},
{
"name": "agent-composer-long-conversation-typing",
"durationMs": 337.8099999999904,
"styleRecalcs": 5,
"styleRecalcDurationMs": 1.5130000000000001,
"layouts": 76,
"layoutDurationMs": 11.717,
"taskDurationMs": 308.50500000000005,
"heapDeltaBytes": -1588184,
"heapUsedBytes": 94164752,
"domNodes": 4,
"jsHeapTotalBytes": 262144,
"scriptDurationMs": 115.547,
"eventListeners": 292,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.666666666666668,
"p95FrameDurationMs": 16.700000000000728
},
{
"name": "agent-composer-long-conversation-typing",
"durationMs": 379.09000000001924,
"styleRecalcs": 5,
"styleRecalcDurationMs": 1.753,
"layouts": 76,
"layoutDurationMs": 12.161,
"taskDurationMs": 346.95799999999997,
"heapDeltaBytes": -1212544,
"heapUsedBytes": 93973012,
"domNodes": 4,
"jsHeapTotalBytes": 0,
"scriptDurationMs": 135.17800000000003,
"eventListeners": 292,
"totalBlockingTimeMs": 0,
"frameDurationMs": 16.665217391304356,
"p95FrameDurationMs": 16.800000000000182
}
]
}🔬 E2E Coverage: 🟡 59.3% of linesCoverage totals
Top 10 files by uncovered lines
🎭 Playwright: ✅ 3221 passed, 0 failed📊 Browser Reports
🎨 Storybook: ✅ Built — View Storybook🧩 Custom Nodes Ecosystem Matrix: 🟡 Withheld — could not measure
Findings and check detailsExecutes the frontend JS of every registry pack that ships any, against this change, in both renderers. The eight The 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. Full docs: scripts/registry-census/README.md 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
🌾 Fallow: ✅ PassedFindings and check detailsFallow 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. No new findings in the changed files. Full docs: ADR-DEVEX-LINT-0015 Reproduce locally# the base the gate compared against
npx fallow audit --root . --quiet --format json \
--changed-since 7552848966adfbaf7b3de74778512eef4b7801f4
🏛️ Architecture: ✅ PassedFindings and check detailsWarnings (352)
Full docs: Frontend domain catalog Reproduce locallypnpm architecture:check |
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## cloud/1.60 #22806 +/- ##
=============================================
Coverage ? 87.48%
=============================================
Files ? 2883
Lines ? 159215
Branches ? 40623
=============================================
Hits ? 139291
Misses ? 19159
Partials ? 765
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
christian-byrne
left a comment
There was a problem hiding this comment.
Backport review at e1f474b: same as the core/1.60 carrier. Exact-head checks all green, target-branch merge guard passed, no unresolved threads. Merging under the program's release-backport grant.
…) with its CNV06 fix (#22792) (#22865) Backport of workflow chat-follow (#21791 + #21512) to `core/1.58`, **together with the FRONT-3804 fix (#22792)** for the regression chat-follow introduced (agent edits to a background tab only appeared after a reload, frontend 1.60 QA check CNV06). Shipping one without the other would put that regression on the stable line, so this PR carries the whole chain. Decision (2026-11-05): take option 2 from the earlier draft, the full stack, because ComfyUI now pins 1.58.5, so `core/1.58` is the line Core and Desktop users get, and the release owner asked for the backport. The stack turned out smaller than estimated: #21686 is not needed (see below). ## Why `core/1.58` and not the lines the original ask named The ask was "backport chat-follow to 1.58/1.59 so cloud and desktop users get it". Measured against branch ancestry and the live distribution surfaces on 2026-11-03: | Surface | What serves it | Chat-follow (#21791 + #21512) | |---|---|---| | Cloud production | `cloud/1.59` (`frontend-version.json` `releaseBranch`, rotated 2026-10-31); serves commit `072c3c1140` | **already present**, but that commit predates the CNV06 fix (#22813) | | Cloud testcloud | `cloud/1.60` (`testcloudBranch`, rotated 2026-11-03) | **already present** | | Core / Desktop pin | `core/1.58`: `ComfyUI` master pins `comfyui-frontend-package==1.58.5` since Comfy-Org/ComfyUI#17442 merged 2026-11-04 | absent before this PR | | `core/1.59`, `core/1.60` | tagged `v1.59.0` / `v1.60.0` on GitHub; PyPI has only `.dev` builds of these lines, and ComfyUI does not pin them | already present | So **cloud users already have chat-follow**; the gap is Core/Desktop only. `core/1.58` is the line chosen here because it is the newest stable package line and the one the open `ComfyUI` pin bump targets. Retired lines were excluded on the release owner's own stated grounds: `thedatalife` closed #21922/#21923 with "the 1.56 release line is finished and won't get another patch" and #21921 with "cloud.comfy.org now serves cloud/1.58, so cloud/1.57 won't be redeployed" — by the same rule `cloud/1.58` is now superseded by `cloud/1.59`. ## What is carried, in dependency order All four are `cherry-pick -x` from `main`, original authorship preserved. 1. **#20827** — `fix(agent): load every page of Chat history` (41 files, +1197/−434). Required: `core/1.58` forked from `main` on 2026-10-19 and lacks `useAgentChatHistoryRefresh`, `agentThreadList` and the paged `/api/agent/threads?*` client that #21512 modifies. Three conflicts, all incidental: two spec files took the landed `core/1.59` content for the files whose only 1.58→1.59 delta is this PR, and one import union in `agentRestClient.test.ts` aligned to the `@/workbench/...` form 1.59 uses. 2. **#21147** — `fix(agent-crdt): bind the session to the workflow a reload restored (FE-1969)` (9 files, +688/−36). Required: #21512 calls `onWorkflowRestoredAndBound`, and `hasUnsyncedHumanOps` is the guard the follow bind reuses. One conflict, a declaration-order union in `useAgentWorkflowSelection.ts` resolved to the order `core/1.59` landed. 3. **#21791** — `refactor(workflow): report user-initiated tab activations` (17 files, +473/−84, byte-identical stat to `main`). One conflict: `openWorkflow`'s options object, where 1.58 has `keepSavedBaseline` and this PR adds `initiator`. Both kept. 4. **#21512** — `feat(agent): carry workflow chat follow onto current main` (49 files). Seven conflicts; each resolution is stated below. ### #21512 conflict resolutions - `agentConversationStore.ts` (5) — 1.58 carries the snapshot-turn work (`unreconciledSnapshotTurns`, `snapshotTurnSettled`, `publishSnapshotMessage`) that `main` has since renamed. Declarations and the exported surface are unions in `core/1.59`'s order; `replacedSlot` is adopted alongside `unreconciledSnapshotTurns.clear()`; and the transport publish callback **keeps 1.58's `publishSnapshotMessage`**, which does `replaceActive` *plus* announcing a reconcilable snapshot turn, rather than narrowing to `publishMessage`. - `useAgentSession.ts` (1) — took #21512's `openThread`/`outlivedItsNavigation` rewrite with `boundWorkflowId.value = null; rememberedWorkflowId = null` replaced by 1.58's `forgetBinding()` helper (from #22518/#22697). The result is byte-identical to `core/1.59`'s `loadThread`. - `AgentPanelRoot.vue` (2) — import superset, and the `custom-title` fallback through `historyGroups.current`. - `RunNoticeBanner.vue` (2) — **narrow adaptation.** Added the `followFailed` context and the `liveness`/`contextAction` computeds, but **not** `genericNoticeReady` or the `visible` computed: those belong to a different PR that is not on this train, and 1.58's template already gates on `context || !dismissed`. Nothing chat-follow needs is dropped. - `AgentPanel.ts` fixture (2) — added only `historyButton`; `loadFailedMessage`/`loadRetryButton` appeared in the conflict as context from a PR not on this train and are unused here, so they are not introduced. `userMessageBubbles` **was** added (same reason, but the carried specs do use it). - `agentConversationFixture.ts` (1) — took the canvas-relative `canvasOps.click`; `comfyPage.canvas` and `comfyPage.canvasOps` both exist on this train. - `AgentPanelRoot.tabActivity.test.ts` — **path adaptation only.** 1.58 predates the billing module move: `@/platform/billing/composables/useBillingCapabilities` → `@/platform/workspace/composables/useBillingCapabilities`, `@/platform/billing/composables/useBillingContext` → `@/composables/billing/useBillingContext`, `@/platform/billing/subscription/composables/useAccountPreconditionDialog` → `@/platform/cloud/subscription/composables/useAccountPreconditionDialog`. Same three modules `AgentPanelRoot.vue` already imports on this branch. - Seven assertions in `AgentPanelRoot.test.ts` and `useAgentWorkflowSelection.test.ts` were updated to the behaviour the carried commits define, matching `core/1.59` exactly: four `expect(await restoration).toBe(true)` sites became `WorkflowRestoration`-shaped (#21147 changed that return type), and three chat-title tests now expect the server-assigned title (`'build a duck'`, `'my masterpiece'`) rather than `agent.newChatTitle`, which is #21512's own PM-2098 change. These are #21512's and #21147's own test updates; they failed to apply because the surrounding file differs on this train. ### Added on 2026-11-05: the FRONT-3804 chain 5. **#21497** `test: pin agent wire identity across a /ws reconnect` (test harness only). One conflict in `agentFollowerHostSocket.ts`: took #21497's per-connection `sid` and doc comment; 1.58 already had the `comfyConnections` counter from its PM-2123 backport. 6. **#21964** `test(agent): prove a document reset keeps other workflows' mint cursors` (test harness only). Applied clean. 7. **#22596** `fix(agent-crdt): track unconfirmed bind targets as unsynced (FRONT-3581)`. Three conflicts, all from `retrySubscription` and the dynamic-combo test scenario, neither on this train: added only `noteUnboundLocalIntent` to the follower surface; kept 1.58's `workflowByUnsettledOpId` settle bookkeeping and renamed `workflowsWithLostOps` to `workflowsWithUnsyncedOps` as #22596 does; in `docOpMinter.test.ts` added only the `unboundLocalIntents` counter. The new tests do not use the dynamic-combo scenario, so **#21686 is not carried**. 8. **#22792** `fix(agent): bind the workflow a followed chat opens (FRONT-3804)`. One conflict (`retrySubscription` again, dropped). `AgentPanelRoot.vue`, `docOpMinter.ts`, the fixture and the new spec applied clean. 9. `test(agent): import the workflow schema from its core/1.58 path`: the new fixture imported `@comfyorg/graph-model/workflowSchema`, a package 1.58 predates; it now uses `@/platform/workflow/validation/schemas/workflowSchema` like the other 1.58 fixtures. 10. **Rebased 2026-11-05 onto `core/1.58` after #22943** (empty composer on New Chat / draft across refresh). Two conflicts, both resolved to `main`'s and `core/1.59`'s shape: `onNewChat` keeps `retireFollow()` first and then the `history_back` branch, and `agentComposerStore.test.ts` keeps both the "draft presence" and "draft persistence" blocks in `main`'s order. One follow-up commit drops a duplicate `hasDraft` key in the composer store's returned object (both PRs added it; `main` has one). ## Verification - Before the rebase, at `928aaa2bc7`: `pnpm typecheck` and `pnpm typecheck:browser` pass (Node 26). - Vitest, 701 tests in 7 files, all pass: `AgentPanelRoot`, `docOpMinter`, `unsyncedHumanOps`, `followerProductGate`, `crossWorkflowPending`, `agentFollowerHostSocket`, `useAgentWorkflowChatFollow`. - The earlier four commits' 1945-test focused run (27 files) passed at `c10dbfe073`, before the chain was added. - Black-box: `browser_tests/tests/agent/agentBackgroundTabEditsLand.spec.ts` (CNV06 step 5) plus the chat-follow specs `agentTabActivationFollowsChat` and `agentTabChatTransitions` run in this PR's `@cloud` e2e shards. On `main` the CNV06 spec was red at the regressing commit 1a6324c and green with #22792 (see #22792). ## Delivery - **Core / Desktop:** the 1.58.6 release PR (#22908) is open on `core/1.58`. This PR merges first so 1.58.6 carries it; Core and Desktop get it when ComfyUI's pin moves to 1.58.6. - **Cloud:** chat-follow is already on `cloud/1.59` and `cloud/1.60`. The CNV06 fix is merged on both (#22813, #22806) but cloud production still serves `072c3c1140`, which predates it. The open production canary (Comfy-Org/cloud#17917) starts from a `cloud/1.59` tip that includes #22813. Testcloud builds `cloud/1.60` on every push, so it already carries #22806. Known limit, unchanged by this PR: an edit made by hand while a tab is not bound keeps that tab's follow bind refused until a reload plus a turn (the #22596 marker lifecycle). The owner decision is recorded on #22792; the in-session recovery design is #22801. --------- Co-authored-by: Ryan Di <ryan.weihao.di@gmail.com> Co-authored-by: christian-byrne <chrbyrne96@gmail.com> Co-authored-by: GitHub Action <action@github.com> Co-authored-by: Alexander Brown <drjkl@comfy.org> Co-authored-by: mrseek-reviews[bot] <337131926+mrseek-reviews[bot]@users.noreply.github.com>
Backport of #22792 to
cloud/1.60. Fixes FRONT-3804: agent edits to a workflow whose tab is in the background did not appear until a reload.cloud/1.60contains the regressing commit 1a6324c (feat(agent): carry workflow chat follow onto current main #21512), and itsAgentPanelRoot.vuestill passes the unbindingadoptWorkflowTargetto the chat follow.onUnboundLocalIntent/noteUnboundLocalIntentwiring, which is not on this train. Carrying only the bind would reopen the reviewed hole on fix(agent): bind the workflow a followed chat opens (FRONT-3804) #22792 (a follow binding over a visible-tab edit the document never saw).agentBackgroundTabEditsLand,agentFollowerRestoredBindingReloadandagentHumanEditAfterOtherWorkflowResetpass 6/6 locally on thecore/1.60carrier (--project=cloud). The agent code andbrowser_tests/are identical oncore/1.60andcloud/1.60.Full context for agent readers
cherry-pick -xfrommain:core/1.60andcloud/1.60.cloud/1.59bot comment flagged a possible stacking conflict on [backport cloud/1.59] ci: merge backports only when approved at the current head #22608. [backport cloud/1.59] ci: merge backports only when approved at the current head #22608 only touches.github/workflows/backport-auto-merge.yamland its test, so it is unrelated; the real cause was the missing fix(agent-crdt): track unconfirmed bind targets as unsynced (FRONT-3581) #22596.browser_tests/hunks from both sources are carried unchanged (agentFollowerRestoredBindingReload.spec.ts,agentBackgroundTabEditsLand.spec.ts,agentConversationFixture.ts,fixtures/data/agent/backgroundTabEdits.ts).core/1.60carrier:typecheckandtypecheck:browserpass. Vitest ondocOpMinter,AgentPanelRoot,followerProductGate,unsyncedHumanOpsanduseAgentCrdtFollowerpasses 888, plus 1 expected fail.Justification: Agent release backport of merged #22792 on a current train, merged by the program under its standing release-backport grant (program/release-backport-authority.md). Reviewed diff and conflict resolution against the source; all exact-head checks green; no unresolved threads. GitHub does not accept an author approval, so no approval record exists.