Paths with parentheses often not escaped

Resolved 💬 1 comment Opened May 25, 2025 by markjaquith Closed Aug 7, 2025

What version of Codex is running?

0.1.2505172129

Which model were you using?

codex-mini-latest

What platform is your computer?

Darwin 24.3.0 arm64 arm

What steps can reproduce the bug?

Create a project with paths that contain parentheses.

What is the expected behavior?

Paths should be safely escaped in tool calls.

What do you see instead?

Directory paths with parentheses in them (common in SvelteKit apps) are often not escaped, yielding tool calls that fail:

 $ sed -n '732,756p' src/routes/(dashboard)/dashboard/speech/[speechId]/+page.svelte | sed $'s/\t/→/g'

    command.stdout (code: 2, duration: 0.4s)

    bash: -c: line 0: syntax error near unexpected token `('
    bash: -c: line 0: `sed -n '732,756p' src/routes/(dashboard)/dashboard/speech/[speechId]/+page.svelte | sed $'s/\t/→/g''

Additional information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