The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(code-kernel): evict the remote kernel when a cell request fails to ship
kshitijk4poor9bf2c3c9fa54
diff --git a/tools/code_kernel_remote.py b/tools/code_kernel_remote.pyindex 709536309d8..2e86b476abf 100644--- a/tools/code_kernel_remote.py+++ b/tools/code_kernel_remote.py@@ -380,6 +380,13 @@ def _run_attached_cell(kernel: RemoteKernel, key: Tuple, code: str, *, env, taskcell_status, cell_payload = "no-result", {}try:cell_status, cell_payload = _run_remote_cell(kernel, code, timeout)+ except Exception:+ # The request never reached the runner (the atomic ship failed), so the+ # caller's per-call fallback runs the code exactly once. Kill the+ # kernel as the timeout path does: leaving it registered would let the+ # next call reuse a kernel whose state silently missed this cell.+ _REGISTRY.discard(key, kernel)+ raisefinally:stop_event.set()rpc_thread.join(timeout=5)