diff --git a/packages/opencode/src/session/prompt.ts b/packages/opencode/src/session/prompt.ts index 508c72cc8fd9..19b7ccb2ff4c 100644 --- a/packages/opencode/src/session/prompt.ts +++ b/packages/opencode/src/session/prompt.ts @@ -1556,8 +1556,7 @@ NOTE: At any point in time through this workflow you should feel free to ask the } const agentName = cmd.agent ?? input.agent ?? (yield* agents.defaultAgent()) - const raw = input.arguments.match(argsRegex) ?? [] - const args = raw.map((arg) => arg.replace(quoteTrimRegex, "")) + const args = input.arguments.match(argsRegex) ?? [] const templateCommand = yield* Effect.promise(async () => cmd.template) const placeholders = templateCommand.match(placeholderRegex) ?? [] @@ -1819,6 +1818,5 @@ const bashRegex = /!`([^`]+)`/g // Match [Image N] as single token, quoted strings, or non-space sequences const argsRegex = /(?:\[Image\s+\d+\]|"[^"]*"|'[^']*'|[^\s"']+)/gi const placeholderRegex = /\$(\d+)/g -const quoteTrimRegex = /^["']|["']$/g export * as SessionPrompt from "./prompt"