Skip to content

Second Brain Builder fails to run Codex when the vault path contains spaces, such as ~/Library/Mobile Documents/.... #1

Description

@DjOldBoy

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions