Skip to content

enhance(cli): Allow --quote to skip the blockquote prefix - #946

Merged
JeanMertz merged 3 commits into
mainfrom
quote-without-blockquote
Aug 7, 2026
Merged

enhance(cli): Allow --quote to skip the blockquote prefix#946
JeanMertz merged 3 commits into
mainfrom
quote-without-blockquote

Conversation

@JeanMertz

Copy link
Copy Markdown
Collaborator

jp query --quote used to always prefix the quoted assistant message with > blockquote markers. --quote=false (or the unattached --quote false) now seeds the message verbatim instead, while a bare --quote or --quote=true keeps the existing blockquote behavior.

The flag's value can be attached (--quote=false) or given as the next word (--quote false), but only when that word is exactly true or false; any other word after --quote is still read as query text, so jp q --quote what now? continues to ask "what now?". To send a literal true/false query alongside --quote, put it after --.

The query text and the --quote seed are now parsed together via a new QueryInput type, since resolving the unattached boolean form requires inspecting the raw query argument matches before the two are separated.

`jp query --quote` used to always prefix the quoted assistant message
with `> ` blockquote markers. `--quote=false` (or the unattached
`--quote false`) now seeds the message verbatim instead, while a bare
`--quote` or `--quote=true` keeps the existing blockquote behavior.

The flag's value can be attached (`--quote=false`) or given as the
next word (`--quote false`), but only when that word is exactly
`true` or `false`; any other word after `--quote` is still read as
query text, so `jp q --quote what now?` continues to ask "what now?".
To send a literal `true`/`false` query alongside `--quote`, put it
after `--`.

The query text and the `--quote` seed are now parsed together via a
new `QueryInput` type, since resolving the unattached boolean form
requires inspecting the raw `query` argument matches before the two
are separated.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz
JeanMertz force-pushed the quote-without-blockquote branch from 0bd71c0 to 51f911c Compare August 7, 2026 11:05
@JeanMertz
JeanMertz merged commit 43d3441 into main Aug 7, 2026
16 checks passed
@JeanMertz
JeanMertz deleted the quote-without-blockquote branch August 7, 2026 11:43
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