Skip to content

fix: remove browser-translation DOM accommodations - #2065

Merged
trueadm merged 1 commit into
octanejs:mainfrom
openai-oss-forks:fix/remove-translation-workarounds
Oct 14, 2026
Merged

trueadm merged 1 commit into
octanejs:mainfrom
openai-oss-forks:fix/remove-translation-workarounds

Conversation

@domgan-oai

@domgan-oai domgan-oai commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes #2064. Restore Octane's owned DOM topology contract and remove the browser-translation accommodations introduced by #1909, #1915, and #1978. Translation tools that rewrite owned content must be disabled in the application's initial HTML with translate="no" and the Google notranslate meta tag.

  • Remove FONT-wrapper adoption, whitespace skipping, translated text preservation, and displaced-text repair. New compiled output retains its Text node and uses the regular two-argument writer.
  • Preserve sibling cursors, cached binding reads, cleanup and staged-write behavior, error-note infrastructure, and the historical setText(null, value, host) compiled-call ABI. Update policy documentation, error guidance, and normal-DOM regression coverage.

Validation

  • Current-head CI: all 27 jobs passed on e092ce89d, including full lint/typecheck, runtime/parity suites, browser/website/heavy integrations, examples, bundle checks, and provenance. Bugbot completed with no findings.

Local checks below distinguish what ran on this host from the completed CI checks.

  • pnpm format:check — scoped formatting used instead.
  • pnpm typecheck — changed runtime/compiler sources pass; the broader selected test-file check reports 25 diagnostics reproduced identically on the base.
  • pnpm test — owning suites used locally; full workspace validation is left to CI.
  • Targeted suites: 40 text/differential/hydration cases and 66 text/snapshot/staging cases pass across dev/prod. The scalar/structural/handoff run passed 1,054 of 1,062 cases; eight timeout/cleanup failures under concurrent load all passed in an isolated 20-case rerun. The stricter adoption assertions fail against the unchanged base as expected.
  • Error-code generation check and 17 error-code tooling tests.
  • Historical ABI mutation probe: deleting the compatibility path fails all four empty/nonempty dev/prod cases; restored code passes.
  • Independent complexity review: no unintended reversal of unrelated fixes or unjustified complexity found.
  • All repository sync generators and context-budget check; no generated changes. Scoped formatting and git diff --check.

perf-review: scan against 74f22dd7c found 0 candidates; independent source review found no actionable issue. The per-update text writers (runtime.ts:25789, dom-binding-program.ts:1547) and adoption validators (dom-bindings.ts:241) gain no allocations, fields, layout reads, listeners, scheduling changes, or runtime imports. Ordinary compiled fixture call sites remain 83; one bag4 becomes bag3; six text updates lose their host argument. Spread fixture calls remain 29, and representative server output is byte-identical.

Matched production fixture bundles, base → candidate (gzip bytes):

Fixture Base Candidate Delta
run-minimal.mjs hooks-state 21,210 20,917 -293
run-minimal.mjs hydrate-root 35,672 35,615 -57
Complete native-presentation client 24,503 24,415 -88

Both minimal reachability checks pass. Native-presentation used 7 samples × 5,000 updates, identical installed tooling, and a scratch copy of the existing runner with repository-relative compiler IDs to remove checkout-path effects. All work counters and final DOM values match; server bytes and compiled fixture output are identical. Reversed-order runs had variable timings, so this makes no speed claim. These are complete fixture bundles, not application-wide savings or browser latency evidence; CI's production call/DOM-mutation and bundle reports remain the authority.

Current-head paired CI benchmark and bundle report: all 64 work counters are unchanged, and all 20 timing results are within the runner's noise threshold. Every reported complete application raw/gzip total shrinks, including Oxc Threadline gzip -12 B and Pagecraft -89 B; the corresponding esbuild totals shrink by 51 B and 107 B.

Six compressed measurements grow:

