refactor(goal): sustain one ReAct run until the goal closes (#6538)
* refactor(goal): sustain one ReAct run until the goal closes Keep active goals in the same runner beyond the ordinary iteration limit, with a final answer after successful closure. Remove cross-turn goal handoffs, continuation allowances and rollback bookkeeping while preserving input authorization, recovery, cancellation and terminal lifecycle ownership. Contributes to NAN-392 Co-authored-by: chengyongru <chengyongru.ai@gmail.com> * test(goal): consolidate sustained-run regression coverage Retain lifecycle, history, usage, provider-state privacy and checkpoint cancellation assertions in the existing long-run scenarios. Remove duplicate smoke cases and parameter combinations that do not exercise distinct behavior; keep real Gateway, authorization and generation regressions.
This commit is contained in:
1 parent
3545539128
commit
62c2ed4e7e
68 files changed
+2683
-1421
No files matched your search
@@ -379,7 +379,7 @@ async def test_goal_continuation_precedes_terminal_wait():
|
||||
continuation_checks = 0
|
||||
terminal_waits = 0
|
||||
|
||||
async def continue_goal() -> str | None:
|
||||
async def continue_goal():
|
||||
nonlocal continuation_checks
|
||||
continuation_checks += 1
|
||||
return "Continue the active goal." if continuation_checks == 1 else None
|
||||
@@ -1599,7 +1599,7 @@ async def test_busy_session_burst_reaches_next_model_call_as_one_ordered_batch(
|
||||
if log_content else "[content hidden]"
|
||||
)
|
||||
assert record["message"] == (
|
||||
f"Injected {len(followups)} follow-up message(s) after final response (snapshot 1): {preview}"
|
||||
f"Injected {len(followups)} follow-up message(s) after final response: {preview}"
|
||||
)
|
||||
assert record["level"].name == "INFO"
|
||||
assert record["extra"]["session_key"] == "cli:c"
|
||||
|
||||
Reference in new issue
Block a user