Skip to content

enhance(cli): Echo request on --replay as well as editor queries#802

Merged
JeanMertz merged 1 commit into
mainfrom
q-replay-tweak
Jun 27, 2026
Merged

enhance(cli): Echo request on --replay as well as editor queries#802
JeanMertz merged 1 commit into
mainfrom
q-replay-tweak

Conversation

@JeanMertz

Copy link
Copy Markdown
Collaborator

When replaying a conversation turn, the message being sent comes from history rather than the terminal, so the user has no visual cue of what is about to be submitted. Previously, only editor-composed queries were echoed back before the assistant response; --replay was silently re-sent without any visible boundary.

The echo condition is now captured in should_echo_request, which returns true whenever the user can't already see what's being sent: either because an editor took over the screen, or because the message was pulled from history via --replay. Plain inline queries are left unchanged — the user just typed them.

When replaying a conversation turn, the message being sent comes from
history rather than the terminal, so the user has no visual cue of what
is about to be submitted. Previously, only editor-composed queries were
echoed back before the assistant response; `--replay` was silently
re-sent without any visible boundary.

The echo condition is now captured in `should_echo_request`, which
returns `true` whenever the user can't already see what's being sent:
either because an editor took over the screen, or because the message
was pulled from history via `--replay`. Plain inline queries are left
unchanged — the user just typed them.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz JeanMertz merged commit a5ea826 into main Jun 27, 2026
16 checks passed
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