oterm/tests/widgets
Yiorgis Gozadinos f852cbf0be
Add a keybinding for copying the last message
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.
2026-07-31 17:48:44 +03:00
..
__init__.py Add widget-tier tests for chat container, prompt, tools, caps 2026-04-24 22:24:10 +03:00
test_caps.py Add widget-tier tests for chat container, prompt, tools, caps 2026-04-24 22:24:10 +03:00
test_chat_container.py Add a keybinding for copying the last message 2026-07-31 17:48:44 +03:00
test_flexible_input.py Cover remaining branches across modals, widgets, store, and MCP setup 2026-04-25 23:43:27 +03:00
test_image_widget.py Add widget-tier tests for chat container, prompt, tools, caps 2026-04-24 22:24:10 +03:00
test_model_select.py Remove check_ollama and fill UI/agent coverage gaps 2026-04-24 23:30:15 +03:00
test_prompt_history.py Add widget-tier tests for chat container, prompt, tools, caps 2026-04-24 22:24:10 +03:00
test_tool_select.py Qualify MCP tool names by server 2026-07-31 15:46:30 +03:00