From 60bc6beeeec13fcc343f6a6ca60ef5e6d160ee8b Mon Sep 17 00:00:00 2001 From: Kaiyi Date: Fri, 29 May 2026 22:38:30 +0800 Subject: [PATCH] fix(agent-core): remove NUL byte from swarm stall-hook repeat key MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The stall-detection repeat key joined the tool name and canonical args with a literal NUL (0x00) separator. The control byte caused git to classify stall-hook.ts as binary, so diffs, blame, and code review on the file were opaque — which prevented confirming the test history for this feature. Replace the NUL with a normal space (tool names are identifiers and never contain spaces, so keys stay collision-free) so the file is plain UTF-8 text and remains reviewable. Behavior is unchanged: the key still uniquely combines tool name and canonical args. Verified by reverting the hook to a no-op stub to show the three stall-detection test files go red (the discriminating block, canonical-key, e2e turn-abort, and worker-stall-translation cases all fail), then restoring the real implementation to confirm they pass — the failing-first the prior atomic commit never recorded. Full suite: 5049 passed / 25 skipped; make typecheck clean. --- .../agent-core/src/agent/swarm/stall-hook.ts | Bin 2397 -> 2397 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/packages/agent-core/src/agent/swarm/stall-hook.ts b/packages/agent-core/src/agent/swarm/stall-hook.ts index 7c7b9edafc63cb2d867a73e234b9f440b0cb375c..eafe52132d6020276058926011e2750838152d34 100644 GIT binary patch delta 20 ccmcaBbXRD@Lw05bmFmeC8O1jLVozoS09bto%m4rY delta 20 ccmcaBbXRD@Lw05cmFmeC8O1jLVozoS09O46tN;K2