Measurement Base → candidate Delta
TSRX weather app chunks, gzip 7,860 → 7,880 +20 B
TSRX bindings app chunks, Brotli 96,149 → 96,253 +104 B
Oxc Threadline complete JS, Brotli 42,946 → 42,984 +38 B
Oxc Pagecraft complete JS, Brotli 143,132 → 143,175 +43 B
JSX app chunks, gzip 2,860 → 2,861 +1 B
JSX shell-client app chunks, gzip 765 → 769 +4 B

These small compressed-size increases are an accepted tradeoff for removing unsupported DOM-repair behavior: complete application raw and gzip output decreases, work counters are unchanged, and the paired timing results show no statistically resolved change. The exact compression cause has not been isolated; no speedup or universal compressed-size reduction is claimed.

concise-code: source +36/-172 (runtime +30/-131, compiler +6/-41). No new shipped files, exports, options, or fields. Selective deletion preserves unrelated improvements that a wholesale revert would discard; the small historical-ABI fallback is required by the mutation-tested compatibility contract. New files are the changeset and renamed/adapted normal-DOM tests; the translation helper is deleted.

Local validation reused matching installed dependencies after a new frozen workspace install was stopped because the host had insufficient disk for a full install. The scoped Vitest configuration uses the repository's compiler, assertions, setup, and dev/prod projects.

Risk / follow-ups

Applications must ship the initial-HTML opt-outs before adopting this runtime change. Arbitrary external DOM rewriting is unsupported; opt-outs depend on each tool honoring them. Native browser translation behavior and browser latency have not been validated here.

Provenance

  • An agent produced this diff (agent-authored)

Originating Codex task; implementation host: com-79386.


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


Note

Medium Risk
Breaking behavioral change for pages that relied on Chrome Translate rewriting owned DOM before or after adoption; apps must add translation opt-outs in initial HTML or adoption/hydration will fail on mismatched topology.

Overview
Removes browser page-translation accommodations from DOM binding adoption, structural programs, and text updates. Framework-owned text and closed child lists must match server topology exactly—extra whitespace text nodes, <font> wrappers, and other external rewrites now fail adoption with errors #318, #321, or #286 instead of being tolerated or repaired.

Runtime and compiler paths drop translation-specific logic (resetOnlyChildHost, <font> acceptance, whitespace skipping, deferred translated-text writes). Text updates use the standard cached-Text + _$setText path while preserving the legacy setText(null, value, host) ABI for older compiled output.

Documentation and error notes now state that external DOM rewriting is unsupported and that apps should opt owned content out of translation in initial SSR (translate="no", Google notranslate meta). Tests shift from “keep translated DOM” scenarios to topology mismatch rejection and normal only-child text / hydration regressions; translation differential fixtures and helpers are removed.

Reviewed by Cursor Bugbot for commit e092ce8. 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 Oct 14, 2026
@domgan-oai
domgan-oai marked this pull request as ready for review October 14, 2026 20:59
@github-actions

Copy link
Copy Markdown
Contributor

Benchmark report

  • 🔴 bundle-size: 6 value(s) increased

Compares 74f22dd7c, the merge commit's first parent with 22818b8b1 on the same runner. Any increase in a js-framework work counter fails this check; byte changes are a report. Wall time is a report: base and head samples alternate in one browser, and an operation is called slower or faster only when the 95% confidence interval of its ratio excludes ±3%. Workflow run

js-framework: 1k/10k row operations

All 20 timed operations (20 without a verdict)
target operation base ms head ms head/base 95% CI
octane-tsrx run 6.200 6.142 +2.0% −14.2% … +10.4% ⚪ within noise
octane-tsrx replace 20.358 18.817 −4.6% −10.1% … +10.1% ⚪ within noise
octane-tsrx add 4.308 4.992 +7.4% −2.2% … +17.2% ⚪ within noise
octane-tsrx update 0.239 0.218 −2.5% −7.5% … +6.3% ⚪ within noise
octane-tsrx select 0.008 0.008 +3.0% −2.4% … +10.3% ⚪ within noise
octane-tsrx swap 0.033 0.035 +4.3% −6.0% … +9.3% ⚪ within noise
octane-tsrx remove 0.031 0.028 −3.1% −5.5% … +3.2% ⚪ within noise
octane-tsrx runlots 44.142 43.092 +3.9% −14.1% … +18.3% ⚪ within noise
octane-tsrx select_lots 0.007 0.007 +1.4% −1.8% … +5.9% ⚪ within noise
octane-tsrx clear 91.350 84.017 −3.8% −15.0% … +10.9% ⚪ within noise
octane-jsx run 7.292 6.667 −3.6% −10.7% … +8.6% ⚪ within noise
octane-jsx replace 18.933 19.000 −0.8% −7.4% … +20.8% ⚪ within noise
octane-jsx add 6.875 7.233 +17.2% −6.2% … +27.7% ⚪ within noise
octane-jsx update 0.596 0.640 +6.5% −5.9% … +15.9% ⚪ within noise
octane-jsx select 0.258 0.259 +0.2% −5.7% … +11.9% ⚪ within noise
octane-jsx swap 0.292 0.299 −1.5% −5.4% … +5.3% ⚪ within noise
octane-jsx remove 0.342 0.363 −0.3% −4.2% … +6.7% ⚪ within noise
octane-jsx runlots 54.733 57.850 +7.1% −6.8% … +15.9% ⚪ within noise
octane-jsx select_lots 4.367 4.683 +5.8% −11.9% … +28.4% ⚪ within noise
octane-jsx clear 94.258 86.308 −2.4% −12.8% … +11.4% ⚪ within noise

All 64 work counters are unchanged.

Application bundle size (bytes)

