ktx/packages
Andrey Avtomonov 20454bcb8f fix(cli): align ingest step counter with SDK num_turns
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.
2026-05-28 01:55:39 +02:00
..
cli fix(cli): align ingest step counter with SDK num_turns 2026-05-28 01:55:39 +02:00