Repository navigation
Fix Studio find-in-page correctness and typing - #10209
Conversation
b640684 to
a6c64d3
Compare
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Confirmed this hits main, where find-dom.ts skips the whole aria-hidden KaTeX subtree so the active range sits in the clipped MathML mirror rather than the painted math, and the typing coalescing is a real win. The direction is right, but this branch also rewrites the Settings mount, the monitor persistence and the lazy entry boundaries; could you split those out so the find-in-page corrections land on their own? |
33ba4b2 to
f56dfaf
Compare
|
CI triage and merge-order note:
Safe merge order is therefore #10236 → #10209 → #10237. That keeps each resulting |
f56dfaf to
c80c6f3
Compare
|
Rebased this core-only branch onto current The old red jobs were unrelated to this patch:
Fresh-head results so far: 34 checks pass, including Repo CPU, both GGUF jobs, Chat UI, Python 3.11/3.13, all Core matrices, Tauri, Windows Rust, merge-base parity, lint, and security. The two frontend jobs reproduced the same unmodified test-harness crash on both the original run and one failed-job rerun (run 33755185378); the changed paths do not include that test or its dependency graph, and the test also reproduces standalone locally. I have not folded that unrelated CI repair into this core PR. Direct verification at
Merge-order note: #10236 should still land first. This split was sized against its lazy entry boundaries; without that ordering the core-only branch has previously measured about 6.9 KB over the startup transfer budget, so the narrow local headroom above should not be treated as replacing that dependency. The remaining Chat UI/API aggregate job is still queued for a macOS runner; I’ll update this note when it finishes. |
|
Follow-up at head
Merge-order note: #10236 should still land first to establish the intended lazy-boundary headroom. This head now independently satisfies the current startup budget, so the earlier red is no longer being left for #10236 to mask. Codex remains usage-capped; no redundant review trigger was posted. |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
Reviewed this pretty thoroughly at |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
The find bar became its own lazily loaded module on main (unslothai#10236), the index grew portal surfaces and `renumbersMatches` (unslothai#10237), and unslothai#10209 landed its own Hangul handling. Resolved by keeping both sides: - `OffsetRuns`, `unsafe` and `shifted` sit alongside `rootLength` and `surfaces` on `FindTextIndex`, and `buildTextIndex` returns all of them. - `CLUSTER_PATTERN` and the Hangul spelling helpers are main's, which require the vowel and carry the lint exemption. `canonicalSource` uses `partiallyComposedHangul` for the half-composed spelling and keeps the longest-first sort the grapheme fence needs. - Every component-source assertion now reads `find-bar.tsx`, and the store tests are main's, since the store is gone. `check-bundle-budget.ts` is back to main's: the branch only reflowed its comments and added a note that the find bar is eager, which main's lazy split has made untrue.
Summary
Focused follow-up to #10061, narrowed after review to the find-in-page corrections only.
Head:
f56dfafe3cb03f3d9ed5f8f1b4db91358a48be9fThe Settings mount, lazy entry boundaries, and monitor persistence are intentionally split into separate follow-ups.
Browser evidence
Identical fixture, query, viewport, and capture code on both sides:
가changes from missing its composed spelling to finding both composed and decomposed spellings..katex-mathmlto visible.katex-html.MonitorNeedlechanges from0/0to1/1with the range inside the monitor.Responsiveness evidence
Four A/B rounds over a 4,000,000-character index and a
5000+broad result while typingdoing:doing/1/5000+doing/1/5000+That is a 55% shorter measured type call and 80% fewer highlight registrations, with focus retained on both sides.
Verification
npm run typecheck: passWebKit is not claimed because this host lacks its required system libraries.
Merge order
Merge #10236 first, then this PR, then stacked monitor follow-up #10237. This keeps every intermediate
mainwithin the startup budget while preserving the reviewer-requested code split.