target metric base head Δ
octane-tsrx js_raw 87,524 87,307 −217 (−0.2%) 🟢
octane-tsrx js_gzip 29,179 29,120 −59 (−0.2%) 🟢
octane-tsrx js_brotli 26,064 26,045 −19 (−0.1%) 🟢
octane-tsrx app_raw 6,954 6,952 −2 (−0.0%) 🟢
octane-tsrx app_gzip 2,337 2,334 −3 (−0.1%) 🟢
octane-tsrx app_brotli 2,041 2,039 −2 (−0.1%) 🟢
octane-tsrx fw_raw 80,570 80,355 −215 (−0.3%) 🟢
octane-tsrx fw_gzip 26,842 26,786 −56 (−0.2%) 🟢
octane-tsrx fw_brotli 24,023 24,006 −17 (−0.1%) 🟢
octane-tsrx todo_js_raw 100,264 100,047 −217 (−0.2%) 🟢
octane-tsrx todo_js_gzip 33,786 33,722 −64 (−0.2%) 🟢
octane-tsrx todo_js_brotli 30,078 30,028 −50 (−0.2%) 🟢
octane-tsrx todo_app_raw 4,641 4,639 −2 (−0.0%) 🟢
octane-tsrx todo_app_gzip 2,237 2,235 −2 (−0.1%) 🟢
octane-tsrx todo_app_brotli 1,903 1,898 −5 (−0.3%) 🟢
octane-tsrx todo_fw_raw 95,623 95,408 −215 (−0.2%) 🟢
octane-tsrx todo_fw_gzip 31,549 31,487 −62 (−0.2%) 🟢
octane-tsrx todo_fw_brotli 28,175 28,130 −45 (−0.2%) 🟢
octane-tsrx chat_js_raw 99,604 99,383 −221 (−0.2%) 🟢
octane-tsrx chat_js_gzip 33,709 33,631 −78 (−0.2%) 🟢
octane-tsrx chat_js_brotli 30,128 30,021 −107 (−0.4%) 🟢
octane-tsrx chat_app_raw 5,783 5,777 −6 (−0.1%) 🟢
octane-tsrx chat_app_gzip 2,726 2,723 −3 (−0.1%) 🟢
octane-tsrx chat_app_brotli 2,390 2,389 −1 (−0.0%) 🟢
octane-tsrx chat_fw_raw 93,821 93,606 −215 (−0.2%) 🟢
octane-tsrx chat_fw_gzip 30,983 30,908 −75 (−0.2%) 🟢
octane-tsrx chat_fw_brotli 27,738 27,632 −106 (−0.4%) 🟢
octane-tsrx weather_js_raw 134,331 134,104 −227 (−0.2%) 🟢
octane-tsrx weather_js_gzip 44,520 44,482 −38 (−0.1%) 🟢
octane-tsrx weather_js_brotli 39,375 39,330 −45 (−0.1%) 🟢
octane-tsrx weather_app_raw 22,168 22,156 −12 (−0.1%) 🟢
octane-tsrx weather_app_gzip 7,860 7,880 +20 (+0.3%) 🔴
octane-tsrx weather_app_brotli 6,712 6,679 −33 (−0.5%) 🟢
octane-tsrx weather_fw_raw 112,163 111,948 −215 (−0.2%) 🟢
octane-tsrx weather_fw_gzip 36,660 36,602 −58 (−0.2%) 🟢
octane-tsrx weather_fw_brotli 32,663 32,651 −12 (−0.0%) 🟢
octane-tsrx bindings_js_raw 680,647 680,273 −374 (−0.1%) 🟢
octane-tsrx bindings_js_gzip 224,213 224,093 −120 (−0.1%) 🟢
octane-tsrx bindings_js_brotli 190,780 190,764 −16 (−0.0%) 🟢
octane-tsrx bindings_app_raw 347,742 347,727 −15 (−0.0%) 🟢
octane-tsrx bindings_app_gzip 115,670 115,660 −10 (−0.0%) 🟢
octane-tsrx bindings_app_brotli 96,149 96,253 +104 (+0.1%) 🔴
octane-tsrx bindings_fw_raw 332,905 332,546 −359 (−0.1%) 🟢
octane-tsrx bindings_fw_gzip 108,543 108,433 −110 (−0.1%) 🟢
octane-tsrx bindings_fw_brotli 94,631 94,511 −120 (−0.1%) 🟢
octane-tsrx wayfinder_js_raw 457,420 457,026 −394 (−0.1%) 🟢
octane-tsrx wayfinder_js_gzip 148,843 148,741 −102 (−0.1%) 🟢
octane-tsrx wayfinder_js_brotli 129,016 128,816 −200 (−0.2%) 🟢
octane-tsrx threadline_oxc_js_raw 146,300 146,056 −244 (−0.2%) 🟢
octane-tsrx threadline_oxc_js_gzip 48,996 48,984 −12 (−0.0%) 🟢
octane-tsrx threadline_oxc_js_brotli 42,946 42,984 +38 (+0.1%) 🔴
octane-tsrx threadline_esbuild_js_raw 173,590 173,291 −299 (−0.2%) 🟢
octane-tsrx threadline_esbuild_js_gzip 58,239 58,188 −51 (−0.1%) 🟢
octane-tsrx threadline_esbuild_js_brotli 50,824 50,799 −25 (−0.0%) 🟢
octane-tsrx pagecraft_oxc_js_raw 540,857 540,488 −369 (−0.1%) 🟢
octane-tsrx pagecraft_oxc_js_gzip 169,365 169,276 −89 (−0.1%) 🟢
octane-tsrx pagecraft_oxc_js_brotli 143,132 143,175 +43 (+0.0%) 🔴
octane-tsrx pagecraft_esbuild_js_raw 591,071 590,649 −422 (−0.1%) 🟢
octane-tsrx pagecraft_esbuild_js_gzip 188,776 188,669 −107 (−0.1%) 🟢
octane-tsrx pagecraft_esbuild_js_brotli 159,602 159,460 −142 (−0.1%) 🟢
octane-tsrx full_fw_raw 569,483 569,077 −406 (−0.1%) 🟢
octane-tsrx full_fw_gzip 172,317 172,236 −81 (−0.0%) 🟢
octane-tsrx full_fw_brotli 145,152 145,093 −59 (−0.0%) 🟢
octane-jsx js_raw 166,495 166,128 −367 (−0.2%) 🟢
octane-jsx js_gzip 54,021 53,912 −109 (−0.2%) 🟢
octane-jsx js_brotli 47,411 47,262 −149 (−0.3%) 🟢
octane-jsx app_raw 8,279 8,271 −8 (−0.1%) 🟢
octane-jsx app_gzip 2,860 2,861 +1 (+0.0%) 🔴
octane-jsx app_brotli 2,433 2,421 −12 (−0.5%) 🟢
octane-jsx fw_raw 158,216 157,857 −359 (−0.2%) 🟢
octane-jsx fw_gzip 51,161 51,051 −110 (−0.2%) 🟢
octane-jsx fw_brotli 44,978 44,841 −137 (−0.3%) 🟢
octane-jsx shell_js_raw 389,720 389,316 −404 (−0.1%) 🟢
octane-jsx shell_js_gzip 122,434 122,312 −122 (−0.1%) 🟢
octane-jsx shell_js_brotli 104,512 104,423 −89 (−0.1%) 🟢
octane-jsx shell_app_gzip 769 766 −3 (−0.4%) 🟢
octane-jsx shell_app_brotli 681 664 −17 (−2.5%) 🟢
octane-jsx shell_fw_raw 388,627 388,223 −404 (−0.1%) 🟢
octane-jsx shell_fw_gzip 121,665 121,546 −119 (−0.1%) 🟢
octane-jsx shell_fw_brotli 103,831 103,759 −72 (−0.1%) 🟢
octane-jsx shell_client_js_raw 324,070 323,667 −403 (−0.1%) 🟢
octane-jsx shell_client_js_gzip 101,223 101,164 −59 (−0.1%) 🟢
octane-jsx shell_client_js_brotli 87,408 87,241 −167 (−0.2%) 🟢
octane-jsx shell_client_app_gzip 765 769 +4 (+0.5%) 🔴
octane-jsx shell_client_app_brotli 661 660 −1 (−0.2%) 🟢
octane-jsx shell_client_fw_raw 322,969 322,566 −403 (−0.1%) 🟢
octane-jsx shell_client_fw_gzip 100,458 100,395 −63 (−0.1%) 🟢
octane-jsx shell_client_fw_brotli 86,747 86,581 −166 (−0.2%) 🟢
octane-jsx full_fw_raw 569,483 569,077 −406 (−0.1%) 🟢
octane-jsx full_fw_gzip 172,317 172,236 −81 (−0.0%) 🟢
octane-jsx full_fw_brotli 145,152 145,093 −59 (−0.0%) 🟢

