Skip to content

feat(monaco-editor): add upstream parity harness and playground - #691

Closed
JesseKoldewijn wants to merge 3 commits into
octanejs:mainfrom
JesseKoldewijn:feat/monaco-editor-harness
Closed

JesseKoldewijn wants to merge 3 commits into
octanejs:mainfrom
JesseKoldewijn:feat/monaco-editor-harness

Conversation

@JesseKoldewijn

@JesseKoldewijn JesseKoldewijn commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Expand @octanejs/monaco-editor with an upstream/parity harness on top of the ownership-aware Editor/DiffEditor runtime from #441. Vendors @monaco-editor/[email protected] (eb120e66378471315620fe5339b73ba003f199ad), mirrors its module layout, and lands adapted/differential/SSR/hydration/browser/pristine lanes plus examples/monaco-playground. No package-specific react-parity CI job.

Validation

  • pnpm sync
  • pnpm react-parity:validate / pnpm react-parity:check
  • pnpm ci:workflow:test
  • targeted Vitest: monaco-editor, adapted, differential, ssr, browser, pristine (51)
  • examples/monaco-playground e2e (4)
  • pnpm format:check
  • pnpm typecheck
  • pnpm test — ran full suite locally

Risk / follow-ups

  • Documented divergences: container-ref, loading-octane-node; ownership-aware dispose is intentional vs upstream.
  • Vitest project additions refresh other packages’ audit/react-parity.json evidence hashes for vitest.config.js.
  • Draft until CI runs after ready_for_review.

Provenance

  • An agent produced this diff (agent-authored)

Note

Medium Risk
Touches editor lifecycle, model ownership/disposal, and hydration—areas where regressions affect real editing apps—but risk is mitigated by broad new test lanes and an example e2e suite rather than production auth or data paths.

Overview
@octanejs/monaco-editor gains a full upstream/parity evidence stack for @monaco-editor/[email protected]: vendored upstream/ source, audit/ manifests with parity:generate, adapted upstream shell tests, React/Octane differential lanes, pristine RTL specs, paired typetests, SSR/hydration suites, and a Chromium browser harness with real [email protected] workers.

The binding source is reorganized to mirror upstream (Loading, MonacoContainer, Editor, DiffEditor, hooks/useMonaco), replacing the flat Container + containerRef pattern with ref on the host div, WeakMap view state keyed by model identity, and documented ownership-aware model disposal (WeakSet/lease counts).

examples/monaco-playground is a new consumer app (controlled Editor, DiffEditor, theme/language toggles) with Playwright e2e. CI adds packages/monaco-editor/tests/browser to the Chromium shard and excludes it from the default Node shard; docs and status.json now claim verified hydration without mismatch warnings.

Reviewed by Cursor Bugbot for commit d1ca554. 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 feat PR: new feature or capability labels Aug 10, 2026
@JesseKoldewijn
JesseKoldewijn force-pushed the feat/monaco-editor-harness branch 2 times, most recently from 45d7e00 to 22ef7b1 Compare August 10, 2026 19:43
JesseKoldewijn and others added 2 commits August 10, 2026 21:50
Vendor @monaco-editor/[email protected], mirror its module layout on the existing
ownership-aware binding, and land adapted/differential/SSR/hydration/browser
lanes plus examples/monaco-playground without package-specific react-parity CI.

Co-authored-by: Cursor <[email protected]>
@JesseKoldewijn
JesseKoldewijn force-pushed the feat/monaco-editor-harness branch from 22ef7b1 to 08daba9 Compare August 10, 2026 19:50
@JesseKoldewijn

Copy link
Copy Markdown
Contributor Author

@cursor review

@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.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 08daba9. Configure here.

Align Editor, DiffEditor, Loading, and MonacoContainer declarations with
default-only runtime exports so named imports cannot typecheck and fail.

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

Copy link
Copy Markdown
Contributor Author

@cursor review

@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.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit d1ca554. Configure here.

@leonidaz

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! This pull request was incorporated into main as commit 6bfb7a1c80b7 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
@JesseKoldewijn
JesseKoldewijn deleted the feat/monaco-editor-harness branch September 10, 2026 14:57
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants