Repository navigation
Description
What was wrong
Kimi Code CLI (kimi acp) streams tool call arguments as cumulative JSON snapshots in ACP tool_call_update content text. bb's ACP delta translation forwards that text verbatim: as command.outputSnapshot for Bash and as item.progress for every other tool. The user therefore sees raw argument JSON ({"command":"git diff --check","cwd":...}, {"prompt":"Compute 2+2","description":...}) as command output and as subagent progress instead of the real tool output.
Root cause on bb's side: the only dialect normalization hook, normalizeCommandEvent, is applied solely to the command output path. There is no hook that lets a dialect filter or rewrite progress text of non-command tool calls, so a provider plugin cannot suppress this echo through the published SDK.
Reproduce
Environment: Kimi Code CLI 2.4.1, @get-bb/plugin-sdk 0.6.105 (bridge provider-bridge-acp), any bb thread on the kimi ACP dialect.
- Start a kimi ACP thread and prompt:
Use the Agent tool exactly once: launch a subagent with the prompt 'Compute 2+2 and reply with just the number'. After it returns, run the Bash command+ "echo hello-probe" +, then reply with exactly: done - Watch the subagent item's progress and the Bash item's output.
Expected: only real tool output (2 from the subagent, hello-probe from Bash) and no raw argument JSON.
Actual: progress/output lines contain the streaming argument snapshots, e.g.:
{"prompt": "Compute
{"prompt": "Compute 2+2 and reply with just the number","description":"Compute simple arithmetic"}
{"command":"echo hello-probe"}
Evidence
Recorded raw ACP child IO (BB_PROVIDER_BRIDGE_RECORD_DIR) of the exact turn above, 2026-10-31, kimi 2.4.1: 32 argument-echo updates across one Agent and one Bash call. The sequence per call is always:
tool_callopen (pending, empty content).- N ×
tool_call_updatein_progresswith cumulative argument-JSON content text and norawInput. tool_call_updatein_progresswithrawInputand content text exactlyJSON.stringify(rawInput).- Real output only afterwards (
completedwithrawOutput, or laterin_progressoutput).
A committed replay fixture with the same Agent echo is at https://github.com/dpolishuk/bb-kimi-code/blob/c9fba16f5107d9dc6f523210de06ca6aaf469854/recordings/agent-delegation.ndjson (lines 35+ show item.progress messages that are pure argument JSON).
What I ruled out
- Fixing it inside the provider plugin with the current SDK:
AcpDialectonly offerstoolIdentity,classifyToolCall,commandResult,normalizeCommandEvent,handleClientRequest,presentModel. None is invoked for non-command progress text (extractAcpToolCallOutputTextis called on the raw event), so the echo is unfilterable for Agent/Read/Grep/etc. - Suppressing all JSON-looking text: real command output can itself be JSON (e.g.
br list --jsonprinting{"issues":[...]}), so filtering must be phase-aware (arguments beforerawInput, real output after), which requires a dialect hook on the progress path.
Proposed fix
Add normalizeToolCallEvent?(event): AcpToolCallUpdateEvent to AcpDialect, applied before extractAcpToolCallOutputText in the tool_call_update progress path and in genericCloseFields (so the hook also observes terminal updates for per-call state cleanup). PR follows with tests and a live-verified kimi dialect implementation.
AGENT GENERATED
Activity
bb-slop-cop commentedon Oct 31, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotproviders,provider-acp,confirmed-repro. No existing classification values were replaced.916d684ac23d. Live Kimi behavior was not tested.Add ACP dialect hook to normalize tool call progress events (get-bb#6769