2 other measured values are unchanged.

Public-import reachability bundles (bytes)

target metric base head Δ
cli-spa-starter raw 80,892 80,675 −217 (−0.3%) 🟢
cli-spa-starter gzip 27,852 27,784 −68 (−0.2%) 🟢
cli-spa-starter brotli 24,804 24,742 −62 (−0.2%) 🟢
root-chained-jsx raw 55,072 54,055 −1,017 (−1.8%) 🟢
root-chained-jsx gzip 18,659 18,366 −293 (−1.6%) 🟢
root-chained-jsx brotli 16,927 16,673 −254 (−1.5%) 🟢
root-static raw 148,014 147,655 −359 (−0.2%) 🟢
root-static gzip 48,043 47,932 −111 (−0.2%) 🟢
root-static brotli 42,315 42,214 −101 (−0.2%) 🟢
root-callback-local raw 55,453 54,436 −1,017 (−1.8%) 🟢
root-callback-local gzip 18,749 18,447 −302 (−1.6%) 🟢
root-callback-local brotli 17,061 16,747 −314 (−1.8%) 🟢
hooks-state raw 63,081 62,063 −1,018 (−1.6%) 🟢
hooks-state gzip 21,191 20,896 −295 (−1.4%) 🟢
hooks-state brotli 19,172 18,957 −215 (−1.1%) 🟢
prop-attributes raw 60,187 59,167 −1,020 (−1.7%) 🟢
prop-attributes gzip 20,345 20,023 −322 (−1.6%) 🟢
prop-attributes brotli 18,398 18,119 −279 (−1.5%) 🟢
context raw 69,137 68,921 −216 (−0.3%) 🟢
context gzip 23,064 23,025 −39 (−0.2%) 🟢
context brotli 20,847 20,788 −59 (−0.3%) 🟢
hydrate-root raw 108,318 108,102 −216 (−0.2%) 🟢
hydrate-root gzip 35,660 35,599 −61 (−0.2%) 🟢
hydrate-root brotli 31,589 31,492 −97 (−0.3%) 🟢
deferred-hydration raw 191,134 190,918 −216 (−0.1%) 🟢
deferred-hydration gzip 61,083 61,045 −38 (−0.1%) 🟢
deferred-hydration brotli 53,290 53,219 −71 (−0.1%) 🟢
hydrate-frame raw 340,014 339,653 −361 (−0.1%) 🟢
hydrate-frame gzip 108,067 107,961 −106 (−0.1%) 🟢
hydrate-frame brotli 92,772 92,730 −42 (−0.0%) 🟢
suspense-transition raw 123,226 123,010 −216 (−0.2%) 🟢
suspense-transition gzip 39,540 39,478 −62 (−0.2%) 🟢
suspense-transition brotli 35,083 35,027 −56 (−0.2%) 🟢
binding-hooks raw 65,737 64,717 −1,020 (−1.6%) 🟢
binding-hooks gzip 22,377 22,057 −320 (−1.4%) 🟢
binding-hooks brotli 20,238 19,958 −280 (−1.4%) 🟢
split-shell raw 414,556 414,193 −363 (−0.1%) 🟢
split-shell gzip 132,793 132,695 −98 (−0.1%) 🟢
split-shell brotli 114,350 114,266 −84 (−0.1%) 🟢
split-shell-runtime raw 331,707 331,348 −359 (−0.1%) 🟢
split-shell-runtime gzip 105,308 105,203 −105 (−0.1%) 🟢
split-shell-runtime brotli 89,782 89,678 −104 (−0.1%) 🟢
binding-base-ui-vite raw 189,208 188,849 −359 (−0.2%) 🟢
binding-base-ui-vite gzip 60,936 60,841 −95 (−0.2%) 🟢
binding-base-ui-vite brotli 53,335 53,279 −56 (−0.1%) 🟢
binding-base-ui-esbuild raw 216,499 216,095 −404 (−0.2%) 🟢
binding-base-ui-esbuild gzip 70,468 70,374 −94 (−0.1%) 🟢
binding-base-ui-esbuild brotli 61,340 61,138 −202 (−0.3%) 🟢
binding-radix-vite raw 189,572 189,213 −359 (−0.2%) 🟢
binding-radix-vite gzip 60,825 60,724 −101 (−0.2%) 🟢
binding-radix-vite brotli 53,297 53,161 −136 (−0.3%) 🟢
binding-radix-esbuild raw 216,645 216,241 −404 (−0.2%) 🟢
binding-radix-esbuild gzip 70,378 70,273 −105 (−0.1%) 🟢
binding-radix-esbuild brotli 61,253 61,094 −159 (−0.3%) 🟢
binding-mantine-hooks-vite raw 63,740 62,720 −1,020 (−1.6%) 🟢
binding-mantine-hooks-vite gzip 21,618 21,315 −303 (−1.4%) 🟢
binding-mantine-hooks-vite brotli 19,570 19,355 −215 (−1.1%) 🟢
binding-mantine-hooks-esbuild raw 75,517 74,408 −1,109 (−1.5%) 🟢
binding-mantine-hooks-esbuild gzip 26,225 25,882 −343 (−1.3%) 🟢
binding-mantine-hooks-esbuild brotli 23,540 23,271 −269 (−1.1%) 🟢
binding-apollo-client-vite raw 331,377 331,015 −362 (−0.1%) 🟢
binding-apollo-client-vite gzip 103,201 103,097 −104 (−0.1%) 🟢
binding-apollo-client-vite brotli 90,515 90,370 −145 (−0.2%) 🟢
binding-apollo-client-esbuild raw 366,673 366,268 −405 (−0.1%) 🟢
binding-apollo-client-esbuild gzip 116,889 116,760 −129 (−0.1%) 🟢
binding-apollo-client-esbuild brotli 102,153 101,958 −195 (−0.2%) 🟢
binding-usehooks-ts-vite raw 64,522 63,502 −1,020 (−1.6%) 🟢
binding-usehooks-ts-vite gzip 21,845 21,530 −315 (−1.4%) 🟢
binding-usehooks-ts-vite brotli 19,780 19,514 −266 (−1.3%) 🟢
binding-usehooks-ts-esbuild raw 76,285 75,176 −1,109 (−1.5%) 🟢
binding-usehooks-ts-esbuild gzip 26,456 26,120 −336 (−1.3%) 🟢
binding-usehooks-ts-esbuild brotli 23,740 23,517 −223 (−0.9%) 🟢

