Steps to reproduce
- macOS, Obsidian 1.14.4, two vaults open in separate windows.
- Install a plugin that registers a URI handler via
registerObsidianProtocolHandler(here: Remotely Sync, actionremotely-secure-cb-dropbox). - Start the plugin’s OAuth flow, approve in the browser, click “Open Obsidian” so the browser opens
obsidian://remotely-secure-cb-dropbox?code=....
Did you follow the troubleshooting guide? [Y/N]
N. Restricted mode can’t be used to test this, because a community plugin has to register the handler.
Expected result
The registered handler is called with the URI params.
Actual result
Console shows:
Received URL action {code: '…', action: 'remotely-secure-cb-dropbox'}
Uncaught TypeError: Cannot read properties of null (reading 'focus')
at t.dispatch (app://obsidian.md/app.js:1:2869340)
at IpcRendererInternal.<anonymous> (node:electron/js2c/renderer_init:2:14503)
The handler is never called. In app.js, dispatch runs this.workspace.getFocusedContainer().focus() before looking up the handler. getFocusedContainer() falls back to this.rootSplit, so this throws whenever rootSplit is null in the receiving window, and the handler lookup is skipped.
Possible fix: guard the focus call (e.g. this.workspace.getFocusedContainer()?.focus()) so a missing container doesn’t stop the action from dispatching.
Workaround (in the console of the target window):
const ws = app.workspace, og = ws.getFocusedContainer.bind(ws);
ws.getFocusedContainer = () => og() ?? { focus() {} };
Environment
SYSTEM INFO:
Obsidian version: 1.14.4
Installer version: 1.14.4
Operating system: Darwin Kernel Version 25.4.0: Thu Mar 19 19:33:09 PDT 2026; root:xnu-12377.101.15~1/RELEASE_ARM64_T8112 25.4.0
Login status: logged in
Language: zh
Catalyst license: none
Insider build toggle: off
Live preview: on
Base theme: dark
Community theme: Border 1.12.19
Snippets enabled: 1
Restricted mode: off
Plugins installed: 67
Plugins enabled: 47
1: Calendar v1.5.10
2: Templater v2.25.0
3: Recent Files v1.7.4
4: Advanced URI v1.46.1
5: Pane Relief v0.5.9
6: Typewriter Scroll v0.2.2
7: Copy Block Link v1.0.4
8: Journal Review v2.7.0
9: Leaflet v6.0.5
10: Auto Link Title v1.5.5
11: Periodic Notes v0.0.17
12: Daily Notes Editor v0.1.8
13: Weread v2.3.0
14: Style Settings v1.0.9
15: Smart Random Note v0.2.1
16: Virtual Linker / Glossary v1.5.2
17: QuickAdd v2.9.0
18: Media Extended v3.2.6
19: Better Search Views v0.3.0
20: Canvas Mindmap v1.0.2
21: Home tab v1.2.2
22: Reveal Active File Button v2.0.6
23: Projects v1.17.4
24: Dataview v0.5.68
25: Meta Bind v1.4.6
26: JS Engine v0.3.2
27: Admonition v11.0.0
28: Banners v1.3.3
29: Commander v0.5.4
30: Collapsible Code Blocks v1.0.5
31: Better Command Palette v0.17.1
32: Another Quick Switcher v13.20.0
33: Quick Switcher++ v5.3.1
34: Tab Switcher v1.4.0
35: Omnisearch v1.28.2
36: Kanban v2.0.51
37: Image auto upload v4.1.0
38: Enhancing Mindmap v0.2.5
39: LifeOS v1.25.3
40: AI Providers v1.9.2
41: Excalidraw v2.21.2
42: Terminal v3.23.0
43: Hover Editor v0.11.28
44: floating toc v2.7.1
45: Telegram Inbox v1.8.0
46: Notebook Navigator v3.3.2
47: Remotely Sync v0.4.49
Additional information
The exact window state that leaves rootSplit null hasn’t been confirmed yet (two vaults were open at the time). Several plugins that manage panes/windows are enabled (Pane Relief, Hover Editor), which may be relevant.