Skip to content

fix(octane): drop stale hydrate attribute probe from the scalar style fast path - #1283

Merged
trueadm merged 1 commit into
mainfrom
fix/scalar-style-probe-leftover
Sep 23, 2026
Merged

trueadm merged 1 commit into
mainfrom
fix/scalar-style-probe-leftover

Conversation

@trueadm

@trueadm trueadm commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

main is broken at 3249c9ad6. #1282 (merged 11:22) removed hydrateAttributeProbe along with the side-render Hydrate capture it served, and deleted the probe guard from nativePresentationBinding. #1270 was branched before that and added a copy of the same guard to its new scalar-literal fast path in nativeStyleBinding. Both PRs merged, so runtime.ts:1098 now references a name that no longer exists:

The fix deletes the guard, matching #1282's removal in the general path. The fast path now writes the scalar style directly, the same as the general path. The guard only existed in dev builds, so production output is unchanged.

Validation

No new test: #1270's existing style tests already fail without this fix and pass with it. No changeset: the affected code is unreleased and covered by #1270's signal-free-binding-writers changeset.

Provenance

  • An agent produced this diff (agent-authored)

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.


Note

Low Risk
Dev-only diagnostic removal that restores a build broken by a dangling reference; production behavior for scalar styles is unchanged.

Overview
Repairs a merge regression in Octane’s scalar style literal fast path in nativeStyleBinding: it removes a dev-only guard that threw PresentationAdoptionMiss when hydrateAttributeProbe pointed at a different document.

That probe was deleted in #1282 from the general presentation path, but #1270’s fast path still referenced it, breaking tsc and causing a runtime ReferenceError in development. Scalar literal styles now go straight to writeScalarNativeStyle, consistent with the general binding path after #1282.

Reviewed by Cursor Bugbot for commit e7186fe. Bugbot is set up for automated code reviews on this repo. Configure here.

… fast path

#1282 removed `hydrateAttributeProbe` along with the side-render capture it
served, deleting this exact guard from `nativePresentationBinding`. #1270,
branched earlier, copied that guard into its new scalar-literal fast path in
`nativeStyleBinding`. Both merged, leaving main referencing an undefined
name: `tsc` fails (TS2304), the octane build and every package pack fail,
and in dev the fast path throws `ReferenceError: hydrateAttributeProbe is not
defined` (#1270's own style-transaction and signal-binding tests fail).

Drop the guard to match #1282's removal in the general path.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@trueadm
trueadm marked this pull request as ready for review September 23, 2026 12:04
@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent fix PR: bug fix labels Sep 23, 2026
@trueadm
trueadm merged commit 7d4fc9f into main Sep 23, 2026
46 of 49 checks passed
@trueadm
trueadm deleted the fix/scalar-style-probe-leftover branch September 23, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-authored Diff or issue body substantially produced by an AI agent fix PR: bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant