chore: anchor fresh-start history to upstream

This commit is contained in:
2026-09-16 15:06:54 +08:00
parent 64a9b43261
commit 012c9c6bed
3514 changed files with 48322 additions and 187346 deletions
+7
View File
@@ -27,6 +27,13 @@ _TERMINAL_BLOCKED_PARAMS = {"background", "pty", "notify", "notify_on_complete",
def _default_dispatch(task_id):
from model_tools import handle_function_call
from tools.approval_context import _approval_session_id
# The outer dispatcher bound this ID; never use sandbox args or env fallback.
session_id = _approval_session_id.get()
if session_id:
return lambda tool_name, tool_args: handle_function_call(
tool_name, tool_args, task_id=task_id, session_id=session_id)
return lambda tool_name, tool_args: handle_function_call(tool_name, tool_args, task_id=task_id)