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
Thread VN through serializers/code-ref.ts and delete the no-VN branch
`codeRefAdjustments` carried a no-VN branch reachable from the
`deserializeAbsolute` path because the framework field-deserialize
machinery called it without opts. Now `deserializeAbsolute` accepts
the framework's store parameter and threads `store.virtualNetwork`
into `codeRefAdjustments`, so the no-VN branch in the inner
`resolve` helper is unreachable from any framework-driven path.
Tighten `codeRefAdjustments` to require `opts.virtualNetwork` and
drop the no-VN URL-join fallback. `serialize` also tightens its
opts.virtualNetwork to required; the early-out when opts is missing
preserves the public surface for direct callers that pass no opts.
`deserializeAbsolute` has an early-out when no store is supplied —
only direct test callers reach that path, and they get a passthrough.
The code-ref-test.ts unit test that exercised the `serialize` no-VN
path is updated to pass an empty `new VirtualNetwork()`; the assertion
is unchanged because the URL-form base+ref still resolves the same
way through VN.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
0 commit comments