mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-07 07:55:13 +02:00
The Claude Code runtime counted every SDKAssistantMessage with parent_tool_use_id === null as a step, but the SDK emits extra messages within a single num_turns round-trip — `stop_reason: 'pause_turn'` continuations and errored partials it retries internally. The local counter then outran maxTurns and the ingest HUD rendered confusing ratios like `step 69/40`. Filter both cases in collectResult so stepIndex tracks num_turns and stays bounded by the work-unit stepBudget. |
||
|---|---|---|
| .. | ||
| ai-sdk-runtime.test.ts | ||
| claude-code-env.test.ts | ||
| claude-code-models.test.ts | ||
| claude-code-runtime.test.ts | ||
| debug-request-recorder.test.ts | ||
| embedding-port.test.ts | ||
| local-config.test.ts | ||
| runtime-local-config.test.ts | ||
| runtime-tools.test.ts | ||