fix(agent): preserve none vs unknown tool effects (#61783)

* fix(agent): persist truthful tool effect dispositions

* fix(agent): preserve successful siblings during orphan recovery

* fix(agent): narrow effect dispositions to none and unknown
This commit is contained in:
Teknium 2026-07-11 05:41:58 -07:00 committed by GitHub
parent 5ecc07986f
commit a0a6cd80f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 253 additions and 38 deletions

View file

@ -222,6 +222,12 @@ class TestMakeToolResultMessage:
"tool_call_id": "call_1",
}
def test_effect_disposition_is_internal_message_metadata(self):
msg = make_tool_result_message(
"terminal", "timed out", "call_effect", effect_disposition="unknown"
)
assert msg["effect_disposition"] == "unknown"
def test_high_risk_message_content_wrapped(self):
msg = make_tool_result_message("web_extract", SAMPLE_LONG_TEXT, "call_2")
assert msg["role"] == "tool"