refactor(agent/background_review): split _run_review_in_thread into fork/summary phases, extract fork kwargs and action-line helpers

This commit is contained in:
Teknium
2026-09-02 18:41:26 -07:00
parent 113f04616b
commit eba201ff6e
2 changed files with 366 additions and 496 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -286,8 +286,7 @@ def test_e_call_does_not_unwind_module_callables():
"summarize_background_review_actions returned partial results"
in src
), "expected partial-results guard message present"
# And the prior-tonon-dict guard for the call_details lookup.
assert "if not isinstance(detail, dict):" in src
# And the non-dict guards on free-form tool payload fields.
assert "if isinstance(ops_raw, list)" in src
assert "if isinstance(change_raw, dict)" in src