Skip to content

fix(cli): Echo synthesized queries from --no-edit#859

Merged
JeanMertz merged 2 commits into
mainfrom
jp-q-E
Jul 9, 2026
Merged

fix(cli): Echo synthesized queries from --no-edit#859
JeanMertz merged 2 commits into
mainfrom
jp-q-E

Conversation

@JeanMertz

Copy link
Copy Markdown
Collaborator

When jp query --no-edit runs without an explicit query, the request is synthesized (either the conversation's trailing message is re-sent, or a default "continue" is used) instead of coming from the user. This synthesized text was previously treated the same as a plain inline query and never echoed, so the user had no way to see what was actually sent to the LLM.

The query's origin is now tracked with a three-way QuerySource enum (Editor, Inline, Synthesized) instead of a plain boolean. should_echo_request echoes whenever the source isn't Inline, so editor-composed, replayed, and now synthesized queries are all shown to the user before the turn runs.

JeanMertz added 2 commits July 8, 2026 15:43
When `jp query --no-edit` runs without an explicit query, the request
is synthesized (either the conversation's trailing message is re-sent,
or a default "continue" is used) instead of coming from the user. This
synthesized text was previously treated the same as a plain inline
query and never echoed, so the user had no way to see what was
actually sent to the LLM.

The query's origin is now tracked with a three-way `QuerySource` enum
(`Editor`, `Inline`, `Synthesized`) instead of a plain boolean.
`should_echo_request` echoes whenever the source isn't `Inline`, so
editor-composed, replayed, and now synthesized queries are all shown
to the user before the turn runs.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz
JeanMertz merged commit 329a5b1 into main Jul 9, 2026
24 of 29 checks passed
@JeanMertz
JeanMertz deleted the jp-q-E branch July 9, 2026 08:12
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