mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-10-18 23:20:10 +00:00
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:
parent
093b9106ef
commit
73ba1bb0cc
4 changed files with 22 additions and 21 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue