You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rebuild phone snapshots only for workspaces whose inputs changed - #42934
Every time the desktop republishes its session graph (a terminal title tick, a tab created or closed, a workspace switch), the window rebuilt the phone's view of every workspace's tabs, about 2,000 workspaces on a heavy machine, just to find out that only one had changed. Now it first checks which workspaces' inputs actually moved and rebuilds only those.
Files
Added
Deleted
Net
Test
0
0
0
0
Prod
8
$\color{#1a7f37}{\Huge{\mathbf{+}}}$363
$\color{#cf222e}{\Huge{\mathbf{−}}}$27
$\color{#1a7f37}{\Huge{\mathbf{+}}}$336
What Changed
buildMobileSessionTabSnapshots now runs a reuse gate before building a workspace's inputs (buildMobileSessionWorktreeInputs: owner resolution, narrowed maps, mounted-surface capture). A workspace keeps its cached phone snapshot when all of these hold:
no shared input changed: terminal theme, generated titles, ambiguous tab ids, or any owner-resolution field (a compile-time check keeps that list complete against the resolvers' state types);
no keyed write touched one of its tabs (terminalLayoutsByTabId, runtimePaneTitlesByTabId, nativeChatLaunchDraftByTabId, read through the store's existing keyed change provenance);
it shows no mounted terminal (live pane managers are always re-captured);
its own workspace-keyed source references are identical;
its paired-host tab mapping revision is unchanged.
A write without keyed provenance, or any shared change, falls back to the previous full path. The old canReuseMobileSessionSnapshot check still runs for every workspace that is rebuilt.
The active workspace, active tab, global active file and tab type, browser pages and editor drafts dirty only the workspaces they can reach.
Paired-host tab mappings (web-session-tabs-sync) get a per-workspace change revision. Re-applying an identical host frame keeps the revision, so mirrored workspaces stay on the fast path. The revision map resets once it tracks 4,096 workspaces.
The ambiguous-tab-id set and the per-workspace tab index are cached by tabsByWorktree identity instead of rebuilt on every publication.
Why
The Nov 15 live-lag report (FIX 1) measured graph publication as the leading duplicated work, and found the phone snapshot reuse check sitting after per-workspace input construction. After #42104, status no longer drives graph sync. That left title ticks, tab create/close and workspace switch, and every one of those submissions still paid O(all workspaces) input construction. This PR is the smallest safe slice of FIX 1. Skipping unchanged terminal graphs and decoupling the orchestration projection from graph replies change the main/renderer contract, so they follow separately (see Notes).
Not done: raising the 16 ms coalescing delay.
Linked Issue
Internal perf report (live lag, Nov 15), FIX 1. Stacked on #42104.
Visual Proof
N/A. No UI change: phones and paired clients see the same session tabs (fact parity below).
Testing
Benchmark: fleet adapter (frozen harness; probe binding adds an opt-in graph-publication probe). M4Air via qa-gate. A = #42104 + main (4f3c2a3bebb); B = this change on the same base (dc66d1acab4). This head differs only by lint-only moves, removal of an unused setter, and the merge of #42104's latest commits.
What remains after #42104 (A, 1,000 workspaces, 10 events each; 2,000 is the same shape):
Event
Graph submissions
Same terminal topology
Complete no-ops
Changed phone workspaces / submission
Status ping, chat stream, parked output, CI poll, ports, heartbeat
0
n/a
n/a
n/a
Background terminal title
11
11
0
1
Workspace switch
11
11
11
0
Create tab
11
11
0
1
Close tab
11
11
0
1
Work per publication (deterministic op counts, instrumented):
Workspaces
Event
buildMobileSessionWorktreeInputs calls A → B
buildMobileSessionTabSnapshots ms A → B
1,000
title
1,000 → 1
19.4 → 3.8
1,000
create tab
1,000 → 1
18.3 → 3.6
1,000
close tab
1,000 → 1
21.9 → 1.8
1,000
workspace switch
1,000 → 2
17.2 → 2.1
2,000
title
2,000 → 1
35.7 → 8.3
2,000
create tab
2,000 → 1
37.5 → 9.6
2,000
close tab
2,000 → 1
41.3 → 6.1
2,000
workspace switch
2,000 → 2
29.0 → 3.8
Real-clock renderer CPU per event (median of process medians; [range of 3 process medians]; 10 warm trials each):
Workspaces
Event
Renderer A → B ms
Main A → B ms
1,000
title
986 [792–994] → 762 [726–865]
759 → 846 (noise)
1,000
workspace switch
852 [851–885] → 795 [794–836]
43 → 36
1,000
create tab
918 → 919 (inconclusive)
804 → 698 (noise)
1,000
close tab
1,022 [1,012–1,042] → 881 [619–895]
887 → 956 (noise)
1,000
status ping / chat / parked output / idle
unchanged (no graph work)
unchanged
2,000
title
1,482 [1,445–1,633] → 1,475 [1,360–1,493]
3,200 → 3,172
2,000
workspace switch
1,345 [1,197–1,362] → 1,369 [1,347–1,440]
58 → 63
2,000
create tab
1,597 [1,579–1,627] → 1,646 [1,510–1,670]
3,087 → 3,327
2,000
close tab
1,964 [1,820–2,092] → 2,065 [1,929–2,423]
3,200 → 3,637
2,000
status ping / chat / parked output / idle
no graph work in either arm
unchanged
At these sizes, per-event CPU for tab and title events is dominated by session persistence. Each event writes an ~8.8 MB session:patch at 1,000 workspaces, and main spends ~3.2 s per event at 2,000 (the report's FIX 4). The graph savings are a minority of each event: at 1,000 only workspace switch clears the run-to-run range cleanly, and at 2,000 nothing clears it. The 2,000 timing cases also ran while the M4Air had no free memory because of other jobs. This PR changes no main-process code, so the main-CPU deltas are noise.
Passive window (30 s of mixed background agent traffic, about 10 title or output writes per second plus status and chat updates; no input, no profiler; heartbeat lateness as event-loop delay):
Workspaces
Arm
Renderer long tasks >50 ms (count / total)
Renderer loop p95 / max
Main loop p95 / max
1,000
A (2 runs)
118 / 25.8 s; 104 / 25.5 s
218 / 337; 260 / 529 ms
1.3 / 67; 1.5 / 117 ms
1,000
B (2 runs)
115 / 25.7 s; 111 / 26.0 s
231 / 541; 245 / 491 ms
1.5 / 79; 1.8 / 76 ms
2,000
A (2 runs)
62 / 26.0 s; 48 / 25.9 s
426 / 666; 518 / 1,436 ms
1.7 / 115; 2.7 / 175 ms
2,000
B (2 runs)
63 / 25.6 s; 40 / 23.6 s
421 / 587; 505 / 1,246 ms
1.7 / 137; 3.6 / 408 ms
This load saturates the test renderer in both arms; it is dominated by dashboard, Activity and persistence work this PR does not touch. No responsiveness change is claimed from it.
Correctness:
Fact parity, fake clock: 384 digests per size (8 event types × 3 trials, at 1,000 and at 2,000) are equal between A and B. They include main's phone-facing session.tabs, terminal.list, worktree.ps, titles, layout, leaves and status. The corpus covers git and folder workspaces on local and two paired hosts.
Existing suites: src/renderer/src/runtime/sync-runtime-graph, src/renderer/src/runtime/web-session-tabs-sync and editor-cross-workspace-placement pass.
Real-app QA on Windows (dev build of this head, through qa-gate): 8 of 8 flows PASS, comparing the phone projection (session.tabs.list) with the desktop after each step. Flows: title change, split then close a pane, tab create/close in another workspace, active tab and workspace switch, sleep and reopen, folder workspace (terminal + editor + retitle), renderer reload/resync, and long-running commands. The QA lead added one more check: retitling terminals in background workspaces with no mounted pane, the case the gate actually skips. It also passed. No console errors.
No new tests. A test that fails when this change is reverted would have to count work, which the repo's test rules exclude. The behavior (the same snapshots) is covered by the existing suites and the parity run above.
Risk
The risky part is the gate missing an input, which would leave a stale phone snapshot: a phone or web client showing an old title, tab list or active tab until something else dirties that workspace. Two things guard against it:
a compile-time completeness check on the owner-resolution fields;
every write without keyed provenance falls back to the full path.
Desktop UI, saved data and the wire format are unchanged. Back out with a plain revert.
Level: Medium
Review
Two review passes, each with a fresh Claude Opus (medium) and a fresh Codex gpt-6.1-sol (high) reviewer: no correctness findings. The second Opus pass pointed out that re-applying identical host frames bumped the mapping revision. That is fixed here: replaceHostSessionTabIdMappings marks a workspace only when its mapping changed. Both pass-2 reviewers then verified the fix and found nothing. A perf screen found that the per-workspace revision map was unbounded; it is now capped at 4,096 entries and resets past that.
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
Remaining FIX 1 work, as follow-ups:
Decouple the orchestration projection from graph acknowledgements. Main still runs agentOrchestrationProjection.buildByPaneKey() on every reply (the live report measured it at 1.46 s inclusive in 27 s, with 290 rows per reply). The plan:
Publish it from the existing projection invalidation machinery: orchestration_projection_dirty keys, DispatchPresentationDeadlines for expiry, status evidence and pane membership changes.
Omit an unchanged map from the reply.
Change graph-publication.ts's result?.agentOrchestrationByPaneKey ?? {} so that an absent map means unchanged, while an explicit {} still clears, and hydration, resync and generation fencing stay as they are.
The fleet corpus has no dispatches, so this needs a corpus extension to measure.
Skip unchanged terminal graphs. Every remaining submission above repeats the previous topology, and workspace switches are complete no-ops. Main reconciles each in about 7–15 ms at 1,000. The plan:
The renderer sends an unchanged-topology marker, with only the changed phone snapshots and sender facts, or nothing at all.
Main skips reconciliation.
The first publication, a new renderer generation, resync and reload still send a full graph.
This depends on (1), because the graph reply is currently the only path that refreshes orchestration and launch-draft resolutions.
Gate the parked-tab loop in syncRuntimeGraph. It still walks every saved tab on each publication; gate it the same way.
Cross-platform: renderer-only TypeScript with no platform, path or shell code. Remote: paired-host workspaces are covered by the mapping revision and by the parity corpus (two paired hosts). Folder workspaces: covered by owner-field invalidation and the parity corpus. Mobile: the phone projection is the subject of this change, and parity holds.
Checklist
This PR is small and focused
I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
I stated the risk: what could break, for whom, and how to back it out
Before/after screenshots or videos attached for UI changes, or N/A with reason
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)
…ion out of the window graph
Main's async graph publication grew session-window-graph past the 300-line limit; the binding predicate now has one owner beside its capture path.
… instead
Keeps the capture path's lookup behind its UUID and changed-worktree guards; the window graph stays under the line limit by moving the PTY remount check to the graph promotion base.
…ded graph sync
An inactive sender now asks for a graph sync on each status change (base got this
retry from agentStatusEpoch in the sync key), and a superseded ack parks the sender
until the next accepted graph instead of stopping it.
…web clients
The web stub answers every batch with superseded; with superseded now re-arming
on each accepted graph, a web sender would resend snapshots and request graph
syncs for nothing.
Every runtime graph publication built per-workspace phone snapshot inputs
(owner resolution, narrowed maps, mounted-surface capture) for every retained
workspace before asking whether the cached snapshot could be reused. A gate
now runs first: a workspace reuses its snapshot without building inputs when
no shared input changed, no keyed write touched its tabs, it has no mounted
terminal, its own workspace-keyed sources are identical and its host tab
mapping revision is unchanged. Anything without keyed provenance falls back
to the previous full path. The ambiguous-tab-id set and the per-workspace tab
index are cached by their tabsByWorktree identity.
Phone session-tab snapshots are now rebuilt only for workspaces whose inputs changed, instead of all ~2,000 on every graph publication. Phones see the same tabs. This is the first slice of the live-lag report's FIX 1, building on the now-merged #42104.
Original review. Two passes, each with a fresh Claude Opus (medium) and a fresh Codex gpt-6.1-sol (high) reviewer: no correctness findings.
The second Opus pass noted that re-applying an identical host frame bumped the mapping revision. That is fixed (replaceHostSessionTabIdMappings), and both pass-2 reviewers then verified the fix. Both also covered the final removal of the setter that became unused.
The perf screen bounded the new per-workspace revision map: it resets past 4,096 entries.
QA (Windows high spec, dev build of 6476e545): 8 of 8 flows pass. After each step, the QA lead compared session.tabs.list (the phone projection) with the desktop. Flows: title change, split and close a pane, tab create/close in another workspace, active-tab and workspace switch, sleep and reopen, folder workspace, renderer reload/resync, and long-running commands. The lead added a check of background, unmounted workspaces, the case the gate actually skips: retitled terminals there showed up within 3 s. No console errors. Screenshots are cropped to the tab strip and sidebar, because the terminal prompts show a machine account path:
Fleet benchmark on the M4Air: buildMobileSessionWorktreeInputs per publication went 1,000 → 1 and 2,000 → 1, and snapshot build time went 17–41 → 2–10 ms.
Fake-clock fact parity, including main's phone session.tabs, is equal at both sizes.
Wall-clock gains mostly sit inside run-to-run noise, because session persistence dominates those events (FIX 4).
The follow-ups are in the PR body: decoupling the orchestration projection from graph replies, then skipping unchanged terminal graphs.
Main merge. Merged main once at 6d5af64e39ab7c75c4b5f9f371f1fb7aa7a70634. The merge initially retained sync-runtime-graph-status-suppression-title.test.ts, which main deleted in #42956; that file stays deleted. The resolved tree exactly matches main plus the original patch against the old #42104 base. The PR contains only its original eight files (+363/−27); no file differs from replaying that patch on main, and no #42104 changes remain. All 83 relative import paths in the eight files resolve.
Fresh merge review. One new Claude Opus medium reviewer and one new Codex gpt-6.1-sol high reviewer independently verified the merge at 8f2a6a6fcd3cd803f918bdbd7804c615c33e2453, including a perf screen: no findings. Prior Windows QA (8/8 plus the background-unmounted-workspace check) and the real-scale benchmark carry from 6476e545cbcdc28e25f938856c2f70d7e102042d: runtime behavior is unchanged by the merge, and the original PR's eight files are byte-identical to that head.
Merge validation. Omarchy remote-check / pnpm check:changed passed all 30 checks on this head against main 6d5af64e39ab7c75c4b5f9f371f1fb7aa7a70634, including typecheck, import boundaries and unit tests. No Linux shell exception was needed. The reviewed head is pushed, and the required CI watch completed successfully; GitHub reports the check rollup as SUCCESS.
Deferred minor finding (existing before this merge). The automated review identified a cache-recovery edge case: if a snapshot build throws after updating some workspace caches, then a later build returns to the previous global selection, an unmounted workspace may reuse the intermediate snapshot. Invalidating the publication baseline on a failed build would harden recovery. This is outside the requested merge-resolution scope, is unchanged from the already-reviewed original head, and is recorded here rather than expanding this PR. The bot thread is resolved as triaged/deferred, not as fixed.
No actionable comments were generated in the recent review.
Walkthrough
The change adds worktree-scoped revision tracking for host session-tab mappings and replaces workspace mappings in one operation. It adds identity-based caches for terminal-tab indexing and ambiguity scans, plus source snapshots and dirty-workspace detection for mobile session publication. Snapshot construction uses these checks to reuse cached workspace snapshots when the workspace is not dirty, has no mounted-surface captures, and its sources are unchanged.
Merge Risk: Low · up to 8f2a6
The change makes phone session-tab publication faster by rebuilding only the workspaces whose inputs changed. A remaining edge case could leave a phone tab selection stale if a snapshot build throws partway through. This is unlikely and recovers once that workspace's inputs change, so the merge risk is low; resetting the baseline when a build fails would close it.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "Rebuild phone snapshots only for workspaces whose inputs changed" matches the main change: buildMobileSessionTabSnapshots now reuses cached phone snapshots and rebuilds only the workspaces …
Description check
The description follows the repository template. It has ELI5, What Changed, Why, Testing, Risk, Review, Agent skill boundary, Notes, and Checklist sections, and each is filled in with specific detail.…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "Rebuild phone snapshots only for workspaces whose inputs changed" matches the main change: buildMobileSessionTabSnapshots now reuses cached phone snapshots and rebuilds only the workspaces whose inputs changed. It is specific and describes the primary change from the developer's perspective. It does not cover the supporting paired-host mapping revisions or the index caching, which is acceptable.
Full details: Description check
Explanation
The description follows the repository template. It has ELI5, What Changed, Why, Testing, Risk, Review, Agent skill boundary, Notes, and Checklist sections, and each is filled in with specific detail. Gaps: the Linked Issue section names an internal perf report with no issue number ('Fixes #' is left blank), the Risk level is set to Medium, and the AI Disclosure section is left empty. Testing gives benchmark and QA evidence but states no new tests were added, and the template's test-anti-pattern checkbox is not ticked. The description is mostly complete, so the check passes, but the Linked Issue gap should be addressed before merge.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
Every time the desktop republishes its session graph (a terminal title tick, a tab created or closed, a workspace switch), the window rebuilt the phone's view of every workspace's tabs, about 2,000 workspaces on a heavy machine, just to find out that only one had changed. Now it first checks which workspaces' inputs actually moved and rebuilds only those.
What Changed
buildMobileSessionTabSnapshotsnow runs a reuse gate before building a workspace's inputs (buildMobileSessionWorktreeInputs: owner resolution, narrowed maps, mounted-surface capture). A workspace keeps its cached phone snapshot when all of these hold:terminalLayoutsByTabId,runtimePaneTitlesByTabId,nativeChatLaunchDraftByTabId, read through the store's existing keyed change provenance);canReuseMobileSessionSnapshotcheck still runs for every workspace that is rebuilt.web-session-tabs-sync) get a per-workspace change revision. Re-applying an identical host frame keeps the revision, so mirrored workspaces stay on the fast path. The revision map resets once it tracks 4,096 workspaces.tabsByWorktreeidentity instead of rebuilt on every publication.Why
The Nov 15 live-lag report (FIX 1) measured graph publication as the leading duplicated work, and found the phone snapshot reuse check sitting after per-workspace input construction. After #42104, status no longer drives graph sync. That left title ticks, tab create/close and workspace switch, and every one of those submissions still paid O(all workspaces) input construction. This PR is the smallest safe slice of FIX 1. Skipping unchanged terminal graphs and decoupling the orchestration projection from graph replies change the main/renderer contract, so they follow separately (see Notes).
Not done: raising the 16 ms coalescing delay.
Linked Issue
Internal perf report (live lag, Nov 15), FIX 1. Stacked on #42104.
Visual Proof
N/A. No UI change: phones and paired clients see the same session tabs (fact parity below).
Testing
Benchmark: fleet adapter (frozen harness; probe binding adds an opt-in graph-publication probe). M4Air via qa-gate. A = #42104 + main (4f3c2a3bebb); B = this change on the same base (dc66d1acab4). This head differs only by lint-only moves, removal of an unused setter, and the merge of #42104's latest commits.
What remains after #42104 (A, 1,000 workspaces, 10 events each; 2,000 is the same shape):
Work per publication (deterministic op counts, instrumented):
buildMobileSessionWorktreeInputscalls A → BbuildMobileSessionTabSnapshotsms A → BReal-clock renderer CPU per event (median of process medians; [range of 3 process medians]; 10 warm trials each):
At these sizes, per-event CPU for tab and title events is dominated by session persistence. Each event writes an ~8.8 MB
session:patchat 1,000 workspaces, and main spends ~3.2 s per event at 2,000 (the report's FIX 4). The graph savings are a minority of each event: at 1,000 only workspace switch clears the run-to-run range cleanly, and at 2,000 nothing clears it. The 2,000 timing cases also ran while the M4Air had no free memory because of other jobs. This PR changes no main-process code, so the main-CPU deltas are noise.Passive window (30 s of mixed background agent traffic, about 10 title or output writes per second plus status and chat updates; no input, no profiler; heartbeat lateness as event-loop delay):
This load saturates the test renderer in both arms; it is dominated by dashboard, Activity and persistence work this PR does not touch. No responsiveness change is claimed from it.
Correctness:
session.tabs,terminal.list,worktree.ps, titles, layout, leaves and status. The corpus covers git and folder workspaces on local and two paired hosts.src/renderer/src/runtime/sync-runtime-graph,src/renderer/src/runtime/web-session-tabs-syncandeditor-cross-workspace-placementpass.pnpm check:changed(base Agent status changes stop republishing the whole session graph #42104 head) passed 30/30 on this head, run on Omarchy throughremote-check.session.tabs.list) with the desktop after each step. Flows: title change, split then close a pane, tab create/close in another workspace, active tab and workspace switch, sleep and reopen, folder workspace (terminal + editor + retitle), renderer reload/resync, and long-running commands. The QA lead added one more check: retitling terminals in background workspaces with no mounted pane, the case the gate actually skips. It also passed. No console errors.No new tests. A test that fails when this change is reverted would have to count work, which the repo's test rules exclude. The behavior (the same snapshots) is covered by the existing suites and the parity run above.
Risk
The risky part is the gate missing an input, which would leave a stale phone snapshot: a phone or web client showing an old title, tab list or active tab until something else dirties that workspace. Two things guard against it:
Desktop UI, saved data and the wire format are unchanged. Back out with a plain revert.
Level: Medium
Review
Two review passes, each with a fresh Claude Opus (medium) and a fresh Codex gpt-6.1-sol (high) reviewer: no correctness findings. The second Opus pass pointed out that re-applying identical host frames bumped the mapping revision. That is fixed here:
replaceHostSessionTabIdMappingsmarks a workspace only when its mapping changed. Both pass-2 reviewers then verified the fix and found nothing. A perf screen found that the per-workspace revision map was unbounded; it is now capped at 4,096 entries and resets past that.Agent skill upstream boundary
Notes
Remaining FIX 1 work, as follow-ups:
agentOrchestrationProjection.buildByPaneKey()on every reply (the live report measured it at 1.46 s inclusive in 27 s, with 290 rows per reply). The plan:orchestration_projection_dirtykeys,DispatchPresentationDeadlinesfor expiry, status evidence and pane membership changes.graph-publication.ts'sresult?.agentOrchestrationByPaneKey ?? {}so that an absent map means unchanged, while an explicit{}still clears, and hydration, resync and generation fencing stay as they are.syncRuntimeGraph. It still walks every saved tab on each publication; gate it the same way.Cross-platform: renderer-only TypeScript with no platform, path or shell code. Remote: paired-host workspaces are covered by the mapping revision and by the parity corpus (two paired hosts). Folder workspaces: covered by owner-field invalidation and the parity corpus. Mobile: the phone projection is the subject of this change, and parity holds.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)