[GH-ISSUE #4785] [GUI] quote a turn or a selected passage into the composer and keep the quote chain visible, so an earlier message can be answered without retyping it #2199

Closed
opened 2026-11-04 01:57:25 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @xvcezrqpbxtpzblrt on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4785

2026-11-06 核对结果:装机 0.2.11 与 main@9f7d977d2 已存在该修复——引用格式 Quoting: … 「…」Reply:,选区右键/悬浮按钮 "Quote",最多 8 段、每段 4000 字符(quotes.ts,注释含 #4785;Chat.tsx 选区 "Quote" 按钮、sendMessage 走 composeQuoted)。未做 GUI 实测。可关单;如仍无引用请带场景。


Area

[GUI] (the desktop app)

What do you want to do?

In a long chat, let me point at something that is already on the screen and answer that, instead of retyping it.

Concretely:

  1. Quote a whole turn. Every message already has an action row (Copy response / Ask again / Continue / Branch from here, apps/host/src/screens/Chat.tsx:677-690). Add Quote there. It puts that turn above the composer as a small quoted block while I write my answer.
  2. Quote one passage, not the whole turn. Selecting text inside a reply and choosing Quote should put just that selection in the block. This is the everyday case: I want to answer the third sentence of a long answer, not all of it.
  3. Several quotes in a row, kept in order. Quote A, then quote B, then answer both at once. The quotes stay listed (newest at the bottom, so the thread reads top to bottom), each one clickable to jump to where it came from, and each one removable without touching the others. A follow-up that quotes an answer to a quote should work the same way, so the chain is continuous over several turns.
  4. The quote has to reach the model, not only my screen. The sent message should carry it in a fixed, visible form so the model knows what is being answered. My suggestion for the shape, in the spirit of what I would like to see:
「the quoted passage, as written by the assistant」
「a second quoted passage, if any」
→ 回复 / reply: my new question or answer

i.e. corner brackets for the quoted text and an arrow before my own words. In English copy that could read Quoting: "…" → Reply:. The exact wording is yours; the point is that the quote and the reply are visually and textually separate, in the transcript as well as in what the model receives.
5. The quote must survive being sent. In the transcript afterwards, my message shows the quoted block (collapsed to one or two lines, expandable) and the reply under it, so a chat scrolled back to next week still shows what each answer was about.

Why I want it: chats here run 100–300K tokens, so "the thing I am answering" is often 100+ messages up. Today I re-state it in my own words, which loses what the model actually said — and with a small local model, my re-statement is usually what makes the next answer drift further away. There is also no way to point at an earlier question that was never answered.

This is about answering something already in the conversation. The separate case of the agent asking me to choose an option is already tracked as #4244.

What do you do today instead?

  • Copy the passage, paste it into the composer, and type quote marks by hand. Three steps per follow-up, and the copy step is its own problem (no confirmation that anything landed on the clipboard: #4748), while selecting text in an answer is not reliable while a reply streams or right after one (#3818 — the transcript keeps re-pinning to the newest token, and there is no "pause follow while a selection exists" check).
  • For older turns there is "Ask again" (re-runs the last exchange only) and "Branch from here" / Rewind with the 0.2.7 choice of edit-in-place or branch. Answering one earlier point that way forks or discards everything after it, which is too expensive for a single follow-up question.
  • Or simply describe the passage from memory, which is what I do most of the time, and it is the weakest of the three.

Searched open and closed issues for quote, quoting, quote message, reply to message, reference a message, jump to message, 引用, context mention. Nothing asks for a quote / reply-target affordance. The nearest, all different features that happen to sit in the same area:

  • #4244 — an answerer surface for the agent's own ask_user_question (clicking an option instead of typing); different direction: the agent asks, I click.
  • #4749 — the Subagents panel has no input at all, so a helper cannot be addressed directly.
  • #4783 — the desktop chat cannot interject while an answer streams, so a mid-turn follow-up cannot even be sent.
  • #3818 — reply text cannot be fully selected while a reply streams; relevant here because passage quoting depends on selection.
  • #4748 — a copy gives no confirmation, which is the workaround used today.

Strata version

Strata 0.2.8 · app 0.2.8, Control and engine 0.1.54

Graphics card, memory and system

NVIDIA GeForce RTX 3080 Ti Laptop GPU 16 GB · 64 GB RAM · Windows 11 Pro build 26300

Suggested shape (not tested, not a spec)

Nothing here needs an engine change: a quote is ordinary message text, and the app already composes message text on the client (the queued-message card apps/host/src/components/PlanCard.tsx:93-97 and the .queued styles in apps/host/src/styles/app.css:7379-7383 are the same idea — a client-side block attached to a turn that is not sent yet).

  • A Quote item in the existing message menu (Chat.tsx:683-688) and one in the selection popup for a passage.
  • A stack of quoted blocks rendered just above the composer, each with the source message id so it can be clicked to scroll there, and an × to drop it.
  • Sending joins them into the message content in the fixed form above; the renderer shows that form as a block (the transcript already renders > blockquotes — apps/host/src/components/Markdown.tsx:127 — so a distinct quote block is a small step from what exists).
  • The passage-level variant depends on selection being dependable during and after streaming, which is #3818.

Logs

None: no request is involved, this is a composer and transcript change.

Originally created by @xvcezrqpbxtpzblrt on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4785 **2026-11-06 核对结果**:装机 0.2.11 与 main@9f7d977d2 已存在该修复——引用格式 Quoting: … 「…」Reply:,选区右键/悬浮按钮 "Quote",最多 8 段、每段 4000 字符(quotes.ts,注释含 #4785;Chat.tsx 选区 "Quote" 按钮、sendMessage 走 composeQuoted)。未做 GUI 实测。可关单;如仍无引用请带场景。 --- ### Area [GUI] (the desktop app) ### What do you want to do? In a long chat, let me point at something that is already on the screen and answer *that*, instead of retyping it. Concretely: 1. **Quote a whole turn.** Every message already has an action row (Copy response / Ask again / Continue / Branch from here, `apps/host/src/screens/Chat.tsx:677-690`). Add **Quote** there. It puts that turn above the composer as a small quoted block while I write my answer. 2. **Quote one passage, not the whole turn.** Selecting text inside a reply and choosing Quote should put just that selection in the block. This is the everyday case: I want to answer the third sentence of a long answer, not all of it. 3. **Several quotes in a row, kept in order.** Quote A, then quote B, then answer both at once. The quotes stay listed (newest at the bottom, so the thread reads top to bottom), each one clickable to jump to where it came from, and each one removable without touching the others. A follow-up that quotes an answer to a quote should work the same way, so the chain is continuous over several turns. 4. **The quote has to reach the model, not only my screen.** The sent message should carry it in a fixed, visible form so the model knows what is being answered. My suggestion for the shape, in the spirit of what I would like to see: ```text 「the quoted passage, as written by the assistant」 「a second quoted passage, if any」 → 回复 / reply: my new question or answer ``` i.e. corner brackets for the quoted text and an arrow before my own words. In English copy that could read `Quoting: "…" → Reply:`. The exact wording is yours; the point is that the quote and the reply are visually and textually separate, in the transcript as well as in what the model receives. 5. **The quote must survive being sent.** In the transcript afterwards, my message shows the quoted block (collapsed to one or two lines, expandable) and the reply under it, so a chat scrolled back to next week still shows what each answer was about. Why I want it: chats here run 100–300K tokens, so "the thing I am answering" is often 100+ messages up. Today I re-state it in my own words, which loses what the model actually said — and with a small local model, my re-statement is usually what makes the next answer drift further away. There is also no way to point at an earlier question that was never answered. This is about answering something already in the conversation. The separate case of the *agent* asking me to choose an option is already tracked as #4244. ### What do you do today instead? - Copy the passage, paste it into the composer, and type quote marks by hand. Three steps per follow-up, and the copy step is its own problem (no confirmation that anything landed on the clipboard: #4748), while selecting text in an answer is not reliable while a reply streams or right after one (#3818 — the transcript keeps re-pinning to the newest token, and there is no "pause follow while a selection exists" check). - For older turns there is "Ask again" (re-runs the last exchange only) and "Branch from here" / Rewind with the 0.2.7 choice of edit-in-place or branch. Answering one earlier point that way forks or discards everything after it, which is too expensive for a single follow-up question. - Or simply describe the passage from memory, which is what I do most of the time, and it is the weakest of the three. ### Duplicate search Searched open and closed issues for `quote`, `quoting`, `quote message`, `reply to message`, `reference a message`, `jump to message`, `引用`, `context mention`. Nothing asks for a quote / reply-target affordance. The nearest, all different features that happen to sit in the same area: - #4244 — an answerer surface for the agent's own `ask_user_question` (clicking an option instead of typing); different direction: the agent asks, I click. - #4749 — the Subagents panel has no input at all, so a helper cannot be addressed directly. - #4783 — the desktop chat cannot interject while an answer streams, so a mid-turn follow-up cannot even be sent. - #3818 — reply text cannot be fully selected while a reply streams; relevant here because passage quoting depends on selection. - #4748 — a copy gives no confirmation, which is the workaround used today. ### Strata version Strata 0.2.8 · app `0.2.8`, Control and engine `0.1.54` ### Graphics card, memory and system NVIDIA GeForce RTX 3080 Ti Laptop GPU 16 GB · 64 GB RAM · Windows 11 Pro build 26300 ### Suggested shape (not tested, not a spec) Nothing here needs an engine change: a quote is ordinary message text, and the app already composes message text on the client (the queued-message card `apps/host/src/components/PlanCard.tsx:93-97` and the `.queued` styles in `apps/host/src/styles/app.css:7379-7383` are the same idea — a client-side block attached to a turn that is not sent yet). - A `Quote` item in the existing message menu (`Chat.tsx:683-688`) and one in the selection popup for a passage. - A stack of quoted blocks rendered just above the composer, each with the source message id so it can be clicked to scroll there, and an × to drop it. - Sending joins them into the message content in the fixed form above; the renderer shows that form as a block (the transcript already renders `>` blockquotes — `apps/host/src/components/Markdown.tsx:127` — so a distinct quote block is a small step from what exists). - The passage-level variant depends on selection being dependable during and after streaming, which is #3818. ### Logs None: no request is involved, this is a composer and transcript change.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2199
No description provided.