I can’t make this happen on demand. I’m posting it because it happened three times in two days and the circumstances look similar each time.
Steps to reproduce
- Settings → General → Command line interface: on.
- Call
obsidian evalfrom scripts against a running Obsidian, for example:obsidian eval code="(()=>{ const a = app.workspace.activeLeaf; return JSON.stringify({ file: a?.view.file?.path }); })()"obsidian vault="Obsidian Sandbox" eval code="JSON.stringify({ hidden: document.hidden, size: [innerWidth, innerHeight] })"
Hundreds of calls over the two days exited normally. Three didn’t.
Did you read and follow the Troubleshooting Guide? [Yes/No]
Yes, as far as it applies: all three hangs were on Obsidian 1.14.4 with installer 1.14.4 (official installer). I’ve since updated to 1.14.5 (installer 1.14.5) and don’t know yet whether it still happens there. I can’t reproduce it on demand. One of the three hangs was a call to the sandbox vault (restricted mode on).
Expected result
The CLI prints the result (=> …) and exits.
Actual result
The CLI printed the complete result line, then kept running with no further output until it was killed: once after about 9 minutes (10 Oct), twice by a time limit, after 15 s and 90 s (11 Oct). Obsidian itself kept working, and the next calls worked normally.
This is not the | head case from topics 111691 (“CLI: command hangs when piping CLI output to the head command”) and 118581 (“Obsidian CLI hangs when stdout pipe closes early”): nothing closed the output early. It went to a file or to the calling program, which read it to the end.
Each time, an Obsidian window was on another macOS desktop (Space), or changing state, around the call:
- 10 Oct: the active pane was in a pop-out window on another desktop.
- 11 Oct, the sandbox call above: the sandbox window had just been brought to the front from another desktop.
- 11 Oct: the call turned a pop-out window’s background throttling off (and back on 1.5 s later), and that pop-out window, on another desktop, disappeared at the same moment.
Environment
At the time of the hangs:
SYSTEM INFO:
Obsidian version: 1.14.4
Installer version: 1.14.4
Operating system: Darwin Kernel Version 25.6.0: Tue Aug 18 17:48:46 PDT 2026; root:xnu-12377.161.15.700.19~2/RELEASE_ARM64_T6041 25.6.0
Login status: logged in
Language: en
Catalyst license: none
Insider build toggle: off
Live preview: on
Main window: hidden
Base theme: adapt to system
Community theme: Things 2.2.4
Snippets enabled: 7
Restricted mode: off
Plugins installed: 23
Plugins enabled: 18
RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.
Main window hidden: if the issue happens in a popout window, please check whether it still happens while the main window is visible.
macOS 26.7.1, Apple Silicon. The CLI is /usr/local/bin/obsidian → Obsidian.app/Contents/MacOS/obsidian-cli.
Additional information
Workaround: a wrapper that stops the call after a time limit and keeps its output (macOS has no timeout command).
Suggestions: exit once the result has arrived, even if the connection to the app isn’t closed cleanly; and a built-in time limit (for example --timeout 60) with its own exit code.