Second Brain Builder fails to run Codex when the vault path contains spaces, such as ~/Library/Mobile Documents/....
The plugin calls spawnCli(execPath, args, { shell: true }), which causes the --output-last-message path to be split at spaces. Codex then exits with code 2:
error: unexpected argument '-' found
The - argument itself is valid. The issue was reproduced with Codex CLI 0.155.1 on macOS. Setting shell: false for Codex on macOS preserves the argument boundaries and resolves this parsing error.
Second Brain Builder fails to run Codex when the vault path contains spaces, such as
~/Library/Mobile Documents/....The plugin calls
spawnCli(execPath, args, { shell: true }), which causes the--output-last-messagepath to be split at spaces. Codex then exits with code 2:The
-argument itself is valid. The issue was reproduced with Codex CLI 0.155.1 on macOS. Settingshell: falsefor Codex on macOS preserves the argument boundaries and resolves this parsing error.