Skip to content

feat(react-textarea-autosize): add exact Octane binding - #544

Closed
jonkwheeler wants to merge 35 commits into
octanejs:mainfrom
jonkwheeler:jon/react-textarea-autosize-binding
Closed

jonkwheeler wants to merge 35 commits into
octanejs:mainfrom
jonkwheeler:jon/react-textarea-autosize-binding

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Octane applications can now replace [email protected] with an exact React-free binding while retaining the public component API, autosizing behavior, ref lifecycle, form resets, SSR, and hydration. The port keeps the upstream measurement algorithm structurally aligned and adapts React's synthetic per-edit onChange contract onto Octane's native input boundary without losing callback ordering or propagation semantics.

The binding ships through the package catalog, playground, website, CLI, and MCP compatibility map. Its provenance verifier pins the published package and tagged source tree, and the global parity contract inventories pristine React tests, adapted and differential tests, type contracts, SSR, real-browser evidence, and a packed consumer.

Validation

  • targeted formatting check: changed binding and MCP test files
  • targeted typechecks: pristine React declarations and adapted tsrx-tsc
  • targeted tests: 65 unit, differential, SSR, and MCP tests
  • pristine upstream Jest: 2 tests and 2 snapshots
  • real-browser parity: Chromium and Firefox
  • packed consumer: 13 intended files and strict tsrx-tsc
  • global React parity audit

Risk / follow-ups

The public callback name remains onChange, but its event is the native InputEvent used by Octane rather than React's synthetic event object. The README and paired type contracts document and enforce that deliberate migration boundary.

Provenance

  • An agent produced this diff (agent-authored)

Note

Medium Risk
Touches DOM layout, controlled/uncontrolled input timing, and hydration adoption; risk is mitigated by broad browser/oracle tests but event-object differences can surprise migrators.

Overview
Adds @octanejs/textarea-autosize as a drop-in for [email protected], covering autosizing, row clamps, measurement cache, height callbacks, refs, form reset, SSR, and hydration. Public onChange keeps React’s name and ordering but delivers a native InputEvent (documented divergence); programmatic value changes do not fire that callback.

Wires the binding into generated binding/package inventories, CLI catalog and octane-data, MCP KNOWN_BINDINGS, root bindings:typecheck, and changesets (binding + fail-closed parity audit controls). Refreshes lockfile SHA entries across parity manifests and eval datasets; .gitignore now allows vendored upstream/dist for type probes.

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

@vercel

vercel Bot commented Aug 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
octane-website Ready Ready Preview Aug 3, 2026 3:25pm
octane-website-mcp Ready Ready Preview Aug 3, 2026 3:25pm

Request Review

@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent feat PR: new feature or capability labels Aug 3, 2026
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 14:50 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 14:50 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 14:54 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 14:54 Inactive
Comment thread packages/textarea-autosize/src/hooks.ts Resolved
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 15:24 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 15:25 Inactive
@jonkwheeler
jonkwheeler marked this pull request as ready for review August 3, 2026 16:27
@jonkwheeler
jonkwheeler marked this pull request as draft August 3, 2026 17:03
jonkwheeler and others added 4 commits August 7, 2026 15:26
Resolve inventory, eval manifest, hook-form parity lockfile, and root
package scripts while keeping react-textarea-autosize coverage.

Co-authored-by: Cursor <[email protected]>
Regenerate lockfile hashes and inventory for react-textarea-autosize.

Co-authored-by: Cursor <[email protected]>
Resolve inventory, eval manifest, hook-form parity lockfile, and root
package scripts while keeping react-textarea-autosize coverage.

Co-authored-by: Cursor <[email protected]>
Regenerate lockfile hashes and inventory for react-textarea-autosize.

Co-authored-by: Cursor <[email protected]>
Resolve inventory, eval manifest, hook-form parity lockfile, and root
package scripts while keeping react-textarea-autosize coverage.
Regenerate lockfile hashes and inventory for react-textarea-autosize.
Resolve inventory and root scripts while keeping react-textarea-autosize coverage.
Regenerate lockfile hashes and Vitest evidence for react-textarea-autosize.
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

Addressing unresolved leonidaz threads (crosswalk assertion integrity + paired type program membership) and renaming @octanejs/react-textarea-autosize → @octanejs/textarea-autosize before re-signaling readiness.

jonkwheeler and others added 2 commits August 10, 2026 11:28
Restore merge currency before verifier fixes and package rename.
Integrity-lock adapted crosswalk assertions with a weakening negative
control, require inventoried type probes to belong to both compiler
programs, rename the Octane binding to @octanejs/textarea-autosize, and
merge origin/main for currency.

Co-authored-by: Cursor <[email protected]>
Comment thread .gitignore Resolved
Un-ignore the vendored upstream dist oracle under packages/textarea-autosize
so the pristine type lane can still resolve declaration evidence.

Co-authored-by: Cursor <[email protected]>
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Addressed both unresolved leonidaz threads (adapted assertion integrity lock + compiler program membership for type probes), renamed @octanejs/react-textarea-autosize → @octanejs/textarea-autosize, fixed the post-rename .gitignore oracle path, and merged origin/main. Cursor Bugbot is clean on the current head; draft remains.

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

Merging latest origin/main to resolve DIRTY merge state before re-checking readiness.

Resolve generated-file conflicts via pnpm sync and keep textarea-autosize
in bindings:typecheck alongside monaco-editor from main.

Co-authored-by: Cursor <[email protected]>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.

Reviewed by Cursor Bugbot for commit 52f3bdd. Configure here.

Comment thread scripts/package-pack-canaries.test.mjs Resolved
Update the packed TSRX consumer test to assert @octanejs/textarea-autosize
after the package rename from @octanejs/react-textarea-autosize.

Co-authored-by: Cursor <[email protected]>
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Fixed in 7f6d3c2: updated package-pack-canaries.test.mjs to assert @octanejs/textarea-autosize matching renderPackedTsrxConsumerSource.

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Merged origin/main (monaco-editor + CommonJS conditions + parity execution group fix), regenerated sync artifacts, and fixed the stale pack-canary import assertion after the @octanejs/textarea-autosize rename. Cursor Bugbot is clean on the current head; merge state is CLEAN.

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

Merging latest origin/main; conflicts need resolution before re-checking readiness.

Resolve docs/packages.md and evals manifest conflicts via pnpm sync
after merging Version Packages (octanejs#682) and react-parity plan doc.

Co-authored-by: Cursor <[email protected]>
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Merged origin/main (Version Packages #682 + react-parity plan doc), resolved docs/packages.md and evals manifest conflicts via pnpm sync. Cursor Bugbot completed with no unresolved findings; merge state is CLEAN.

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

@leonidaz

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! This pull request was incorporated into main as commit b3537b49735a through consolidated PR #699.

@leonidaz leonidaz closed this Aug 12, 2026
kotarotaniguchi0523 pushed a commit to kotarotaniguchi0523/octane that referenced this pull request Aug 12, 2026
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 feat PR: new feature or capability READY FOR REVIEW REVIEW COMPLETE

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants