Commit Graph

2 Commits

Author SHA1 Message Date
Maciej Lisiewski
26d0d87eb8 test(execute_code): nested tool calls fire pre_tool_call with the outer session
Behaviour test through handle_function_call -> execute_code -> hermes_tools
(local session kernel) and through the remote RPC dispatch: the nested call's
hook kwargs must carry the outer session_id/turn_id. The salvaged commit was
rebased onto the programmatic_file_read() dispatch wrapper, which both paths
keep. The RPC authorization test's handle_function_call stub now accepts the
identity kwargs the real function takes.

Fixes #145870
2026-11-14 15:34:38 +01:00
Maciej Lisiewski
1c5ba01902 test(tools): move sandbox RPC authorization tests into a focused file
Move TestSandboxRpcAuthorization and _FakeFileRpcEnvironment out of
test_code_execution.py into test_code_execution_rpc.py (behaviour
unchanged), keeping the grant helper and import-error tests in place.

Refs #84271
2026-11-13 17:26:03 -08:00