mirror of
https://github.com/ggozad/oterm.git
synced 2026-11-05 12:51:24 +01:00
Copy was mouse-only via ChatItem.on_click. Extract that into ChatItem.copy and reach it from a ChatContainer action, so it is reachable from the keyboard, remappable via the keymap config, and listed in the command palette. The action reads the last ChatItem rather than messages[-1]: messages is only appended once a response has finished streaming, so a keypress mid-stream would otherwise copy the previous message. |
||
|---|---|---|
| .. | ||
| agent | ||
| app | ||
| data | ||
| modals | ||
| tools | ||
| unit | ||
| widgets | ||
| __init__.py | ||
| _helpers.py | ||
| _stream_helpers.py | ||
| conftest.py | ||