48 other measured values are unchanged.

@trueadm
trueadm merged commit 0bb503f into octanejs:main Oct 14, 2026
54 checks passed
trueadm added a commit that referenced this pull request Oct 15, 2026
Brings in #2047-#2051 (Strong literal stabilisation), #2054 (checked
compiled boundaries and a compiled router entry), #2055/#2057 (Strong
rejects descriptor APIs and .tsx/.jsx), #2056/#2060/#2061 (CLI Strong
reports), #2062 (Strong in the website and devtools), #2065 (no
browser-translation DOM accommodations) and Version Packages.

Conflicts, resolved so main's behaviour lands on the redesign's commit model:
- runtime.ts, #2065: setText keeps main's legacy host-only convention and the
  redesign's hydration writeText. The translator recovery is gone from
  renderText/commitText, setRenderText/commitSetText, commitHole,
  childTextHoleUpdate, recordHole and bindSignalChild; removeOnlyChildText
  still removes a committed Text at commit. resetOnlyChildHost and
  PENDING_HOST_TEXTS (which served only the host-only text writes) are deleted.
- compile.js, #2065: text updates call setRenderText(_txt, v), commit
  functions setText(_txt, v), and commitHole takes no host.
- runtime.server.ts, #2054: a compiled-only frame checks its output;
  ordinary frames keep the redesign's returned-value normalization.
- codes.json: main's 344-346 (CompiledContext, CompiledOutlet) keep their
  numbers; the redesign's codes move to 347 (server boundary error), 348
  (hydration protocol skew) and 349 (frontier rehome). Generated tables and
  CLI data are regenerated; docs/ssr.md names #348.

Adaptations:
- compiled-boundaries.test.ts: the server runs no error boundary (React's
  model), so an invalid CompiledOutlet under a catch-only @Try fails
  renderToString with the CompiledOutlet error; the client still shows the
  catch arm.
- scripts/render-writers.mjs drops resetOnlyChildHost.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

Revert browser-translation DOM workarounds and document application-level opt-outs

2 participants