Skip to content

fix(cli): Skip echo for inline-composed interrupt replies#838

Merged
JeanMertz merged 5 commits into
mainfrom
jpq-inline-editor
Jul 3, 2026
Merged

fix(cli): Skip echo for inline-composed interrupt replies#838
JeanMertz merged 5 commits into
mainfrom
jpq-inline-editor

Conversation

@JeanMertz

Copy link
Copy Markdown
Collaborator

InterruptAction::Reply now carries from_editor alongside the reply text. The turn coordinator uses it to decide whether to echo the user's message: an editor-composed reply never appeared on the terminal, so it still renders through render_user_request (labeled user header + body). An inline-composed reply is already visible in scrollback on the widget's own line, so the coordinator only resets the assistant-header gate via begin_turn, without re-printing the text.

Previously every Reply interrupt rendered a full user header regardless of composing surface, duplicating text the inline widget had already printed. The next assistant chunk still opens with a fresh ── jp header in both cases.

Adds RFD 093 (Inline-First Query Composition), which extends RFD 088 to make bare jp query compose in the inline editor by default, with Ctrl+X escaping to the external editor and a new query.compose_in_editor setting controlling the surface.

JeanMertz added 5 commits July 3, 2026 15:49
`InterruptAction::Reply` now carries `from_editor` alongside the reply
text. The turn coordinator uses it to decide whether to echo the
user's message: an editor-composed reply never appeared on the
terminal, so it still renders through `render_user_request` (labeled
user header + body). An inline-composed reply is already visible in
scrollback on the widget's own line, so the coordinator only resets
the assistant-header gate via `begin_turn`, without re-printing the
text.

Previously every `Reply` interrupt rendered a full user header
regardless of composing surface, duplicating text the inline widget
had already printed. The next assistant chunk still opens with a
fresh `── jp` header in both cases.

Adds RFD 093 (Inline-First Query Composition), which extends RFD 088
to make bare `jp query` compose in the inline editor by default, with
`Ctrl+X` escaping to the external editor and a new
`query.compose_in_editor` setting controlling the surface.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz JeanMertz merged commit d7baeb5 into main Jul 3, 2026
16 checks passed
@JeanMertz JeanMertz deleted the jpq-inline-editor branch July 3, 2026 19:51
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