Fix raw-text fallback classification

Move raw thoughts wrapping after repair selection so fallback warnings and retry handling run for plain text. Cover the Hello there… regression and align tool-args display assertions with response exclusion and reserved-key filtering.
This commit is contained in:
linkliti 2026-09-05 15:18:13 +03:00
parent 093b9106ef
commit 73ba1bb0cc
4 changed files with 22 additions and 21 deletions

View file

@ -27,7 +27,8 @@ def test_tool_args_preference_toggle_is_wired_in_webui() -> None:
def test_message_stream_gates_tool_args_display_behind_preference() -> None:
messages = read("webui/js/messages.js")
assert "if (preferencesStore.showToolArgs) {" in messages
assert "if (preferencesStore.showToolArgs && !isResponse) {" in messages
assert "kvps?.tool_args ?? kvps?.args" in messages
assert 'kvps.tool_name !== "response"' in messages
assert 'const isResponse = kvps?.tool_name === "response";' in messages
assert "!reservedKeys.has(key)" in messages
assert 'icon://build[Tool]' in messages