CubeLoop — a Pythonic, async-native agent harness core designed for high performance, readability, and production-grade persistence.
Python agent-frameworkagent-harnessagent-runtimeagentic-aiai-agentsai-frameworkanthropicharnessharness-engineeringharness-frameworklanggraphlanggraph-alternativellmmcpopenaipi-agentpi-agent-corepythonpython-agent
docs(tools): explain best-effort suppression in batch salvage paths
Claude Code078774b3fcce
diff --git a/cubepi/agent/tools.py b/cubepi/agent/tools.pyindex 96f09af..cb2a30b 100644--- a/cubepi/agent/tools.py+++ b/cubepi/agent/tools.py@@ -679,6 +679,9 @@ async def _execute_parallel(except asyncio.CancelledError:raiseexcept Exception:+ # Salvage is best-effort by contract: a failure while emitting+ # already-completed results must never mask the CancelledError+ # being re-raised below (mirrors _complete_cancelled_tool_calls).passraise@@ -743,6 +746,9 @@ async def _execute_parallel(try:await _emit_tool_result_messages(finalized_list, emit_fn)except Exception:+ # Best-effort: sibling persistence must never swallow the+ # control exception — the suspend/abort machinery depends on+ # it propagating; unanswered ids are backfilled on resume.passraise control_exc