Repository navigation
fix(id/web): rebind Find panel and Go to Line dialog when the editor is recreated - #719
Conversation
…is recreated (#718) Both modules keep their DOM in a module-level singleton bound to the first editor's view/container. Their destroy helpers have no production caller (only test afterEach), so after disconnect/reopen the panel and dialog were detached nodes bound to a destroyed view: Ctrl+F/Ctrl+G returned true but nothing ever appeared. openPanel/openGotoLine now destroy and recreate the singleton when it belongs to a different view/container. Regression tests recreate the editor without calling the destroy helpers, mirroring production teardown: both fail pre-fix, all 43 search-panel + goto-line tests pass post-fix, typecheck clean.
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. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 35 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Sweep triage (2026-10-24): the nix flake check failure on this PR is NOT this change — the only failure in run 40065614055 is |
Fixes #718.
What
search-panel.ts:openPaneldestroys and recreates the module-singleton panel when it is bound to a different view or container (editor recreated via disconnect/reopen). Previously it setdisplay = ""on a detached node whose handlers dispatched to the destroyed first view.goto-line.ts:openGotoLinedoes the same for its singleton dialog when it belongs to a different container.Root cause for both:
destroySearchPanel()/destroyGotoLineDialog()have no production caller — only the test files'afterEach. Production teardown inmain.tsonly callsview.destroy().Verification
tsc --noEmitclean.Need help on this PR? Tag
@codesmith-botwith what you need.