Skip to content

One conversation, the one iq draws, with iq selecting in it itself - #23

Merged
ngodzik merged 3 commits into
mainfrom
drawn-only
Nov 14, 2026
Merged

ngodzik merged 3 commits into
mainfrom
drawn-only

Conversation

@ngodzik

@ngodzik ngodzik commented Nov 14, 2026

Copy link
Copy Markdown
Owner

One conversation, the one iq draws, with iq selecting in it itself.

What

  • iq always draws the conversation; conversation is read no more, said so as iq starts, so that older settings still load. The scrollback writer is left for a cleanup of its own.
  • A press let go where it was is a click, as before. A drag selects, shown reversed, with no Shift; held at the conversation's top or bottom edge it scrolls a row every 60 ms, the mouse still; the selection is kept by block and row so that it holds as the conversation scrolls. As the mouse comes up, what it holds goes to the terminal's clipboard through OSC 52, without images, padding or the conversation's own indent. Shift and a drag stay the terminal's own selection, where a terminal does not let OSC 52 write its clipboard.
  • The end of a row is erased again only when the row changed: Kitty dropped a selection it made as the unchanged rows were written again every second.
  • A chat compacted before compactions kept what they replaced comes back with its last answer at its end, the older steps and errors before it.

Checked

Every commit passes scripts/check.sh. Live, in xterm in a nested X server with a stand-in provider that calls no model: the conversation drawn without the setting, a drag shown reversed and copied (read back from the clipboard, xterm allowing OSC 52), the selection holding as the conversation moved, held at the top edge scrolling up to the start, a click still marking. Not checked: Kitty, for which the erasing change is made, and macOS.

Stacked on #22: merge it first.

For a chat compacted before compactions kept what they replaced, what
was set aside before the compaction stood past the messages kept, and
the thread placed it, with all that was set aside after it, below the
last answer: old steps and errors piled up under it.

What stands past the messages kept and came before something set aside
among them now comes first; what truly came last stays at the end; and
what stands among the messages is placed by where it stands.
The end of every row of the conversation iq draws was erased after each
draw, unchanged rows included, at least once a second for the status
line's clock. Kitty, seeing the selected rows written again, dropped a
selection the terminal itself made; other terminals may do the same.

The end of a row is now erased only when the row changed (its text, its
width or its mark's colour), what was erased being forgotten when the
screen is wiped or refitted, or the row given to the live part.
Selecting in the conversation iq draws needed Shift, the mouse being
iq's, and stopped at the screen's edges; the scrollback selected well
but lost the clicks on folds, links and diagrams.

iq now always draws the conversation; `conversation` is read no more,
said so as iq starts, so that older settings still load, and the
scrollback writer is left for a cleanup of its own. A press let go
where it was is a click, as before. A drag selects, shown reversed,
with no Shift; held at the conversation's top or bottom edge, it
scrolls a row every 60 ms, the mouse still; the selection is kept by
block and row so that it holds as the conversation scrolls. As the
mouse comes up, what it holds goes to the terminal's clipboard through
OSC 52, without the images, the rows' padding nor the conversation's
own indent. Shift and a drag stay the terminal's own selection, where
a terminal does not let OSC 52 write its clipboard.
@ngodzik
ngodzik changed the base branch from many-agents to main November 14, 2026 20:46
@ngodzik
ngodzik merged commit f50c9c9 into main Nov 14, 2026
11 of 15 checks passed
@ngodzik
ngodzik deleted the drawn-only branch November 14, 2026 21:49
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