Skip to content

fix: complete React DOM diagnostic parity - #754

Merged
domgan-oai merged 3 commits into
octanejs:mainfrom
openai-oss-forks:fix/744-complete-remaining-diagnostics
Aug 13, 2026
Merged

domgan-oai merged 3 commits into
octanejs:mainfrom
openai-oss-forks:fix/744-complete-remaining-diagnostics

Conversation

@domgan-oai

@domgan-oai domgan-oai commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Complete all five remaining diagnostics workstreams from issue React diagnostics backlog: warning-message parity (Float families + ARIA/CSS/partial audits) #744: unknown DOM properties, controlled-form and action conflicts, HTML nesting and hydration, native/custom listener variants, and client/server resource-hint arguments.
  • Preserve Octane's native-event, custom-element, and root-container contracts while adding development-only compiler/runtime diagnostics and fixing custom-event capture plus resource-hint edge cases.
  • Move 32 pinned React parity cases to covered, document the unsupported whole-Document root case, strengthen six existing resource cases, and regenerate the diagnostics inventory.

Closes #744

Validation

  • pnpm format:check (scoped changed-file formatting check run instead)
  • pnpm typecheck (core runtime and core type-test projects checked separately)
  • pnpm test (the complete development and production Vitest projects run directly)
  • pnpm --config.verify-deps-before-run=false sync
  • ./node_modules/.bin/vitest run --project octane --project octane-prod --silent=passed-only — 845 test files, 13,003 tests passed
  • ./node_modules/.bin/tsgo --noEmit -p packages/octane/tsconfig.json
  • ./node_modules/.bin/tsgo --noEmit -p packages/octane/typetests/tsconfig.json
  • node scripts/react-parity/check.mjs --validate-only
  • Optimized client/server bundles reject every new development-warning sentinel.

Risk / follow-ups

  • Development builds gain authoring diagnostics across supported host, form, resource, and nesting surfaces; existing fixtures now assert the newly expected warnings explicitly.
  • Production bundles tree-shake diagnostic helpers and full warning messages. Custom-event capture and valid null module-hint options also receive targeted production regressions.
  • React's whole-Document root singleton case remains an intentional non-goal because Octane accepts Element root containers only.

Provenance

  • An agent produced this diff (agent-authored)

Note

Medium Risk
Large surface area across compile, client, and SSR paths affects dev-only warnings and form/resource serialization, but production paths are guarded and extensive conformance tests back the ledger updates.

Overview
Closes the remaining issue #744 DOM diagnostic families with development-only warnings on client and SSR, while keeping Octane’s native-event and custom-element behavior and stripping helpers from production builds.

New shared modules (host-property-diagnostics, form-diagnostics, resource-hint-diagnostics) drive unknown props, boolean strings, empty URLs, controlled/default and function formAction conflicts, invalid preload/preinit/preconnect/prefetchDNS arguments, and richer HTML nesting/text rules. The compiler emits devHtmlNesting, ssrNestingText, and form diagnostic hooks; runtime.server validates props during serialization and replaces ad-hoc resource-hint messages with structured diagnostics.

Docs and the React conformance ledger mark ~32 cases covered (plus one whole-Document root as non_goal); parity inventory counts shift from planned to covered.

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

@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent fix PR: bug fix labels Aug 13, 2026
Comment thread packages/octane/src/runtime.ts Resolved
@domgan-oai
domgan-oai marked this pull request as ready for review August 13, 2026 22:21

@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 c1463d1. Configure here.

Comment thread packages/octane/src/runtime.ts Resolved
@domgan-oai
domgan-oai merged commit 0635af6 into octanejs:main Aug 13, 2026
27 checks passed
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.

React diagnostics backlog: warning-message parity (Float families + ARIA/CSS/partial audits)

1 participant