test(agent): restore exact turn-policy regressions

This commit is contained in:
Alexandre Teixeira
2026-09-23 00:14:30 +01:00
parent c0b71a5cef
commit 3cabbb9bca
6 changed files with 113 additions and 21 deletions
+4 -3
View File
@@ -3499,11 +3499,12 @@ def setup_chat_routes(
# has an exact routed contract. Adding the whole native
# workspace inventory here reintroduced overlapping PDF
# readers and caused the model to abandon the selected
# OCR operation. Exact operations therefore stay exact;
# ordinary native turns retain warm and workspace tools.
# OCR operation. A task-only turn likewise has an exact
# personal manager; core shell/Web tools are not task
# fallbacks. Other turns retain warm and workspace tools.
extra_tools=(
frozenset()
if _exact_selected_native_chain or (
if _exact_selected_native_chain or _active_turn_capabilities == frozenset({"tasks"}) or (
_active_turn_capabilities in (
frozenset({"transcription"}), frozenset({"ocr"}),
)