agent-zero/tests
Alessandro 5a2223596a stop tool dispatch at first completed json object
Tool execution no longer waits for the full streamed assistant text. We now detect the first explicitly closed top-level JSON object, freeze that snapshot as the canonical tool request, and stop the model stream there for dispatch.

To make that safe, DirtyJson completion semantics are tightened so completed=true only means the root object was explicitly closed, not that parsing hit end of file. I also restricted the new extraction path to object roots only, since tool calls are always brace-delimited objects, and added tests for parser completion and early stream stop.
2026-04-03 16:56:21 +02:00
..
chunk_parser_test.py File Tree: Fixed other tests to make full test suite functional 2025-11-09 15:13:04 +01:00
email_parser_test.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
rate_limiter_test.py projects continued 2025-11-03 16:17:12 +01:00
test_browser_agent_regressions.py refactor: extract browser agent into built-in plugin 2026-03-23 15:21:57 +01:00
test_default_prompt_budget.py prompts: adopt compact defaults and rebalance guidance 2026-03-30 21:44:20 +02:00
test_dirty_json.py stop tool dispatch at first completed json object 2026-04-03 16:56:21 +02:00
test_docker_release_plan.py Add automatic Docker builds when release tags reach testing/main branches 2026-03-26 08:22:18 +01:00
test_extensions_stress.py refactor: improve caching system and optimize extension/plugin path resolution 2026-03-18 12:40:33 +01:00
test_fasta2a_client.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
test_file_tree_visualize.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
test_git_version_label.py Add latest selector option to self-update with branch head resolution for testing/development and newest tag resolution for main 2026-03-26 10:44:12 +01:00
test_http_auth_csrf.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
test_model_config_api_keys.py ux: onboarding flow prototype 2026-03-27 18:46:09 +01:00
test_multi_tab_isolation.py Rebuild test suite & update documentation 2026-03-26 01:12:22 -07:00
test_persist_chat_log_ids.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
test_print_style.py Sanitize print logs; refactor popular plugin logic 2026-03-30 11:50:59 +02:00
test_run_ui_config.py WebSocket merge 2026-02-01 16:07:45 +01:00
test_self_update_tag_filter.py fix: apply btn-field class to disabled update buttons in self-update modal 2026-03-31 15:29:51 +02:00
test_settings_developer_sections.py Settings polishing, logout button 2026-02-05 22:02:49 +01:00
test_snapshot_parity.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
test_snapshot_schema_v1.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
test_socketio_library_semantics.py WebSocket merge 2026-02-01 16:07:45 +01:00
test_socketio_unknown_namespace.py WebSocket merge 2026-02-01 16:07:45 +01:00
test_state_monitor.py Rebuild test suite & update documentation 2026-03-26 01:12:22 -07:00
test_state_sync_handler.py Rebuild test suite & update documentation 2026-03-26 01:12:22 -07:00
test_state_sync_welcome_screen.py Rebuild test suite & update documentation 2026-03-26 01:12:22 -07:00
test_stream_tool_early_stop.py stop tool dispatch at first completed json object 2026-04-03 16:56:21 +02:00
test_webui_extension_surfaces.py ui: plus menu for additional chat actions 2026-03-26 11:55:14 +01:00
test_whatsapp_bridge_manager.py Squashed commit of the following: 2026-03-31 09:47:25 +02:00
test_whatsapp_number_utils.py Squashed commit of the following: 2026-03-31 09:47:25 +02:00
test_whatsapp_storage_paths.py Squashed commit of the following: 2026-03-31 09:47:25 +02:00
test_ws_client_api_surface.py Rebuild test suite & update documentation 2026-03-26 01:12:22 -07:00
test_ws_csrf.py Rebuild test suite & update documentation 2026-03-26 01:12:22 -07:00
test_ws_handlers.py Rebuild test suite & update documentation 2026-03-26 01:12:22 -07:00
test_ws_manager.py fix: resolve option whitelist, memory leak, task tracking, and dispatch unification 2026-03-27 01:21:45 -07:00
test_ws_security.py Rebuild test suite & update documentation 2026-03-26 01:12:22 -07:00