chore: anchor fresh-start history to upstream
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user