6e70c7bd6a
Unit-test the focus-restore guard: an external <input> active -> editor.view.focus NOT called (deliberate move respected); a non-focusable element active -> focus called once. Fake editor + fake timers (rAF via setTimeout stub); view.focus is a spy. Regression lock for the guard that keeps focus out of the page-title input. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>