oterm/tests/widgets
Yiorgis Gozadinos 781bc7c043
Read a local server's context window when the chat opens and after every reply
The window only reached the summarize capability after the first reply
reported usage, so a reopened long chat on a local server sent its
whole history uncompacted: Ollama silently drops the oldest context and
vLLM rejects the request. The chat now asks the server on mount, after
each reply whether or not it reported usage, and again after the chat
is edited, which previously kept the old model's window.

The system prompt check that drives the summary notification stays,
with the invariant it relies on stated: oterm sends its system prompt
as instructions and none of its capabilities add system prompts.

The turn helper in the widget tests waited for exactly two messages,
which a preloaded chat can never reach; it now waits for two more than
were there.
2026-09-27 13:56:12 +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 Bump pydantic-ai to 2.51.0 and drop Python 3.10 2026-09-26 15:51:22 +03:00
test_chat_container.py Read a local server's context window when the chat opens and after every reply 2026-09-27 13:56:12 +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