Skip to content

fix: preserve quotes in slash command arguments#239

Open
ariane-emory wants to merge 16 commits into
devfrom
fix/preserve-quotes-in-arguments
Open

fix: preserve quotes in slash command arguments#239
ariane-emory wants to merge 16 commits into
devfrom
fix/preserve-quotes-in-arguments

Conversation

@ariane-emory
Copy link
Copy Markdown
Owner

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Remove quoteTrimRegex that was stripping single and double quotes from all arguments. This allows users to intentionally include quotes in argument values, which is necessary for commands that need to preserve quote characters.

ariane-emory and others added 16 commits March 9, 2026 17:27
Remove quoteTrimRegex that was stripping single and double quotes from
all arguments. This allows users to intentionally include quotes in
argument values, which is necessary for commands that need to preserve
quote characters.
# Conflicts:
#	packages/opencode/src/session/prompt.ts
Normalize session command arguments with the existing quoted-token regex and trim surrounding quotes before placeholder substitution. This keeps runtime slash-command expansion aligned with baseone expand for multi-word quoted arguments.
Parse quoted command arguments as single tokens before placeholder substitution so runtime command execution matches shell-style quoting. Add focused regression coverage for quoted argument parsing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant